cannot create temp file for here document
Barry Demchak
vendors@tpsoft.com
Sat Jul 16 18:50:00 GMT 2005
OK ... end-posted ... see below ...
At 06:12 AM 7/16/2005, Eric Blake wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Ugh, top-posting, reformatted.
> >> Nope, since you don't define TMPDIR, bash is trying to use /tmp. And the
> >> location of /tmp is probably c:\cygwin\tmp, although you didn't follow
> >> the directions to attach cygcheck output, so I can't prove that.
> >>
> >> Please show the output of:
> >>
> >> $ ls -l / /tmp /cygdrive/c
> >> $ getfacl / /tmp /cygdrive/c
>
>Shoot - I meant "ls -ld", to limit the listing to just those three
>directories instead of their contents, but it's okay because the
>information is still there.
>
> >>
> >> My guess is that there are ACLs at play, so that even though ls shows the
> >> directory as writable, an ACL is preventing your user id from actually
> >> creating the temp file.
> >
> > Please find attached my cygcheck.out file.
>
>Let's see - no CYGWIN variable defined, and win2k, so you are running
>ntsec (by default). /tmp is indeed mounted to c:\cygwin\tmp. You're
>pretty up-to-date on packages. So far, so good.
>
> >
> > Please find attached the "ls -l / /tmp /cygdrive/c" output you
> > requested. Note that the error message "ls: /cygdrive/c/pagefile.sys: No
> > such file or directory" was printed to stderr immediately after listing
> > the "/" directory.
>
> > /:
> > drwxr-xr-x 2 bdemchak None 0 Jul 14 23:19 tmp
> > /cygdrive/c:
> > drwxr-xr-x 11 bdemchak None 0 Jul 14 23:17 Cygwin
>
>Weird, no extra ACLs, which would normally be there when running ntsec.
>So those directories are indeed writable by only the bdemchak user, and it
>seems like it should succeed.
>
> >
> > Please find attached the "getfacl / /tmp /cygdrive/c" output you requested.
>
>This confirms that there are no additional ACLs, so that strikes my theory
>that bash was misinterpreting permissions. Perhaps someone else can
>deduce what's going wrong?
>
> > Please find attached the "bash -xv" output you requested.
>
>It looks like your trace cut off the first few lines of execution of
>/etc/profile, but that's okay; it still included all the useful
>information. The result of bash not being able to create the temp file is
>that none of the /etc/profile.d/*.sh scripts are being run at login.
>
> > There's more, though ... as I collected this information, I noticed a
> > very peculiar effect that I'm betting has something to do with this. If
> > I "ls >foo", I'm fine. If I "unlink foo", foo gets deleted, but I also
> > get a spurious error message:
> >
> > bdemchak@malex ~
> > $ unlink foo
> > unlink foo
> > + unlink foo
> > unlink: cannot unlink `foo': No such file or directory
> >
> > Like I said, foo gets deleted, but then there's the error message. This
> > smells like it's all tied together, but I can't quite put my finger on it.
>
>Odd, and yes it might be related. This time, it would be nice to have the
>strace_unlink.out file from "strace -o strace_unlink.out unlink foo". An
>strace of bash would also be nice, but because it is so big, try the
>following to prune it to just the locations where bash tries to open its
>temporary file (bash uses the prefix sh-thd for all temporary here-doc
>files), then just attach strace_bash_lite.out to your reply:
>
>$ strace -o strace_bash_full.out bash -li
>$ exit
>$ grep -C 20 sh-thd strace_bash_full.out > strace_bash_lite.out
>
> >
> > FYI, I *can* create files in tmp using "cat >foo" ... no permission
> > violation or any other error ... works fine.
>
>I'm assuming you did that from within /tmp, and >foo is taken care of by
>bash. So I have no idea why bash can create /tmp/foo and not temporary files.
>
>- --
>Life is short - so eat dessert first!
>
>Eric Blake ebb9@byu.net
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.1 (Cygwin)
>Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
>Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
>iD8DBQFC2Qe984KuGfSFAYARAmwAAJwO1h2OaedeMrxriqUA/KbSq2fGLwCg005C
>7UtazvgRPZR7QZN7Mp4217s=
>=1wgA
>-----END PGP SIGNATURE-----
Attached please find the strace_unlink.out you requested. To get this, I
started Cygwin and did the following:
cd /tmp
cat >foo
blah blah blah ^Z
strace -o strace_unlink.out unlink foo
Looking at the trace, I can see where unlink returns a 2, which would give
the error ... but unlink also deletes the file (I checked). I checked the
Win32 documentation on unlink (both on CD and at MSDN) and there are no
indications of weirdness.
Attached please find the strace_bash_lite.out dump as requested. I executed
this from the /tmp directory, too.
Looking at the track, I can see the same unlink failure as in the unlink trace.
When I create foo in the /tmp directory and then do an ls -l on it, I get:
-rw-r--r-- 1 bdemchak None 15 Jul 16 11:20 foo
Windows claims that the owner is "Everyone", which is a virtual group that
supposedly really does contain everyone.
I can add only a few tidbits.
One is to point out that this partition is a FAT32 partition ... one
wonders if there may be problems because it's not an NTFS partition.
Considering that it's my boot partition, I would change it ... but not
lightly ... and only with very good reason (which this might be).
Also, I am enclosing my passwd file just in case. The user ID I use is
"Barry Demchak". Early on, we edited the passwd file to shorten the name to
bdemchak for cygwin purposes. The reason I have not mentioned this until
now is that the problem also manifests itself with a one-word userID
("dumbass").
In playing around with this, I'm getting the feeling that cygwin maintains
a shadow permission list for each file. My best guess right now is that
this shadow list (if it exists) is getting out of sync with the Windows
directory contents. Were this the case, cygwin might be relying on the
shadow list for part of an operation (like unlink) and Windows for another.
If the two are out of sink, we'd see something like what we're seeing.
Does this lead you anywhere??
Thanks!
-------------- next part --------------
**********************************************
Program name: C:\Cygwin\bin\unlink.exe (pid 2664, ppid 1)
App version: 1005.18, api: 0.132
DLL version: 1005.18, api: 0.132
DLL build: 2005-07-02 20:30
OS version: Windows NT-5.0
Heap size: 402653184
Date/Time: 2005-07-16 11:05:21
**********************************************
87 822 [main] unlink 2664 set_myself: myself->dwProcessId 2664
89 911 [main] unlink 2664 time: 1121537121 = time (0)
738 1649 [main] unlink 2664 environ_init: 0x10010238: !C:=C:\Cygwin\bin
168 1817 [main] unlink 2664 environ_init: 0x10010250: ALLUSERSPROFILE=C:\Documents and Settings\All Users
157 1974 [main] unlink 2664 environ_init: 0x10010288: APPDATA=C:\Documents and Settings\Barry Demchak\Application Data
250 2224 [main] unlink 2664 environ_init: 0x100102D0: CLASSPATH=e:\sysprog\java\j2sdk1.4.2_08\jre\lib\rt.jar
164 2388 [main] unlink 2664 environ_init: 0x10010310: COMMONPROGRAMFILES=C:\Program Files\Common Files
154 2542 [main] unlink 2664 environ_init: 0x10010348: COMPUTERNAME=MALEX
155 2697 [main] unlink 2664 environ_init: 0x10010360: COMSPEC=C:\WINNT\system32\cmd.exe
154 2851 [main] unlink 2664 environ_init: 0x10010388: CVS_RSH=/bin/ssh
154 3005 [main] unlink 2664 environ_init: 0x100103A0: DDKROOT=e:\sysprog\NTDDK
162 3167 [main] unlink 2664 getwinenv: can't set native for HOME= since no environ yet
163 3330 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Cygwin\home\bdemchak, no-keep-rel, no-add-slash)
98 3428 [main] unlink 2664 normalize_win32_path: C:\Cygwin\home\bdemchak = normalize_win32_path (C:\Cygwin\home\bdemchak)
94 3522 [main] unlink 2664 mount_info::conv_to_posix_path: /home/bdemchak = conv_to_posix_path (C:\Cygwin\home\bdemchak)
230 3752 [main] unlink 2664 win_env::add_cache: posix /home/bdemchak
80 3832 [main] unlink 2664 win_env::add_cache: native HOME=C:\Cygwin\home\bdemchak
79 3911 [main] unlink 2664 posify: env var converted to HOME=/home/bdemchak
152 4063 [main] unlink 2664 environ_init: 0x100103E8: HOME=/home/bdemchak
154 4217 [main] unlink 2664 environ_init: 0x100103C0: HOMEDRIVE=C:
154 4371 [main] unlink 2664 environ_init: 0x100103D8: HOMEPATH=\
152 4523 [main] unlink 2664 environ_init: 0x10010538: HOSTNAME=malex
154 4677 [main] unlink 2664 environ_init: 0x10010550: INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:
155 4832 [main] unlink 2664 environ_init: 0x100105C0: JAVA_HOME=E:\Sysprog\Java\j2sdk1.4.2_08
155 4987 [main] unlink 2664 environ_init: 0x100105F0: LOGONSERVER=\\MALEX
154 5141 [main] unlink 2664 environ_init: 0x10010608: MAKE_MODE=unix
152 5293 [main] unlink 2664 environ_init: 0x10010620: MANPATH=/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man:
155 5448 [main] unlink 2664 environ_init: 0x10010670: NUMBER_OF_PROCESSORS=1
153 5601 [main] unlink 2664 environ_init: 0x10010690: OLDPWD=/home/bdemchak
154 5755 [main] unlink 2664 environ_init: 0x100106B0: OS2LIBPATH=C:\WINNT\system32\os2\dll;
154 5909 [main] unlink 2664 environ_init: 0x100106E0: OS=Windows_NT
154 6063 [main] unlink 2664 getwinenv: can't set native for PATH= since no environ yet
92 6155 [main] unlink 2664 normalize_posix_path: src .
86 6241 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Cygwin\tmp, no-keep-rel, no-add-slash)
82 6323 [main] unlink 2664 normalize_win32_path: C:\Cygwin\tmp = normalize_win32_path (C:\Cygwin\tmp)
82 6405 [main] unlink 2664 mount_info::conv_to_posix_path: /tmp = conv_to_posix_path (C:\Cygwin\tmp)
82 6487 [main] unlink 2664 cwdstuff::get: posix /tmp
80 6567 [main] unlink 2664 cwdstuff::get: (/tmp) = cwdstuff::get (0x22EBC0, 260, 1, 0), errno 0
81 6648 [main] unlink 2664 normalize_posix_path: /tmp/ = normalize_posix_path (.)
81 6729 [main] unlink 2664 mount_info::conv_to_win32_path: conv_to_win32_path (/tmp)
535 7264 [main] unlink 2664 set_flags: flags: binary (0x2)
87 7351 [main] unlink 2664 mount_info::conv_to_win32_path: src_path /tmp, dst C:\Cygwin\tmp, flags 0xA, rc 0
342 7693 [main] unlink 2664 symlink_info::check: not a symlink
104 7797 [main] unlink 2664 symlink_info::check: 0 = symlink.check (C:\Cygwin\tmp, 0x22E880) (0xA)
839 8636 [main] unlink 2664 set_privilege: 1 = set_privilege ((token D4) SeChangeNotifyPrivilege, 1)
336 8972 [main] unlink 2664 path_conv::check: this->path(C:\Cygwin\tmp), has_acls(0)
195 9167 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Cygwin\usr\local\bin, keep-rel, no-add-slash)
85 9252 [main] unlink 2664 normalize_win32_path: C:\Cygwin\usr\local\bin = normalize_win32_path (C:\Cygwin\usr\local\bin)
86 9338 [main] unlink 2664 mount_info::conv_to_posix_path: /usr/local/bin = conv_to_posix_path (C:\Cygwin\usr\local\bin)
84 9422 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Cygwin\bin, keep-rel, no-add-slash)
81 9503 [main] unlink 2664 normalize_win32_path: C:\Cygwin\bin = normalize_win32_path (C:\Cygwin\bin)
81 9584 [main] unlink 2664 mount_info::conv_to_posix_path: /usr/bin = conv_to_posix_path (C:\Cygwin\bin)
82 9666 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Cygwin\bin, keep-rel, no-add-slash)
81 9747 [main] unlink 2664 normalize_win32_path: C:\Cygwin\bin = normalize_win32_path (C:\Cygwin\bin)
80 9827 [main] unlink 2664 mount_info::conv_to_posix_path: /usr/bin = conv_to_posix_path (C:\Cygwin\bin)
82 9909 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Cygwin\usr\X11R6\bin, keep-rel, no-add-slash)
81 9990 [main] unlink 2664 normalize_win32_path: C:\Cygwin\usr\X11R6\bin = normalize_win32_path (C:\Cygwin\usr\X11R6\bin)
81 10071 [main] unlink 2664 mount_info::conv_to_posix_path: /usr/X11R6/bin = conv_to_posix_path (C:\Cygwin\usr\X11R6\bin)
83 10154 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (c:\WINNT\system32, keep-rel, no-add-slash)
80 10234 [main] unlink 2664 normalize_win32_path: c:\WINNT\system32 = normalize_win32_path (c:\WINNT\system32)
82 10316 [main] unlink 2664 mount_info::conv_to_posix_path: /cygdrive/c/WINNT/system32 = conv_to_posix_path (c:\WINNT\system32)
83 10399 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (c:\WINNT, keep-rel, no-add-slash)
80 10479 [main] unlink 2664 normalize_win32_path: c:\WINNT = normalize_win32_path (c:\WINNT)
81 10560 [main] unlink 2664 mount_info::conv_to_posix_path: /cygdrive/c/WINNT = conv_to_posix_path (c:\WINNT)
82 10642 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (c:\WINNT\System32\Wbem, keep-rel, no-add-slash)
80 10722 [main] unlink 2664 normalize_win32_path: c:\WINNT\System32\Wbem = normalize_win32_path (c:\WINNT\System32\Wbem)
83 10805 [main] unlink 2664 mount_info::conv_to_posix_path: /cygdrive/c/WINNT/System32/Wbem = conv_to_posix_path (c:\WINNT\System32\Wbem)
82 10887 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (e:\sysprog\java\j2sdk1.4.2_08\bin, keep-rel, no-add-slash)
82 10969 [main] unlink 2664 normalize_win32_path: e:\sysprog\java\j2sdk1.4.2_08\bin = normalize_win32_path (e:\sysprog\java\j2sdk1.4.2_08\bin)
82 11051 [main] unlink 2664 mount_info::conv_to_posix_path: /cygdrive/e/sysprog/java/j2sdk1.4.2_08/bin = conv_to_posix_path (e:\sysprog\java\j2sdk1.4.2_08\bin)
82 11133 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (c:\PROGRAM FILES\THINKPAD\UTILITIES, keep-rel, no-add-slash)
84 11217 [main] unlink 2664 normalize_win32_path: c:\PROGRAM FILES\THINKPAD\UTILITIES = normalize_win32_path (c:\PROGRAM FILES\THINKPAD\UTILITIES)
82 11299 [main] unlink 2664 mount_info::conv_to_posix_path: /cygdrive/c/PROGRAM FILES/THINKPAD/UTILITIES = conv_to_posix_path (c:\PROGRAM FILES\THINKPAD\UTILITIES)
98 11397 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (e:\comprog\Symantec\pcAnywhere\, keep-rel, add-slash)
83 11480 [main] unlink 2664 normalize_win32_path: e:\comprog\Symantec\pcAnywhere\ = normalize_win32_path (e:\comprog\Symantec\pcAnywhere\)
102 11582 [main] unlink 2664 mount_info::conv_to_posix_path: /cygdrive/e/comprog/Symantec/pcAnywhere/ = conv_to_posix_path (e:\comprog\Symantec\pcAnywhere\)
86 11668 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (e:\comprog\symantec\winfax\macros, keep-rel, no-add-slash)
81 11749 [main] unlink 2664 normalize_win32_path: e:\comprog\symantec\winfax\macros = normalize_win32_path (e:\comprog\symantec\winfax\macros)
83 11832 [main] unlink 2664 mount_info::conv_to_posix_path: /cygdrive/e/comprog/symantec/winfax/macros = conv_to_posix_path (e:\comprog\symantec\winfax\macros)
83 11915 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (e:\sysprog\Microsoft\Support Tools\, keep-rel, add-slash)
81 11996 [main] unlink 2664 normalize_win32_path: e:\sysprog\Microsoft\Support Tools\ = normalize_win32_path (e:\sysprog\Microsoft\Support Tools\)
84 12080 [main] unlink 2664 mount_info::conv_to_posix_path: /cygdrive/e/sysprog/Microsoft/Support Tools/ = conv_to_posix_path (e:\sysprog\Microsoft\Support Tools\)
83 12163 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Program Files\ATI Technologies\ATI Control Panel, keep-rel, no-add-slash)
82 12245 [main] unlink 2664 normalize_win32_path: c:\Program Files\ATI Technologies\ATI Control Panel = normalize_win32_path (c:\Program Files\ATI Technologies\ATI Control Panel)
83 12328 [main] unlink 2664 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/ATI Technologies/ATI Control Panel = conv_to_posix_path (c:\Program Files\ATI Technologies\ATI Control Panel)
84 12412 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Program Files\ATI Technologies\Fire GL 3D Studio Max, keep-rel, no-add-slash)
82 12494 [main] unlink 2664 normalize_win32_path: c:\Program Files\ATI Technologies\Fire GL 3D Studio Max = normalize_win32_path (c:\Program Files\ATI Technologies\Fire GL 3D Studio Max)
83 12577 [main] unlink 2664 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/ATI Technologies/Fire GL 3D Studio Max = conv_to_posix_path (c:\Program Files\ATI Technologies\Fire GL 3D Studio Max)
84 12661 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Program Files\ATI Technologies\Fire GL Control Panel, keep-rel, no-add-slash)
166 12827 [main] unlink 2664 normalize_win32_path: c:\Program Files\ATI Technologies\Fire GL Control Panel = normalize_win32_path (c:\Program Files\ATI Technologies\Fire GL Control Panel)
90 12917 [main] unlink 2664 mount_info::conv_to_posix_path: /cygdrive/c/Program Files/ATI Technologies/Fire GL Control Panel = conv_to_posix_path (c:\Program Files\ATI Technologies\Fire GL Control Panel)
288 13205 [main] unlink 2664 win_env::add_cache: posix /usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/e/sysprog/java/j2sdk1.4.2_08/bin:/cygdrive/c/PROGRAM FILES/THINKPAD/UTILITIES:/cygdrive/e/comprog/Symantec/pcAnywhere/:/cygdrive/e/comprog/symantec/winfax/macros:/cygdrive/e/sysprog/Microsoft/Support Tools/:/cygdrive/c/Program Files/ATI Technologies/ATI Control Panel:/cygdrive/c/Program Files/ATI Technologies/Fire GL 3D Studio Max:/cygdrive/c/Program Files/ATI Technologies/Fire GL Control Panel
100 13305 [main] unlink 2664 win_env::add_cache: native PATH=C:\Cygwin\usr\local\bin;C:\Cygwin\bin;C:\Cygwin\bin;C:\Cygwin\usr\X11R6\bin;c:\WINNT\system32;c:\WINNT;c:\WINNT\System32\Wbem;e:\sysprog\java\j2sdk1.4.2_08\bin;c:\PROGRAM FILES\THINKPAD\UTILITIES;e:\comprog\Symantec\pcAnywhere\;e:\comprog\symantec\winfax\macros;e:\sysprog\Microsoft\Support Tools\;c:\Program Files\ATI Technologies\ATI Control Panel;c:\Program Files\ATI Technologies\Fire GL 3D Studio Max;c:\Program Files\ATI Technologies\Fire GL Control Panel
100 13405 [main] unlink 2664 posify: env var converted to PATH=/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/e/sysprog/java/j2sdk1.4.2_08/bin:/cygdrive/c/PROGRAM FILES/THINKPAD/UTILITIES:/cygdrive/e/comprog/Symantec/pcAnywhere/:/cygdrive/e/comprog/symantec/winfax/macros:/cygdrive/e/sysprog/Microsoft/Support Tools/:/cygdrive/c/Program Files/ATI Technologies/ATI Control Panel:/cygdrive/c/Program Files/ATI Technologies/Fire GL 3D Studio Max:/cygdrive/c/Program Files/ATI Technologies/Fire GL Control Panel
168 13573 [main] unlink 2664 environ_init: 0x100108D0: PATH=/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/e/sysprog/java/j2sdk1.4.2_08/bin:/cygdrive/c/PROGRAM FILES/THINKPAD/UTILITIES:/cygdrive/e/comprog/Symantec/pcAnywhere/:/cygdrive/e/comprog/symantec/winfax/macros:/cygdrive/e/sysprog/Microsoft/Support Tools/:/cygdrive/c/Program Files/ATI Technologies/ATI Control Panel:/cygdrive/c/Program Files/ATI Technologies/Fire GL 3D Studio Max:/cygdrive/c/Program Files/ATI Technologies/Fire GL Control Panel
172 13745 [main] unlink 2664 environ_init: 0x100106F8: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
155 13900 [main] unlink 2664 environ_init: 0x10010738: PRINTER=\\MCHEWBACCA\KOOP PCL 5E
154 14054 [main] unlink 2664 environ_init: 0x10010760: PROCESSOR_ARCHITECTURE=x86
153 14207 [main] unlink 2664 environ_init: 0x10010780: PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 4, GenuineIntel
155 14362 [main] unlink 2664 environ_init: 0x100107C8: PROCESSOR_LEVEL=15
153 14515 [main] unlink 2664 environ_init: 0x100107E0: PROCESSOR_REVISION=0204
153 14668 [main] unlink 2664 environ_init: 0x10010800: PROGRAMFILES=C:\Program Files
154 14822 [main] unlink 2664 environ_init: 0x10010828: PROMPT=$P$G
152 14974 [main] unlink 2664 environ_init: 0x10010838: PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$
154 15128 [main] unlink 2664 environ_init: 0x10010880: PWD=/tmp
153 15281 [main] unlink 2664 environ_init: 0x10010890: SHLVL=1
153 15434 [main] unlink 2664 environ_init: 0x100108A0: SYSTEMDRIVE=C:
152 15586 [main] unlink 2664 environ_init: 0x100108B8: SYSTEMROOT=C:\WINNT
155 15741 [main] unlink 2664 getwinenv: can't set native for TEMP= since no environ yet
156 15897 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (C:\DOCUME~1\BARRYD~1\LOCALS~1\Temp, no-keep-rel, no-add-slash)
82 15979 [main] unlink 2664 normalize_win32_path: C:\DOCUME~1\BARRYD~1\LOCALS~1\Temp = normalize_win32_path (C:\DOCUME~1\BARRYD~1\LOCALS~1\Temp)
82 16061 [main] unlink 2664 mount_info::conv_to_posix_path: /cygdrive/c/DOCUME~1/BARRYD~1/LOCALS~1/Temp = conv_to_posix_path (C:\DOCUME~1\BARRYD~1\LOCALS~1\Temp)
231 16292 [main] unlink 2664 win_env::add_cache: posix /cygdrive/c/DOCUME~1/BARRYD~1/LOCALS~1/Temp
80 16372 [main] unlink 2664 win_env::add_cache: native TEMP=C:\DOCUME~1\BARRYD~1\LOCALS~1\Temp
79 16451 [main] unlink 2664 posify: env var converted to TEMP=/cygdrive/c/DOCUME~1/BARRYD~1/LOCALS~1/Temp
154 16605 [main] unlink 2664 environ_init: 0x10011020: TEMP=/cygdrive/c/DOCUME~1/BARRYD~1/LOCALS~1/Temp
156 16761 [main] unlink 2664 environ_init: 0x10010FF0: TERM=cygwin
153 16914 [main] unlink 2664 getwinenv: can't set native for TMP= since no environ yet
154 17068 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (C:\DOCUME~1\BARRYD~1\LOCALS~1\Temp, no-keep-rel, no-add-slash)
80 17148 [main] unlink 2664 normalize_win32_path: C:\DOCUME~1\BARRYD~1\LOCALS~1\Temp = normalize_win32_path (C:\DOCUME~1\BARRYD~1\LOCALS~1\Temp)
81 17229 [main] unlink 2664 mount_info::conv_to_posix_path: /cygdrive/c/DOCUME~1/BARRYD~1/LOCALS~1/Temp = conv_to_posix_path (C:\DOCUME~1\BARRYD~1\LOCALS~1\Temp)
230 17459 [main] unlink 2664 win_env::add_cache: posix /cygdrive/c/DOCUME~1/BARRYD~1/LOCALS~1/Temp
85 17544 [main] unlink 2664 win_env::add_cache: native TMP=C:\DOCUME~1\BARRYD~1\LOCALS~1\Temp
80 17624 [main] unlink 2664 posify: env var converted to TMP=/cygdrive/c/DOCUME~1/BARRYD~1/LOCALS~1/Temp
152 17776 [main] unlink 2664 environ_init: 0x100111C0: TMP=/cygdrive/c/DOCUME~1/BARRYD~1/LOCALS~1/Temp
156 17932 [main] unlink 2664 environ_init: 0x10011000: TVDUMPFLAGS=10
154 18086 [main] unlink 2664 environ_init: 0x10011190: USER=bdemchak
152 18238 [main] unlink 2664 environ_init: 0x100111A8: USERDOMAIN=MALEX
153 18391 [main] unlink 2664 environ_init: 0x10011330: USERNAME=Barry Demchak
154 18545 [main] unlink 2664 environ_init: 0x10011350: USERPROFILE=C:\Documents and Settings\Barry Demchak
154 18699 [main] unlink 2664 environ_init: 0x10011388: WINDIR=C:\WINNT
152 18851 [main] unlink 2664 environ_init: 0x100113A0: _=/usr/bin/strace
97 18948 [main] unlink 2664 pinfo_init: Set nice to 0
83 19031 [main] unlink 2664 pinfo_init: pid 2664, pgid 2664
777 19808 [main] unlink 2664 set_privilege: 0 = set_privilege ((token A8) SeRestorePrivilege, 1)
128 19936 [main] unlink 2664 set_privilege: 1 = set_privilege ((token A8) SeChangeNotifyPrivilege, 1)
143 20079 [main] unlink 2664 dtable::extend: size 32, fds 0x611556B0
105 20184 [main] unlink 2664 normalize_posix_path: src /etc/passwd
85 20269 [main] unlink 2664 normalize_posix_path: /etc/passwd = normalize_posix_path (/etc/passwd)
81 20350 [main] unlink 2664 mount_info::conv_to_win32_path: conv_to_win32_path (/etc/passwd)
84 20434 [main] unlink 2664 set_flags: flags: binary (0x2)
83 20517 [main] unlink 2664 mount_info::conv_to_win32_path: src_path /etc/passwd, dst C:\Cygwin\etc\passwd, flags 0xA, rc 0
337 20854 [main] unlink 2664 symlink_info::check: not a symlink
97 20951 [main] unlink 2664 symlink_info::check: 0 = symlink.check (C:\Cygwin\etc\passwd, 0x22E830) (0xA)
88 21039 [main] unlink 2664 path_conv::check: this->path(C:\Cygwin\etc\passwd), has_acls(0)
241 21280 [main] unlink 2664 etc::test_file_change: FindFirstFile succeeded
1273 22553 [main] unlink 2664 pwdgrp::load: /etc/passwd curr_lines 17
99 22652 [main] unlink 2664 pwdgrp::load: /etc/passwd load succeeded
115 22767 [main] unlink 2664 normalize_posix_path: src /etc/group
82 22849 [main] unlink 2664 normalize_posix_path: /etc/group = normalize_posix_path (/etc/group)
83 22932 [main] unlink 2664 mount_info::conv_to_win32_path: conv_to_win32_path (/etc/group)
84 23016 [main] unlink 2664 set_flags: flags: binary (0x2)
82 23098 [main] unlink 2664 mount_info::conv_to_win32_path: src_path /etc/group, dst C:\Cygwin\etc\group, flags 0xA, rc 0
290 23388 [main] unlink 2664 symlink_info::check: not a symlink
171 23559 [main] unlink 2664 symlink_info::check: 0 = symlink.check (C:\Cygwin\etc\group, 0x22E7F0) (0xA)
94 23653 [main] unlink 2664 path_conv::check: this->path(C:\Cygwin\etc\group), has_acls(0)
232 23885 [main] unlink 2664 etc::test_file_change: FindFirstFile succeeded
1225 25110 [main] unlink 2664 pwdgrp::load: /etc/group curr_lines 11
89 25199 [main] unlink 2664 pwdgrp::load: /etc/group load succeeded
104 25303 [main] unlink 2664 cygheap_user::ontherange: what 2, pw 0x10011CA0
87 25390 [main] unlink 2664 cygheap_user::ontherange: HOME is already in the environment /home/bdemchak
601 25991 [sig] unlink 2664 wait_sig: myself->dwProcessId 2664
117 26108 [sig] unlink 2664 wait_sig: entering ReadFile loop, readsig 0xE0, myself->sendsig 0xE8
106 26214 [main] unlink 2664 sigproc_init: process/signal handling enabled(41)
468 26682 [main] unlink 2664 build_argv: argv[0] = 'unlink'
92 26774 [main] unlink 2664 build_argv: argv[1] = 'foo'
90 26864 [main] unlink 2664 build_argv: argc 2
198 27062 [main] unlink 2664 build_fh_pc: fh 0x611557E8
129 27191 [main] unlink 2664 open_shared: name (null), shared 0x60020000 (wanted 0x60020000), h 0xDC
118 27309 [main] unlink 2664 _pinfo::set_ctty: checking if /dev/tty-1 changed
97 27406 [main] unlink 2664 _pinfo::set_ctty: attached tty1073741824 sid 2664, pid 2664, tty->pgid 2664, tty->sid 2664
86088 113494 [main] unlink 2664 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
171 113665 [main] unlink 2664 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
96 113761 [main] unlink 2664 fhandler_base::set_flags: filemode set to binary
1079 114840 [main] unlink 2664 fhandler_console::open: incremented open_fhs, now 1
126 114966 [main] unlink 2664 fhandler_console::open: opened conin$ 0x2B, conout$ 0x2F
117 115083 [main] unlink 2664 fhandler_console::output_tcsetattr: 0 = tcsetattr (,60020018) (ENABLE FLAGS 3) (lflag 107 oflag 9)
222 115305 [main] unlink 2664 build_fh_pc: fh 0x611559F0
93 115398 [main] unlink 2664 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
92 115490 [main] unlink 2664 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
91 115581 [main] unlink 2664 fhandler_base::set_flags: filemode set to binary
230 115811 [main] unlink 2664 fhandler_console::open: incremented open_fhs, now 2
101 115912 [main] unlink 2664 fhandler_console::open: opened conin$ 0xB, conout$ 0x33
111 116023 [main] unlink 2664 fhandler_console::output_tcsetattr: 0 = tcsetattr (,60020018) (ENABLE FLAGS 3) (lflag 107 oflag 9)
211 116234 [main] unlink 2664 build_fh_pc: fh 0x61155BF8
91 116325 [main] unlink 2664 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
91 116416 [main] unlink 2664 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
90 116506 [main] unlink 2664 fhandler_base::set_flags: filemode set to binary
146 116652 [main] unlink 2664 fhandler_console::open: incremented open_fhs, now 3
93 116745 [main] unlink 2664 fhandler_console::open: opened conin$ 0x13, conout$ 0x37
110 116855 [main] unlink 2664 fhandler_console::output_tcsetattr: 0 = tcsetattr (,60020018) (ENABLE FLAGS 3) (lflag 107 oflag 9)
457 117312 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Cygwin\bin\cygiconv-2.dll, keep-rel, no-add-slash)
99 117411 [main] unlink 2664 normalize_win32_path: C:\Cygwin\bin\cygiconv-2.dll = normalize_win32_path (C:\Cygwin\bin\cygiconv-2.dll)
93 117504 [main] unlink 2664 mount_info::conv_to_posix_path: /usr/bin/cygiconv-2.dll = conv_to_posix_path (C:\Cygwin\bin\cygiconv-2.dll)
209 117713 [main] unlink 2664 mount_info::conv_to_posix_path: conv_to_posix_path (C:\Cygwin\bin\cygintl-3.dll, keep-rel, no-add-slash)
95 117808 [main] unlink 2664 normalize_win32_path: C:\Cygwin\bin\cygintl-3.dll = normalize_win32_path (C:\Cygwin\bin\cygintl-3.dll)
92 117900 [main] unlink 2664 mount_info::conv_to_posix_path: /usr/bin/cygintl-3.dll = conv_to_posix_path (C:\Cygwin\bin\cygintl-3.dll)
177 118077 [main] unlink 2664 dll_crt0_1: user_data->main 0x401140
89 118166 [main] unlink 2664 __set_errno: void dll_crt0_1(char*):880 val 0
90 118256 [main] unlink 2664 wait_for_sigthread: wait_sig_inited 0xE4
937 119193 [main] unlink 2664 normalize_posix_path: src foo
105 119298 [main] unlink 2664 cwdstuff::get: posix /tmp
92 119390 [main] unlink 2664 cwdstuff::get: (/tmp) = cwdstuff::get (0x22EBE0, 260, 1, 0), errno 0
91 119481 [main] unlink 2664 normalize_posix_path: /tmp/foo = normalize_posix_path (foo)
92 119573 [main] unlink 2664 mount_info::conv_to_win32_path: conv_to_win32_path (/tmp/foo)
101 119674 [main] unlink 2664 set_flags: flags: binary (0x2)
92 119766 [main] unlink 2664 mount_info::conv_to_win32_path: src_path /tmp/foo, dst C:\Cygwin\tmp\foo, flags 0xA, rc 0
349 120115 [main] unlink 2664 symlink_info::check: not a symlink
101 120216 [main] unlink 2664 symlink_info::check: 0 = symlink.check (C:\Cygwin\tmp\foo, 0x22E8A0) (0xA)
88 120304 [main] unlink 2664 path_conv::check: this->path(C:\Cygwin\tmp\foo), has_acls(0)
82 120386 [main] unlink 2664 unlink: _unlink (C:\Cygwin\tmp\foo)
3090 123476 [main] unlink 2664 seterrno_from_win_error: /netrel/src/cygwin-1.5.18-1/winsup/cygwin/syscalls.cc:259 windows error 2
186 123662 [main] unlink 2664 geterrno_from_win_error: windows error 2 == errno 2
94 123756 [main] unlink 2664 __set_errno: void seterrno_from_win_error(const char*, int, DWORD):307 val 2
94 123850 [main] unlink 2664 unlink: -1 = unlink (foo)
815 124665 [main] unlink 2664 fhandler_console::write: 22D360, 8
96 124761 [main] unlink 2664 fhandler_console::write: at 117(u) state is 0
200 124961 [main] unlink 2664 fhandler_console::write: 8 = write_console (,..8)
764 125725 [main] unlink 2664 fhandler_console::write: 22CF50, 19
91 125816 [main] unlink 2664 fhandler_console::write: at 99(c) state is 0
145 125961 [main] unlink 2664 fhandler_console::write: 19 = write_console (,..19)
755 126716 [main] unlink 2664 fhandler_console::write: 22CF30, 27
90 126806 [main] unlink 2664 fhandler_console::write: at 58(:) state is 0
132 126938 [main] unlink 2664 fhandler_console::write: 27 = write_console (,..27)
434 127372 [main] unlink 2664 fhandler_console::write: 610E30E7, 1
91 127463 [main] unlink 2664 fhandler_console::write: at 10(0x20) state is 0
194 127657 [main] unlink 2664 fhandler_console::write: 1 = write_console (,..1)
758 128415 [main] unlink 2664 close: close (1)
115 128530 [main] unlink 2664 fhandler_console::close: decremented open_fhs, now 2
93 128623 [main] unlink 2664 close: 0 = close (1)
574 129197 [main] unlink 2664 close: close (0)
109 129306 [main] unlink 2664 fhandler_console::close: decremented open_fhs, now 1
91 129397 [main] unlink 2664 close: 0 = close (0)
732 130129 [main] unlink 2664 close: close (2)
110 130239 [main] unlink 2664 fhandler_console::close: decremented open_fhs, now 0
91 130330 [main] unlink 2664 close: 0 = close (2)
410 130740 [main] unlink 2664 do_exit: do_exit (256), exit_state 0
95 130835 [main] unlink 2664 void: 0x0 = signal (20, 0x1)
91 130926 [main] unlink 2664 void: 0x0 = signal (1, 0x1)
89 131015 [main] unlink 2664 void: 0x0 = signal (2, 0x1)
89 131104 [main] unlink 2664 void: 0x0 = signal (3, 0x1)
91 131195 [main] unlink 2664 sigproc_terminate: entering
120 131315 [sig] unlink 2664 wait_sig: done
88 131403 [sig] unlink 2664 _cygtls::remove: wait 0x0
246 131649 [main] unlink 2664 proc_terminate: nprocs 0
424 132073 [main] unlink 2664 proc_terminate: leaving
197 132270 [main] unlink 2664 sigproc_terminate: sigproc handling not active
297 132567 [main] unlink 2664 proc_terminate: nprocs 0
102 132669 [main] unlink 2664 proc_terminate: leaving
87 132756 [main] unlink 2664 __to_clock_t: dwHighDateTime 0, dwLowDateTime 901296
81 132837 [main] unlink 2664 __to_clock_t: total 00000000 0000005A
82 132919 [main] unlink 2664 __to_clock_t: dwHighDateTime 0, dwLowDateTime 100144
79 132998 [main] unlink 2664 __to_clock_t: total 00000000 0000000A
2525 135523 [main] unlink 2664 pinfo::maybe_set_exit_code_from_windows: pid 2664, exit value - old 0x80000100, windows 0xDEADBEEF, cygwin 0x80000100
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: strace_bash_lite.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050716/cac1f16b/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: passwd
Type: application/octet-stream
Size: 2109 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050716/cac1f16b/attachment.obj>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list