Corinna Vinschen skrev 2012-02-03 17:17:
> On Feb  3 17:02, Peter Rosin wrote:
>> Hi!
>>
>> I have this annoying leftover file from a automake testsuite run.
>> I don't know if it was created by an MSYS process or a Cygwin
>> process, but I can't get rid of it.  I can't take ownership of
>> it either, not even as admin.  I haven't tried stopping all
>> MSYS/Cygwin processes yet, nor rebooting, but I'd rather not.
>>
>> Any help with that is appreciated.  No, not rebooting :-)
>>
>> However, that is not really why I'm writing, I'm writing to
>> report the following bug related to the above file.
>>
>> $ uname -a
>> CYGWIN_NT-6.1-WOW64 peda-pc 1.7.10s(0.259/5/3) 20120123 00:15:09 i686 Cygwin
>> $ ls -l aclibobj.log-t
>> -rw-r----- 1 ???????? ???????? 2113 Jan 31 16:09 aclibobj.log-t
>> $ rm aclibobj.log-t; echo $?
>> rm: remove write-protected regular file `aclibobj.log-t'? yes
>> 0
> 
> Send an strace of this, please.  One reason that rm (better: unlink(2))
> reports success is if the file is still in use by another process but
> it's already marked as "delete pending" in the OS.  This should only
> occur if a non-Cygwin process is still holding a handle to the file.

Here's the strace.

Cheers,
Peter
    1       1 [main] rm (16748) **********************************************
  115     116 [main] rm (16748) Program name: C:\cygwin\bin\rm.exe (windows pid 
16748)
   43     159 [main] rm (16748) OS version:   Windows NT-6.1
   23     182 [main] rm (16748) **********************************************
  184     366 [main] rm (16748) sigprocmask: 0 = sigprocmask (0, 0x6122F248, 
0x610F7FF0)
   91     457 [main] rm 16748 open_shared: name shared.5, n 5, shared 
0x60FF0000 (wanted 0x60FF0000), h 0x7C, *m 6
   28     485 [main] rm 16748 heap_init: heap base 0x80000000, heap top 
0x80000000
   33     518 [main] rm 16748 open_shared: name 
S-1-5-21-2546585470-3617943033-870480707-1000.1, n 1, shared 0x60FE0000 (wanted 
0x60FE0000), h 0x80, *m 6
   71     589 [main] rm 16748 user_info::create: opening user shared for 
'S-1-5-21-2546585470-3617943033-870480707-1000' at 0x60FE0000
   18     607 [main] rm 16748 user_info::create: user shared version 6467403B
   33     640 [main] rm 16748 fhandler_pipe::create: CreateNamedPipe: name 
\\.\pipe\cygwin-c5e39b7a9d22bafb-pipe-0x416C-0x1, size 164
   36     676 [main] rm 16748 fhandler_pipe::create: pipe read handle 0x9C
   15     691 [main] rm 16748 fhandler_pipe::create: CreateFile: name 
\\.\pipe\cygwin-c5e39b7a9d22bafb-pipe-0x416C-0x1
   27     718 [main] rm 16748 fhandler_pipe::create: pipe write handle 0xA0
   18     736 [main] rm 16748 dll_crt0_0: finished dll_crt0_0 initialization
 1662    2398 [main] rm 16748 mount_info::conv_to_posix_path: 
conv_to_posix_path (C:\cygwin\home\peda\automake\tests, no-keep-rel, 
no-add-slash)
   47    2445 [main] rm 16748 normalize_win32_path: 
C:\cygwin\home\peda\automake\tests = normalize_win32_path 
(C:\cygwin\home\peda\automake\tests)
   26    2471 [main] rm 16748 mount_info::conv_to_posix_path: 
/home/peda/automake/tests = conv_to_posix_path 
(C:\cygwin\home\peda\automake\tests)
   36    2507 [main] rm 16748 sigprocmask: 0 = sigprocmask (0, 0x800180A8, 
0x610F7FF0)
  158    2665 [main] rm 16748 _cygwin_istext_for_stdio: fd 0: not open
   23    2688 [main] rm 16748 _cygwin_istext_for_stdio: fd 1: not open
   14    2702 [main] rm 16748 _cygwin_istext_for_stdio: fd 2: not open
   18    2720 [sig] rm (16748) wait_sig: entering ReadFile loop, my_readsig 
0x9C, my_sendsig 0xA0
   47    2767 [main] rm (16748) open_shared: name cygpid.16748, n 16748, shared 
0x60FD0000 (wanted 0x60FD0000), h 0x158, *m 2
   20    2787 [main] rm 16748 pinfo::thisproc: myself dwProcessId 16748
   15    2802 [main] rm 16748 time: 1328286145 = time(0)
  251    3053 [main] rm 16748 environ_init: GetEnvironmentStrings returned 
0x894FA8
   29    3082 [main] rm 16748 environ_init: 0x80028290: 
ALLUSERSPROFILE=C:\ProgramData
   27    3109 [main] rm 16748 environ_init: 0x800282B8: 
APPDATA=C:\Users\peda\AppData\Roaming
   27    3136 [main] rm 16748 environ_init: 0x800282E8: 
BURN_AUTOPLAY=C:\Program Files (x86)\Roxio\OEM\Roxio Burn\
   28    3164 [main] rm 16748 environ_init: 0x80028328: 
CARMENTA_ENGINE_5_GEODATA=C:\Program Files (x86)\Carmenta\Carmenta Engine 5 
SDK\geodata
   28    3192 [main] rm 16748 environ_init: 0x80028388: 
CARMENTA_ENGINE_5_INCLUDE=C:\Program Files (x86)\Carmenta\Carmenta Engine 5 
SDK\include
   28    3220 [main] rm 16748 environ_init: 0x800283E8: 
CARMENTA_ENGINE_5_JARS=C:\Program Files (x86)\Carmenta\Carmenta Engine 5 SDK\bin
   28    3248 [main] rm 16748 environ_init: 0x80028440: 
CARMENTA_ENGINE_5_LIBS=C:\Program Files (x86)\Carmenta\Carmenta Engine 5 
SDK\libs
   27    3275 [main] rm 16748 environ_init: 0x80028498: 
COMMONPROGRAMFILES=C:\Program Files (x86)\Common Files
   27    3302 [main] rm 16748 environ_init: 0x800284D8: COMPUTERNAME=PEDA-PC
   27    3329 [main] rm 16748 environ_init: 0x800284F8: 
COMSPEC=C:\Windows\system32\cmd.exe
   27    3356 [main] rm 16748 environ_init: 0x80028528: 
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
   28    3384 [main] rm 16748 environ_init: 0x80028570: 
CommonProgramW6432=C:\Program Files\Common Files
   30    3414 [main] rm 16748 parse_options: glob (called func)
   26    3440 [main] rm 16748 parse_options: returning
   30    3470 [main] rm 16748 environ_init: 0x800285A8: CYGWIN=noglob
   30    3500 [main] rm 16748 environ_init: 0x800285D0: EMC_AUTOPLAY=C:\Program 
Files (x86)\Common Files\Roxio Shared\OEM\
   26    3526 [main] rm 16748 environ_init: 0x80028618: FP_NO_HOST_CHECK=NO
   26    3552 [main] rm 16748 environ_init: 0x80028638: GIT_EDITOR=vim
   26    3578 [main] rm 16748 getwinenv: can't set native for HOME= since no 
environ yet
   15    3593 [main] rm 16748 mount_info::conv_to_posix_path: 
conv_to_posix_path (C:\cygwin\home\peda, no-keep-rel, no-add-slash)
   15    3608 [main] rm 16748 normalize_win32_path: C:\cygwin\home\peda = 
normalize_win32_path (C:\cygwin\home\peda)
   15    3623 [main] rm 16748 mount_info::conv_to_posix_path: /home/peda = 
conv_to_posix_path (C:\cygwin\home\peda)
   38    3661 [main] rm 16748 win_env::add_cache: posix /home/peda
   14    3675 [main] rm 16748 win_env::add_cache: native 
HOME=C:\cygwin\home\peda
   13    3688 [main] rm 16748 posify_maybe: env var converted to HOME=/home/peda
   38    3726 [main] rm 16748 environ_init: 0x800286A0: HOME=/home/peda
   26    3752 [main] rm 16748 environ_init: 0x80028650: HOMEDRIVE=C:
   27    3779 [main] rm 16748 environ_init: 0x800286B8: HOMEPATH=\Users\peda
   26    3805 [main] rm 16748 environ_init: 0x800286D8: HOSTNAME=peda-pc
   27    3832 [main] rm 16748 environ_init: 0x800286F0: 
INFOPATH=/usr/local/info:/usr/share/info:/usr/info:
   26    3858 [main] rm 16748 environ_init: 0x80028730: LANG=C.UTF-8
   26    3884 [main] rm 16748 environ_init: 0x80028748: 
LOCALAPPDATA=C:\Users\peda\AppData\Local
   26    3910 [main] rm 16748 environ_init: 0x80028778: LOGONSERVER=\\PEDA-PC
   27    3937 [main] rm 16748 environ_init: 0x80028798: 
MANPATH=/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man
   27    3964 [main] rm 16748 environ_init: 0x800287E0: 
MpConfig_ProductAppDataPath=C:\ProgramData\Microsoft\Windows Defender
   26    3990 [main] rm 16748 environ_init: 0x80028830: 
MpConfig_ProductCodeName=AntiSpyware
   27    4017 [main] rm 16748 environ_init: 0x80028860: 
MpConfig_ProductPath=C:\Program Files\Windows Defender
   27    4044 [main] rm 16748 environ_init: 0x800288A0: 
MpConfig_ProductUserAppDataPath=C:\Users\peda\AppData\Local\Microsoft\Windows 
Defender
   27    4071 [main] rm 16748 environ_init: 0x80028900: 
MpConfig_ReportingGUID=D0EEEA96-F98E-414C-A4B6-8D692EB8E758
   27    4098 [main] rm 16748 environ_init: 0x80028948: NUMBER_OF_PROCESSORS=8
   26    4124 [main] rm 16748 environ_init: 0x80028968: 
OLDPWD=/home/peda/automake
   26    4150 [main] rm 16748 environ_init: 0x80028988: OS=Windows_NT
   29    4179 [main] rm 16748 getwinenv: can't set native for PATH= since no 
environ yet
   29    4208 [main] rm 16748 mount_info::conv_to_posix_path: 
conv_to_posix_path (C:\cygwin\usr\local\bin, keep-rel, no-add-slash)
   15    4223 [main] rm 16748 normalize_win32_path: C:\cygwin\usr\local\bin = 
normalize_win32_path (C:\cygwin\usr\local\bin)
   14    4237 [main] rm 16748 mount_info::conv_to_posix_path: /usr/local/bin = 
conv_to_posix_path (C:\cygwin\usr\local\bin)
   15    4252 [main] rm 16748 mount_info::conv_to_posix_path: 
conv_to_posix_path (C:\cygwin\bin, keep-rel, no-add-slash)
   14    4266 [main] rm 16748 normalize_win32_path: C:\cygwin\bin = 
normalize_win32_path (C:\cygwin\bin)
   14    4280 [main] rm 16748 mount_info::conv_to_posix_path: /usr/bin = 
conv_to_posix_path (C:\cygwin\bin)
   15    4295 [main] rm 16748 mount_info::conv_to_posix_path: 
conv_to_posix_path (C:\Windows\system32, keep-rel, no-add-slash)
   14    4309 [main] rm 16748 normalize_win32_path: C:\Windows\system32 = 
normalize_win32_path (C:\Windows\system32)
   16    4325 [main] rm 16748 mount_info::conv_to_posix_path: 
/cygdrive/c/Windows/system32 = conv_to_posix_path (C:\Windows\system32)
   14    4339 [main] rm 16748 mount_info::conv_to_posix_path: 
conv_to_posix_path (C:\Windows, keep-rel, no-add-slash)
   14    4353 [main] rm 16748 normalize_win32_path: C:\Windows = 
normalize_win32_path (C:\Windows)
   15    4368 [main] rm 16748 mount_info::conv_to_posix_path: 
/cygdrive/c/Windows = conv_to_posix_path (C:\Windows)
   26    4394 [main] rm 16748 mount_info::conv_to_posix_path: 
conv_to_posix_path (C:\Windows\System32\Wbem, keep-rel, no-add-slash)
   17    4411 [main] rm 16748 normalize_win32_path: C:\Windows\System32\Wbem = 
normalize_win32_path (C:\Windows\System32\Wbem)
   14    4425 [main] rm 16748 mount_info::conv_to_posix_path: 
/cygdrive/c/Windows/System32/Wbem = conv_to_posix_path 
(C:\Windows\System32\Wbem)
   15    4440 [main] rm 16748 mount_info::conv_to_posix_path: 
conv_to_posix_path (C:\Windows\System32\WindowsPowerShell\v1.0, keep-rel, 
no-add-slash)
   15    4455 [main] rm 16748 normalize_win32_path: 
C:\Windows\System32\WindowsPowerShell\v1.0 = normalize_win32_path 
(C:\Windows\System32\WindowsPowerShell\v1.0)
   14    4469 [main] rm 16748 mount_info::conv_to_posix_path: 
/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0 = conv_to_posix_path 
(C:\Windows\System32\WindowsPowerShell\v1.0)
   15    4484 [main] rm 16748 mount_info::conv_to_posix_path: 
conv_to_posix_path (C:\Program Files (x86)\Carmenta\Carmenta Engine 5 SDK\bin, 
keep-rel, no-add-slash)
   15    4499 [main] rm 16748 normalize_win32_path: C:\Program Files 
(x86)\Carmenta\Carmenta Engine 5 SDK\bin = normalize_win32_path (C:\Program 
Files (x86)\Carmenta\Carmenta Engine 5 SDK\bin)
   14    4513 [main] rm 16748 mount_info::conv_to_posix_path: 
/cygdrive/c/Program Files (x86)/Carmenta/Carmenta Engine 5 SDK/bin = 
conv_to_posix_path (C:\Program Files (x86)\Carmenta\Carmenta Engine 5 SDK\bin)
   36    4549 [main] rm 16748 mount_info::conv_to_posix_path: 
conv_to_posix_path (C:\cygwin\lib\lapack, keep-rel, no-add-slash)
   23    4572 [main] rm 16748 normalize_win32_path: C:\cygwin\lib\lapack = 
normalize_win32_path (C:\cygwin\lib\lapack)
   15    4587 [main] rm 16748 mount_info::conv_to_posix_path: /usr/lib/lapack = 
conv_to_posix_path (C:\cygwin\lib\lapack)
   47    4634 [main] rm 16748 win_env::add_cache: posix 
/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program
 Files (x86)/Carmenta/Carmenta Engine 5 SDK/bin:/usr/lib/lapack
   14    4648 [main] rm 16748 win_env::add_cache: native 
PATH=C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program
 Files (x86)\Carmenta\Carmenta Engine 5 SDK\bin;C:\cygwin\lib\lapack
   15    4663 [main] rm 16748 posify_maybe: env var converted to 
PATH=/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program
 Files (x86)/Carmenta/Carmenta Engine 5 SDK/bin:/usr/lib/lapack
   39    4702 [main] rm 16748 environ_init: 0x80038C70: 
PATH=/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program
 Files (x86)/Carmenta/Carmenta Engine 5 SDK/bin:/usr/lib/lapack
   28    4730 [main] rm 16748 environ_init: 0x800289A0: 
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
   29    4759 [main] rm 16748 environ_init: 0x800289E8: PRINTER=hp deskjet 5600 
series (HPA)
   27    4786 [main] rm 16748 environ_init: 0x80028A18: 
PROCESSOR_ARCHITECTURE=x86
   28    4814 [main] rm 16748 environ_init: 0x80028A38: 
PROCESSOR_ARCHITEW6432=AMD64
   28    4842 [main] rm 16748 environ_init: 0x80038D70: 
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
   28    4870 [main] rm 16748 environ_init: 0x80028A60: PROCESSOR_LEVEL=6
   28    4898 [main] rm 16748 environ_init: 0x80038DC0: PROCESSOR_REVISION=2a07
   28    4926 [main] rm 16748 environ_init: 0x80038DE0: PROGRAMFILES=C:\Program 
Files (x86)
   29    4955 [main] rm 16748 environ_init: 0x80038E10: 
PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ 
   28    4983 [main] rm 16748 environ_init: 0x80038E58: 
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
   30    5013 [main] rm 16748 environ_init: 0x80038EA0: PUBLIC=C:\Users\Public
   29    5042 [main] rm 16748 environ_init: 0x80038EC0: 
PWD=/home/peda/automake/tests
   29    5071 [main] rm 16748 environ_init: 0x80038EE8: 
ProgramData=C:\ProgramData
   29    5100 [main] rm 16748 environ_init: 0x80038F08: 
ProgramFiles(x86)=C:\Program Files (x86)
   28    5128 [main] rm 16748 environ_init: 0x80038F38: ProgramW6432=C:\Program 
Files
   26    5154 [main] rm 16748 environ_init: 0x80038F60: RCAUTOPLAY=C:\Program 
Files (x86)\Roxio\OEM\Roxio Central 5\
   74    5228 [main] rm 16748 environ_init: 0x80038FA8: SESSIONNAME=Console
   28    5256 [main] rm 16748 environ_init: 0x80028A78: SHLVL=1
  118    5374 [main] rm 16748 environ_init: 0x80038FC8: SYSTEMDRIVE=C:
   53    5427 [main] rm 16748 environ_init: 0x80038FE0: SYSTEMROOT=C:\Windows
   48    5475 [main] rm 16748 getwinenv: can't set native for TEMP= since no 
environ yet
   18    5493 [main] rm 16748 mount_info::conv_to_posix_path: 
conv_to_posix_path (C:\cygwin\tmp, no-keep-rel, no-add-slash)
   23    5516 [main] rm 16748 normalize_win32_path: C:\cygwin\tmp = 
normalize_win32_path (C:\cygwin\tmp)
   18    5534 [main] rm 16748 mount_info::conv_to_posix_path: /tmp = 
conv_to_posix_path (C:\cygwin\tmp)
   52    5586 [main] rm 16748 win_env::add_cache: posix /tmp
   17    5603 [main] rm 16748 win_env::add_cache: native TEMP=C:\cygwin\tmp
   19    5622 [main] rm 16748 posify_maybe: env var converted to TEMP=/tmp
   49    5671 [main] rm 16748 environ_init: 0x80039040: TEMP=/tmp
   34    5705 [main] rm 16748 environ_init: 0x80039000: TERM=xterm
   35    5740 [main] rm 16748 environ_init: 0x80039050: TEXDOCVIEW_dvi=cygstart 
%s
   35    5775 [main] rm 16748 environ_init: 0x80039070: 
TEXDOCVIEW_html=cygstart %s
   38    5813 [main] rm 16748 environ_init: 0x80039098: TEXDOCVIEW_pdf=cygstart 
%s
   34    5847 [main] rm 16748 environ_init: 0x800390B8: TEXDOCVIEW_ps=cygstart 
%s
   34    5881 [main] rm 16748 environ_init: 0x800390D8: TEXDOCVIEW_txt=cygstart 
%s
   30    5911 [main] rm 16748 getwinenv: can't set native for TMP= since no 
environ yet
   15    5926 [main] rm 16748 mount_info::conv_to_posix_path: 
conv_to_posix_path (C:\cygwin\tmp, no-keep-rel, no-add-slash)
   16    5942 [main] rm 16748 normalize_win32_path: C:\cygwin\tmp = 
normalize_win32_path (C:\cygwin\tmp)
   14    5956 [main] rm 16748 mount_info::conv_to_posix_path: /tmp = 
conv_to_posix_path (C:\cygwin\tmp)
   39    5995 [main] rm 16748 win_env::add_cache: posix /tmp
   14    6009 [main] rm 16748 win_env::add_cache: native TMP=C:\cygwin\tmp
   14    6023 [main] rm 16748 posify_maybe: env var converted to TMP=/tmp
   38    6061 [main] rm 16748 environ_init: 0x80039138: TMP=/tmp
   27    6088 [main] rm 16748 environ_init: 0x800390F8: USER=peda
   27    6115 [main] rm 16748 environ_init: 0x80039148: USERDOMAIN=peda-pc
   32    6147 [main] rm 16748 environ_init: 0x80039160: USERNAME=peda
   51    6198 [main] rm 16748 environ_init: 0x80039178: 
USERPROFILE=C:\Users\peda
   29    6227 [main] rm 16748 environ_init: 0x80039198: 
VS100COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 
10.0\Common7\Tools\
   28    6255 [main] rm 16748 environ_init: 0x800391F0: WINDIR=C:\Windows
   26    6281 [main] rm 16748 environ_init: 0x80039208: 
XZ_DEFAULTS=--memlimit=150MiB
   27    6308 [main] rm 16748 environ_init: 0x80039230: _=/usr/bin/strace
   27    6335 [main] rm 16748 environ_init: 0x80039248: 
__COMPAT_LAYER=ElevateCreateProcess
   26    6361 [main] rm 16748 environ_init: 0x80039278: windows_tracing_flags=3
   28    6389 [main] rm 16748 environ_init: 0x80039298: 
windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log
   20    6409 [main] rm 16748 pinfo_init: Set nice to 0
   15    6424 [main] rm 16748 pinfo_init: pid 16748, pgid 16748
   14    6438 [main] rm 16748 App version:  1007.9, api: 0.237
   15    6453 [main] rm 16748 DLL version:  1007.10, api: 0.259
   14    6467 [main] rm 16748 DLL build:    20120123 00:15:09SNP
   16    6483 [main] rm 16748 dtable::extend: size 32, fds 0x61266804
  210    6693 [main] rm 16748 pwdgrp::load: \etc\passwd curr_lines 7
   20    6713 [main] rm 16748 pwdgrp::load: \etc\passwd load succeeded
  146    6859 [main] rm 16748 pwdgrp::load: \etc\group curr_lines 17
   17    6876 [main] rm 16748 pwdgrp::load: \etc\group load succeeded
   16    6892 [main] rm 16748 cygheap_user::ontherange: what 2, pw 0x80039600
   15    6907 [main] rm 16748 cygheap_user::ontherange: HOME is already in the 
environment /home/peda
   50    6957 [main] rm 16748 build_argv: argv[0] = 'rm'
   13    6970 [main] rm 16748 build_argv: argv[1] = '-f'
   14    6984 [main] rm 16748 build_argv: argv[2] = 'aclibobj.log-t'
   13    6997 [main] rm 16748 build_argv: argc 3
  106    7103 [main] rm 16748 build_fh_pc: created an archetype (0x61266BB4) 
for /dev/pty2(136/2)
   16    7119 [main] rm 16748 build_fh_pc: fh 0x6126695C, dev 0x880002
   20    7139 [main] rm 16748 fhandler_pipe::create: CreateNamedPipe: name 
\\.\pipe\cygwin-c5e39b7a9d22bafb-pty2-from-master, size 131072
   39    7178 [main] rm 16748 fhandler_pipe::create: pipe busy
   15    7193 [main] rm 16748 tty::exists: exists 1
   40    7233 [main] rm 16748 alloc_sd: uid 1000, gid 513, attribute 2190
   18    7251 [main] rm 16748 cygsid::debug_print: alloc_sd: owner SID = 
S-1-5-21-2546585470-3617943033-870480707-1000 (+)
   15    7266 [main] rm 16748 cygsid::debug_print: alloc_sd: group SID = 
S-1-5-21-2546585470-3617943033-870480707-513 (+)
   16    7282 [main] rm 16748 alloc_sd: ACL-Size: 124
   38    7320 [main] rm 16748 alloc_sd: Created SD-Size: 200
   14    7334 [main] rm 16748 fhandler_pty_slave::open: (418): pty output_mutex 
(0x15C): waiting 500 ms
   15    7349 [main] rm 16748 fhandler_pty_slave::open: (418): pty 
output_mutex: acquired
   20    7369 [main] rm 16748 tty::create_inuse: cygtty.slave_alive.2 0x168
   16    7385 [main] rm 16748 fhandler_pty_slave::open: (421): pty 
output_mutex(0x15C) released
   34    7419 [main] rm 16748 open_shared: name cygpid.14680, n 14680, shared 
0x380000 (wanted 0x0), h 0x16C, *m 6
   19    7438 [main] rm 16748 fhandler_pty_slave::open: dup handles directly 
since I'm the owner
   21    7459 [main] rm 16748 fhandler_pty_slave::open: duplicated from_master 
0x1C0->0x16C from pty_owner
   15    7474 [main] rm 16748 fhandler_pty_slave::open: duplicated to_master 
0x1D0->0x174 from pty_owner
   16    7490 [main] rm 16748 init_cygheap::manage_console_count: 
fhandler_pty_slave::open: console_count 1, amount 1, no ctty, 
avoid_freeing_console 0
   25    7515 [main] rm 16748 fhandler_console::need_invisible: 
invisible_console 0
   18    7533 [main] rm 16748 fhandler_base::open_with_arch: line 472:  
/dev/pty2<0x61266BB4> usecount + 1 = 1
   15    7548 [main] rm 16748 fhandler_base::set_flags: flags 0x10002, 
supplied_bin 0x0
   15    7563 [main] rm 16748 fhandler_base::set_flags: O_TEXT/O_BINARY set in 
flags 0x10000
   13    7576 [main] rm 16748 fhandler_base::set_flags: filemode set to binary
   14    7590 [main] rm 16748 _pinfo::set_ctty: old no ctty, ctty device number 
0xFFFFFFFF, tc.ntty device number 0x880002 flags & O_NOCTTY 0x0
   14    7604 [main] rm 16748 _pinfo::set_ctty: cygheap->ctty 0x0, archetype 
0x61266BB4
   14    7618 [main] rm 16748 _pinfo::set_ctty: ctty was NULL
   14    7632 [main] rm 16748 _pinfo::set_ctty: line 455:  
/dev/pty2<0x61266BB4> usecount + 1 = 2
   14    7646 [main] rm 16748 init_cygheap::manage_console_count: 
_pinfo::set_ctty: console_count 2, amount 1, ctty /dev/pty2, 
avoid_freeing_console 0
   14    7660 [main] rm 16748 _pinfo::set_ctty: /dev/pty2 ctty, usecount 2
   15    7675 [main] rm 16748 _pinfo::set_ctty: attaching ctty /dev/pty2 sid 
16748, pid 16748, pgid 16748, tty->pgid 18348, tty->sid -1
   15    7690 [main] rm 16748 _pinfo::set_ctty: cygheap->ctty now 0x61266BB4, 
archetype 0x61266BB4
   14    7704 [main] rm 16748 init_cygheap::manage_console_count: 
fhandler_pty_slave::open_setup: console_count 3, amount 1, ctty /dev/pty2, 
avoid_freeing_console 0
   15    7719 [main] rm 16748 fhandler_pty_slave::open_setup: /dev/pty2 opened, 
usecount 2
   15    7734 [main] rm 16748 fhandler_base::set_flags: flags 0x10002, 
supplied_bin 0x0
   15    7749 [main] rm 16748 fhandler_base::set_flags: O_TEXT/O_BINARY set in 
flags 0x10000
   14    7763 [main] rm 16748 fhandler_base::set_flags: filemode set to binary
   14    7777 [main] rm 16748 _pinfo::set_ctty: old ctty /dev/pty2, ctty device 
number 0x880002, tc.ntty device number 0x880002 flags & O_NOCTTY 0x0
   15    7792 [main] rm 16748 _pinfo::set_ctty: attaching ctty /dev/pty2 sid 
-1, pid 16748, pgid 18348, tty->pgid 18348, tty->sid -1
   15    7807 [main] rm 16748 _pinfo::set_ctty: cygheap->ctty now 0x61266BB4, 
archetype 0x61266BB4
   14    7821 [main] rm 16748 init_cygheap::manage_console_count: 
fhandler_pty_slave::open_setup: console_count 4, amount 1, ctty /dev/pty2, 
avoid_freeing_console 0
   14    7835 [main] rm 16748 fhandler_pty_slave::open_setup: /dev/pty2 opened, 
usecount 2
 1459    9294 [main] rm 16748 handle_to_fn: current match 'C:' = 
'\Device\HarddiskVolume3'
   99    9393 [main] rm 16748 mount_info::conv_to_posix_path: 
conv_to_posix_path (C:\Cygwin\home\peda\automake\tests\rm.strace, no-keep-rel, 
no-add-slash)
   17    9410 [main] rm 16748 normalize_win32_path: 
C:\Cygwin\home\peda\automake\tests\rm.strace = normalize_win32_path 
(C:\Cygwin\home\peda\automake\tests\rm.strace)
   15    9425 [main] rm 16748 mount_info::conv_to_posix_path: 
/cygdrive/c/Cygwin/home/peda/automake/tests/rm.strace = conv_to_posix_path 
(C:\Cygwin\home\peda\automake\tests\rm.strace)
   15    9440 [main] rm 16748 handle_to_fn: derived path 
'C:\Cygwin\home\peda\automake\tests\rm.strace', posix 
'/cygdrive/c/Cygwin/home/peda/automake/tests/rm.strace'
   18    9458 [main] rm 16748 normalize_posix_path: src 
/cygdrive/c/Cygwin/home/peda/automake/tests/rm.strace
   15    9473 [main] rm 16748 normalize_posix_path: 
/cygdrive/c/Cygwin/home/peda/automake/tests/rm.strace = normalize_posix_path 
(/cygdrive/c/Cygwin/home/peda/automake/tests/rm.strace)
   15    9488 [main] rm 16748 mount_info::conv_to_win32_path: 
conv_to_win32_path (/cygdrive/c/Cygwin/home/peda/automake/tests/rm.strace)
   16    9504 [main] rm 16748 mount_info::cygdrive_win32_path: src 
'/cygdrive/c/Cygwin/home/peda/automake/tests/rm.strace', dst 
'C:\Cygwin\home\peda\automake\tests\rm.strace'
   16    9520 [main] rm 16748 set_flags: flags: binary (0x2)
   15    9535 [main] rm 16748 mount_info::conv_to_win32_path: src_path 
/cygdrive/c/Cygwin/home/peda/automake/tests/rm.strace, dst 
C:\Cygwin\home\peda\automake\tests\rm.strace, flags 0x4022, rc 0
   35    9570 [main] rm 16748 symlink_info::check: 0x0 = NtCreateFile 
(\??\C:\Cygwin\home\peda\automake\tests\rm.strace)
   29    9599 [main] rm 16748 symlink_info::check: not a symlink
   87    9686 [main] rm 16748 symlink_info::check: 0 = 
symlink.check(C:\Cygwin\home\peda\automake\tests\rm.strace, 0x283860) (0x4022)
   18    9704 [main] rm 16748 path_conv::check: 
this->path(C:\Cygwin\home\peda\automake\tests\rm.strace), has_acls(1)
   20    9724 [main] rm 16748 build_fh_pc: fh 0x61266EE4, dev 0xC3
   16    9740 [main] rm 16748 fhandler_base::set_flags: flags 0x10001, 
supplied_bin 0x0
   15    9755 [main] rm 16748 fhandler_base::set_flags: O_TEXT/O_BINARY set in 
flags 0x10000
   14    9769 [main] rm 16748 fhandler_base::set_flags: filemode set to binary
   14    9783 [main] rm 16748 fhandler_base::init: created new fhandler_base 
for handle 0x2BC, bin 1
  112    9895 [main] rm 16748 build_fh_pc: found an archetype for (null)(136/2) 
io_handle 0x16C
   17    9912 [main] rm 16748 build_fh_pc: fh 0x6126717C, dev 0x880002
   17    9929 [main] rm 16748 fhandler_base::open_with_arch: line 492:  
/dev/pty2<0x61266BB4> usecount + 1 = 3
   15    9944 [main] rm 16748 fhandler_base::set_flags: flags 0x10002, 
supplied_bin 0x0
   14    9958 [main] rm 16748 fhandler_base::set_flags: O_TEXT/O_BINARY set in 
flags 0x10000
   15    9973 [main] rm 16748 fhandler_base::set_flags: filemode set to binary
   14    9987 [main] rm 16748 _pinfo::set_ctty: old ctty /dev/pty2, ctty device 
number 0x880002, tc.ntty device number 0x880002 flags & O_NOCTTY 0x0
   18   10005 [main] rm 16748 _pinfo::set_ctty: attaching ctty /dev/pty2 sid 
-1, pid 16748, pgid 18348, tty->pgid 18348, tty->sid -1
   16   10021 [main] rm 16748 _pinfo::set_ctty: cygheap->ctty now 0x61266BB4, 
archetype 0x61266BB4
   15   10036 [main] rm 16748 init_cygheap::manage_console_count: 
fhandler_pty_slave::open_setup: console_count 5, amount 1, ctty /dev/pty2, 
avoid_freeing_console 0
   15   10051 [main] rm 16748 fhandler_pty_slave::open_setup: /dev/pty2 opened, 
usecount 3
   15   10066 [main] rm 16748 fhandler_base::set_flags: flags 0x10002, 
supplied_bin 0x0
   14   10080 [main] rm 16748 fhandler_base::set_flags: O_TEXT/O_BINARY set in 
flags 0x10000
   14   10094 [main] rm 16748 fhandler_base::set_flags: filemode set to binary
   15   10109 [main] rm 16748 _pinfo::set_ctty: old ctty /dev/pty2, ctty device 
number 0x880002, tc.ntty device number 0x880002 flags & O_NOCTTY 0x0
   15   10124 [main] rm 16748 _pinfo::set_ctty: attaching ctty /dev/pty2 sid 
-1, pid 16748, pgid 18348, tty->pgid 18348, tty->sid -1
   15   10139 [main] rm 16748 _pinfo::set_ctty: cygheap->ctty now 0x61266BB4, 
archetype 0x61266BB4
   15   10154 [main] rm 16748 init_cygheap::manage_console_count: 
fhandler_pty_slave::open_setup: console_count 6, amount 1, ctty /dev/pty2, 
avoid_freeing_console 0
   14   10168 [main] rm 16748 fhandler_pty_slave::open_setup: /dev/pty2 opened, 
usecount 3
   43   10211 [main] rm 16748 __set_errno: void dll_crt0_1(void*):909 setting 
errno 0
  347   10558 [main] rm 16748 __get_lcid_from_locale: LCID=0x0000
   43   10601 [main] rm 16748 __get_lcid_from_locale: LCID=0x0000
   37   10638 [main] rm 16748 __get_lcid_from_locale: LCID=0x0000
   37   10675 [main] rm 16748 __get_lcid_from_locale: LCID=0x0000
   39   10714 [main] rm 16748 __get_lcid_from_locale: LCID=0x0000
  239   10953 [main] rm 16748 isatty: 1 = isatty(0)
   86   11039 [main] rm 16748 normalize_posix_path: src 
/home/peda/automake/tests/aclibobj.log-t
   14   11053 [main] rm 16748 normalize_posix_path: 
/home/peda/automake/tests/aclibobj.log-t = normalize_posix_path 
(/home/peda/automake/tests/aclibobj.log-t)
   15   11068 [main] rm 16748 mount_info::conv_to_win32_path: 
conv_to_win32_path (/home/peda/automake/tests/aclibobj.log-t)
   15   11083 [main] rm 16748 set_flags: flags: binary (0x2)
   15   11098 [main] rm 16748 mount_info::conv_to_win32_path: src_path 
/home/peda/automake/tests/aclibobj.log-t, dst 
C:\cygwin\home\peda\automake\tests\aclibobj.log-t, flags 0x3000A, rc 0
   35   11133 [main] rm 16748 symlink_info::check: 0xC0000056 = NtCreateFile 
(\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t)
   17   11150 [main] rm 16748 symlink_info::check: 0xC0000056 = 
NtQueryInformationFile (\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t)
   53   11203 [main] rm 16748 symlink_info::check: not a symlink
   17   11220 [main] rm 16748 symlink_info::check: 0 = 
symlink.check(C:\cygwin\home\peda\automake\tests\aclibobj.log-t, 0x28B650) 
(0x43000A)
   15   11235 [main] rm 16748 path_conv::check: 
this->path(C:\cygwin\home\peda\automake\tests\aclibobj.log-t), has_acls(1)
   18   11253 [main] rm 16748 build_fh_pc: fh 0x612673D4, dev 0xC3
   16   11269 [main] rm 16748 stat_worker: 
(\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t, 0x8003AF28, 
0x612673D4), file_attributes 128
   18   11287 [main] rm 16748 fhandler_base::open: 
(\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t, 0x110000)
   28   11315 [main] rm 16748 seterrno_from_nt_status: 
/netrel/src/cygwin-snapshot-20120123-1/winsup/cygwin/fhandler.cc:646 status 
0xC0000056 -> windows error 5
   17   11332 [main] rm 16748 geterrno_from_win_error: windows error 5 == errno 
13
   15   11347 [main] rm 16748 fhandler_base::open: C0000056 = NtCreateFile 
(0x0, 80100000, \??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t, io, 
NULL, 0, 7, 1, 4020, NULL, 0)
   16   11363 [main] rm 16748 fhandler_base::open: 0 = 
fhandler_base::open(\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t, 
0x110000)
   15   11378 [main] rm 16748 fhandler_base::open_fs: 0 = 
fhandler_disk_file::open(\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t, 
0x10000)
   17   11395 [main] rm 16748 fhandler_base::open: 
(\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t, 0x110000)
   26   11421 [main] rm 16748 seterrno_from_nt_status: 
/netrel/src/cygwin-snapshot-20120123-1/winsup/cygwin/fhandler.cc:646 status 
0xC0000056 -> windows error 5
   16   11437 [main] rm 16748 geterrno_from_win_error: windows error 5 == errno 
13
   14   11451 [main] rm 16748 fhandler_base::open: C0000056 = NtCreateFile 
(0x0, 20080, \??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t, io, NULL, 
0, 7, 1, 4000, NULL, 0)
   16   11467 [main] rm 16748 fhandler_base::open: 0 = 
fhandler_base::open(\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t, 
0x110000)
   15   11482 [main] rm 16748 fhandler_base::open_fs: 0 = 
fhandler_disk_file::open(\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t, 
0x10000)
   83   11565 [main] rm 16748 seterrno_from_nt_status: 
/netrel/src/cygwin-snapshot-20120123-1/winsup/cygwin/security.cc:77 status 
0xC0000056 -> windows error 5
   15   11580 [main] rm 16748 geterrno_from_win_error: windows error 5 == errno 
13
   15   11595 [main] rm 16748 fhandler_base::fstat_helper: 0 = fstat 
(\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t, 0x8003AF28) 
st_size=2113, st_mode=0x81A0, st_ino=21673573206720560st_atim=4F280431.748D288 
st_ctim=4F280433.39E60580 st_mtim=4F280431.748D288 st_birthtim=4F280431.748D288
   19   11614 [main] rm 16748 stat_worker: 0 = 
(\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t,0x8003AF28)
   81   11695 [main] rm 16748 normalize_posix_path: src 
/home/peda/automake/tests/aclibobj.log-t
   14   11709 [main] rm 16748 normalize_posix_path: 
/home/peda/automake/tests/aclibobj.log-t = normalize_posix_path 
(/home/peda/automake/tests/aclibobj.log-t)
   15   11724 [main] rm 16748 mount_info::conv_to_win32_path: 
conv_to_win32_path (/home/peda/automake/tests/aclibobj.log-t)
   15   11739 [main] rm 16748 set_flags: flags: binary (0x2)
   14   11753 [main] rm 16748 mount_info::conv_to_win32_path: src_path 
/home/peda/automake/tests/aclibobj.log-t, dst 
C:\cygwin\home\peda\automake\tests\aclibobj.log-t, flags 0x3000A, rc 0
   27   11780 [main] rm 16748 symlink_info::check: 0xC0000056 = NtCreateFile 
(\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t)
   16   11796 [main] rm 16748 symlink_info::check: 0xC0000056 = 
NtQueryInformationFile (\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t)
   41   11837 [main] rm 16748 symlink_info::check: not a symlink
   16   11853 [main] rm 16748 symlink_info::check: 0 = 
symlink.check(C:\cygwin\home\peda\automake\tests\aclibobj.log-t, 0x28B630) 
(0x3000A)
   15   11868 [main] rm 16748 path_conv::check: 
this->path(C:\cygwin\home\peda\automake\tests\aclibobj.log-t), has_acls(1)
   17   11885 [main] rm 16748 unlink_nt: Trying to delete 
\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t, isdir = 0
   26   11911 [main] rm 16748 unlink_nt: Delete 
\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t already pending
   16   11927 [main] rm 16748 unlink_nt: 
\??\C:\cygwin\home\peda\automake\tests\aclibobj.log-t, return status = 0x0
   15   11942 [main] rm 16748 unlink: 0 = 
unlink(/home/peda/automake/tests/aclibobj.log-t)
  136   12078 [main] rm 16748 _cygwin_istext_for_stdio: fd 0: opened as binary
   14   12092 [main] rm 16748 _cygwin_istext_for_stdio: fd 1: opened as binary
   14   12106 [main] rm 16748 _cygwin_istext_for_stdio: fd 2: opened as binary
  134   12240 [main] rm 16748 close: close(0)
   15   12255 [main] rm 16748 init_cygheap::manage_console_count: 
fhandler_pty_slave::close: console_count 5, amount -1, ctty /dev/pty2, 
avoid_freeing_console 0
   15   12270 [main] rm 16748 fhandler_pty_slave::cleanup: /dev/pty2 closed, 
usecount 3
   15   12285 [main] rm 16748 fhandler_base::close_with_arch: line 1118:  
/dev/pty2<0x61266BB4> usecount + -1 = 2
   14   12299 [main] rm 16748 fhandler_base::close_with_arch: not closing 
archetype
   14   12313 [main] rm 16748 close: 0 = close(0)
  272   12585 [main] rm 16748 close: close(1)
   21   12606 [main] rm 16748 fhandler_base::close: closing 
'/cygdrive/c/Cygwin/home/peda/automake/tests/rm.strace' handle 0x2BC
   17   12623 [main] rm 16748 close: 0 = close(1)
  191   12814 [main] rm 16748 close: close(2)
   14   12828 [main] rm 16748 init_cygheap::manage_console_count: 
fhandler_pty_slave::close: console_count 4, amount -1, ctty /dev/pty2, 
avoid_freeing_console 0
   15   12843 [main] rm 16748 fhandler_pty_slave::cleanup: /dev/pty2 closed, 
usecount 2
   14   12857 [main] rm 16748 fhandler_base::close_with_arch: line 1118:  
/dev/pty2<0x61266BB4> usecount + -1 = 1
   15   12872 [main] rm 16748 fhandler_base::close_with_arch: not closing 
archetype
   13   12885 [main] rm 16748 close: 0 = close(2)
  131   13016 [main] rm 16748 do_exit: do_exit (0), exit_state 1
   14   13030 [main] rm 16748 void: 0x0 = signal (20, 0x1)
   15   13045 [main] rm 16748 void: 0x0 = signal (1, 0x1)
   13   13058 [main] rm 16748 void: 0x0 = signal (2, 0x1)
   15   13073 [main] rm 16748 void: 0x0 = signal (3, 0x1)
   15   13088 [main] rm 16748 init_cygheap::close_ctty: closing cygheap->ctty 
0x61266BB4
   14   13102 [main] rm 16748 fhandler_base::close_with_arch: closing passed in 
archetype, usecount 0
   14   13116 [main] rm 16748 fhandler_pty_slave::close: closing last open 
/dev/pty2 handle
   16   13132 [main] rm 16748 fhandler_pty_common::close: pty2 <0x16C,0x174> 
closing
   18   13150 [main] rm 16748 getpid: 16748 = getpid()
   26   13176 [main] rm 16748 sigproc_terminate: entering
   15   13191 [main] rm 16748 sig_send: sendsig 0xA0, pid 16748, signal -42, 
its_me 1
   18   13209 [main] rm 16748 sig_send: Not waiting for sigcomplete.  its_me 1 
signal -42
   15   13224 [main] rm 16748 sig_send: returning 0x0 from sending signal -42
  -12   13212 [sig] rm 16748 wait_sig: saw __SIGEXIT
   25   13237 [main] rm 16748 proc_terminate: nprocs 0
   24   13261 [main] rm 16748 proc_terminate: leaving
    2   13263 [sig] rm 16748 wait_sig: signal thread exiting
   29   13292 [main] rm 16748 __to_clock_t: dwHighDateTime 0, dwLowDateTime 0
   15   13307 [main] rm 16748 __to_clock_t: total 00000000 00000000
   16   13323 [main] rm 16748 __to_clock_t: dwHighDateTime 0, dwLowDateTime 0
   13   13336 [main] rm 16748 __to_clock_t: total 00000000 00000000
   21   13357 [main] rm 16748 pinfo::exit: Calling ExitProcess n 0x0, exitcode 
0x0
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to