Mail Archives: cygwin-developers/2001/07/12/14:52:46
This is a multi-part message in MIME format.
--------------97303D71D71CD7062A707EB1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Christopher Faylor wrote:
>
> On Thu, Jul 12, 2001 at 02:17:49PM -0600, Earnie Boyd wrote:
> >The error happens with the newest dll and NOT with the 2001-05-30 dll.
>
> Ok. Your test case has a bug. Is that intentional? You're passing
> an invalid pointer as argument two.
>
> I just tested this with the most recent cvs version and 'ls -l' which
> had no problems with this, so I assumed that this was an "old dll"
> problem.
>
Oh, sorry. It still doesn't look correct in the strace though. See the
error in path_conv::update_fs_info.
Earnie.
--------------97303D71D71CD7062A707EB1
Content-Type: text/plain; charset=us-ascii;
name="null.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="null.c"
#include <stdlib.h>
#include <sys/stat.h>
int
main ( void )
{
struct stat fs;
stat("/dev/null", &fs);
}
--------------97303D71D71CD7062A707EB1
Content-Type: text/plain; charset=us-ascii;
name="null.strace.bad"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="null.strace.bad"
**********************************************
Program name: c:\cygmnt\prj\msys\adhoc\junk\null.exe (335)
App version: 1003.3, api: 0.39
DLL version: 1003.3, api: 0.40
DLL build: 2001-07-12 11:50
OS version: Windows NT-4.0
Date/Time: 2001-07-12 14:46:32
**********************************************
1222 2314 [main] null 335 environ_init: 0xA0101B0: !C:=C:\cygwin-new\bin
213 2527 [main] null 335 environ_init: 0xA0101D0: CFLAGS=-O0 -g
197 2724 [main] null 335 environ_init: 0xA0101E8: COLORFGBG=0;default;15
197 2921 [main] null 335 environ_init: 0xA010208: COLORTERM=rxvt-xpm
197 3118 [main] null 335 environ_init: 0xA010220: COMPUTERNAME=DU216771
197 3315 [main] null 335 environ_init: 0xA010240: COMSPEC=C:\WINNT\system32\cmd.exe
198 3513 [main] null 335 environ_init: 0xA010268: CVS_RSH=ssh
195 3708 [main] null 335 environ_init: 0xA010278: CXXFLAGS=-O0 -g
201 3909 [main] null 335 parse_options: binmode 65536
201 4110 [main] null 335 parse_options: returning
100 4210 [main] null 335 environ_init: 0xA010290: CYGWIN=binmode case_check:strict
198 4408 [main] null 335 environ_init: 0xA0102C8: DISPLAY=:0
199 4607 [main] null 335 getwinenv: can't set native for HOME= since no environ yet
210 4817 [main] null 335 mount_info::conv_to_posix_path: conv_to_posix_path (c:\cygmnt\home\BoydE, no-keep-rel, no-add-slash)
121 4938 [main] null 335 normalize_win32_path: c:\cygmnt\home\BoydE = normalize_win32_path (c:\cygmnt\home\BoydE)
131 5069 [main] null 335 mount_info::conv_to_posix_path: /home/BoydE = conv_to_posix_path (c:\cygmnt\home\BoydE)
298 5367 [main] null 335 win_env::add_cache: posix /home/BoydE
102 5469 [main] null 335 win_env::add_cache: native HOME=c:\cygmnt\home\BoydE
103 5572 [main] null 335 posify: env var converted to HOME=/home/BoydE
196 5768 [main] null 335 environ_init: 0xA0102F8: HOME=/home/BoydE
299 6067 [main] null 335 environ_init: 0xA0102D8: HOMEDRIVE=C:
204 6271 [main] null 335 environ_init: 0xA010438: HOMEPATH=\
197 6468 [main] null 335 environ_init: 0xA010448: HOMESHARE=\\dub2kfil003\BOYDE$
199 6667 [main] null 335 environ_init: 0xA010470: HOSTNAME=DU216771
197 6864 [main] null 335 environ_init: 0xA010488: HOSTTYPE=i686
196 7060 [main] null 335 environ_init: 0xA0104A0: LFS=/prj/lfs
197 7257 [main] null 335 environ_init: 0xA0104B8: LOGONSERVER=\\DUBNTDC001
196 7453 [main] null 335 environ_init: 0xA0104D8: MACHTYPE=i686-pc-cygwin
196 7649 [main] null 335 environ_init: 0xA0104F8: MAKE_MODE=unix
196 7845 [main] null 335 environ_init: 0xA010510: NUMBER_OF_PROCESSORS=1
196 8041 [main] null 335 environ_init: 0xA010530: OLDPWD=/home/BoydE
196 8237 [main] null 335 environ_init: 0xA010548: OS2LIBPATH=C:\WINNT\system32\os2\dll;
197 8434 [main] null 335 environ_init: 0xA010578: OS=Windows_NT
195 8629 [main] null 335 environ_init: 0xA010590: OSTYPE=cygwin
198 8827 [main] null 335 getwinenv: can't set native for PATH= since no environ yet
207 9034 [main] null 335 mount_info::conv_to_posix_path: conv_to_posix_path (c:\cygwin-new\opt\sbin, keep-rel, no-add-slash)
110 9144 [main] null 335 normalize_win32_path: c:\cygwin-new\opt\sbin = normalize_win32_path (c:\cygwin-new\opt\sbin)
123 9267 [main] null 335 mount_info::conv_to_posix_path: /opt/sbin = conv_to_posix_path (c:\cygwin-new\opt\sbin)
110 9377 [main] null 335 mount_info::conv_to_posix_path: conv_to_posix_path (c:\cygwin-new\sbin, keep-rel, no-add-slash)
110 9487 [main] null 335 normalize_win32_path: c:\cygwin-new\sbin = normalize_win32_path (c:\cygwin-new\sbin)
111 9598 [main] null 335 mount_info::conv_to_posix_path: /sbin = conv_to_posix_path (c:\cygwin-new\sbin)
108 9706 [main] null 335 mount_info::conv_to_posix_path: conv_to_posix_path (c:\cygwin-new\usr\sbin, keep-rel, no-add-slash)
109 9815 [main] null 335 normalize_win32_path: c:\cygwin-new\usr\sbin = normalize_win32_path (c:\cygwin-new\usr\sbin)
113 9928 [main] null 335 mount_info::conv_to_posix_path: /usr/sbin = conv_to_posix_path (c:\cygwin-new\usr\sbin)
124 10052 [main] null 335 mount_info::conv_to_posix_path: conv_to_posix_path (c:\cygwin-new\usr\local\sbin, keep-rel, no-add-slash)
112 10164 [main] null 335 normalize_win32_path: c:\cygwin-new\usr\local\sbin = normalize_win32_path (c:\cygwin-new\usr\local\sbin)
115 10279 [main] null 335 mount_info::conv_to_posix_path: /usr/local/sbin = conv_to_posix_path (c:\cygwin-new\usr\local\sbin)
110 10389 [main] null 335 mount_info::conv_to_posix_path: conv_to_posix_path (c:\cygwin-new\usr\local\bin, keep-rel, no-add-slash)
111 10500 [main] null 335 normalize_win32_path: c:\cygwin-new\usr\local\bin = normalize_win32_path (c:\cygwin-new\usr\local\bin)
113 10613 [main] null 335 mount_info::conv_to_posix_path: /usr/local/bin = conv_to_posix_path (c:\cygwin-new\usr\local\bin)
109 10722 [main] null 335 mount_info::conv_to_posix_path: conv_to_posix_path (c:\cygwin-new\bin, keep-rel, no-add-slash)
109 10831 [main] null 335 normalize_win32_path: c:\cygwin-new\bin = normalize_win32_path (c:\cygwin-new\bin)
108 10939 [main] null 335 mount_info::conv_to_posix_path: /bin = conv_to_posix_path (c:\cygwin-new\bin)
109 11048 [main] null 335 mount_info::conv_to_posix_path: conv_to_posix_path (c:\cygwin-new\bin, keep-rel, no-add-slash)
109 11157 [main] null 335 normalize_win32_path: c:\cygwin-new\bin = normalize_win32_path (c:\cygwin-new\bin)
108 11265 [main] null 335 mount_info::conv_to_posix_path: /bin = conv_to_posix_path (c:\cygwin-new\bin)
108 11373 [main] null 335 mount_info::conv_to_posix_path: conv_to_posix_path (c:\Program Files\Microsoft Office\Office, keep-rel, no-add-slash)
113 11486 [main] null 335 normalize_win32_path: c:\Program Files\Microsoft Office\Office = normalize_win32_path (c:\Program Files\Microsoft Office\Office)
117 11603 [main] null 335 mount_info::conv_to_posix_path: /c/Program Files/Microsoft Office/Office = conv_to_posix_path (c:\Program Files\Microsoft Office\Office)
113 11716 [main] null 335 mount_info::conv_to_posix_path: conv_to_posix_path (c:\WINNT\system32, keep-rel, no-add-slash)
109 11825 [main] null 335 normalize_win32_path: c:\WINNT\system32 = normalize_win32_path (c:\WINNT\system32)
112 11937 [main] null 335 mount_info::conv_to_posix_path: /c/WINNT/system32 = conv_to_posix_path (c:\WINNT\system32)
109 12046 [main] null 335 mount_info::conv_to_posix_path: conv_to_posix_path (c:\WINNT, keep-rel, no-add-slash)
107 12153 [main] null 335 normalize_win32_path: c:\WINNT = normalize_win32_path (c:\WINNT)
109 12262 [main] null 335 mount_info::conv_to_posix_path: /c/WINNT = conv_to_posix_path (c:\WINNT)
107 12369 [main] null 335 mount_info::conv_to_posix_path: conv_to_posix_path (c:\cygwin-new\bin, keep-rel, no-add-slash)
109 12478 [main] null 335 normalize_win32_path: c:\cygwin-new\bin = normalize_win32_path (c:\cygwin-new\bin)
109 12587 [main] null 335 mount_info::conv_to_posix_path: /bin = conv_to_posix_path (c:\cygwin-new\bin)
303 12890 [main] null 335 win_env::add_cache: posix /opt/sbin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/bin:/bin:/c/Program Files/Microsoft Office/Office:/c/WINNT/system32:/c/WINNT:/bin
114 13004 [main] null 335 win_env::add_cache: native PATH=c:\cygwin-new\opt\sbin;c:\cygwin-new\sbin;c:\cygwin-new\usr\sbin;c:\cygwin-new\usr\local\sbin;c:\cygwin-new\usr\local\bin;c:\cygwin-new\bin;c:\cygwin-new\bin;c:\Program Files\Microsoft Office\Office;c:\WINNT\system32;c:\WINNT;c:\cygwin-new\bin
123 13127 [main] null 335 posify: env var converted to PATH=/opt/sbin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/bin:/bin:/c/Program Files/Microsoft Office/Office:/c/WINNT/system32:/c/WINNT:/bin
204 13331 [main] null 335 environ_init: 0xA0106A8: PATH=/opt/sbin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/bin:/bin:/c/Program Files/Microsoft Office/Office:/c/WINNT/system32:/c/WINNT:/bin
211 13542 [main] null 335 environ_init: 0xA0105A8: PATHEXT=.COM;.EXE;.BAT;.CMD
210 13752 [main] null 335 environ_init: 0xA0105C8: PROCESSOR_ARCHITECTURE=x86
200 13952 [main] null 335 environ_init: 0xA0105E8: PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 6, GenuineIntel
201 14153 [main] null 335 environ_init: 0xA010630: PROCESSOR_LEVEL=6
199 14352 [main] null 335 environ_init: 0xA010648: PROCESSOR_REVISION=0806
198 14550 [main] null 335 environ_init: 0xA010668: PROMPT=$P$G
198 14748 [main] null 335 environ_init: 0xA010A20: PS1=\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$
200 14948 [main] null 335 environ_init: 0xA010678: PWD=/prj/msys/adhoc/junk
198 15146 [main] null 335 environ_init: 0xA010A68: SHELL=/bin/sh
196 15342 [main] null 335 environ_init: 0xA010698: SHLVL=1
195 15537 [main] null 335 environ_init: 0xA010A80: SYSTEMDRIVE=C:
195 15732 [main] null 335 environ_init: 0xA010A98: SYSTEMROOT=C:\WINNT
389 16121 [main] null 335 getwinenv: can't set native for TEMP= since no environ yet
219 16340 [main] null 335 mount_info::conv_to_posix_path: conv_to_posix_path (c:\TEMP, no-keep-rel, no-add-slash)
111 16451 [main] null 335 normalize_win32_path: c:\TEMP = normalize_win32_path (c:\TEMP)
114 16565 [main] null 335 mount_info::conv_to_posix_path: /c/TEMP = conv_to_posix_path (c:\TEMP)
295 16860 [main] null 335 win_env::add_cache: posix /c/TEMP
102 16962 [main] null 335 win_env::add_cache: native TEMP=c:\TEMP
102 17064 [main] null 335 posify: env var converted to TEMP=/c/TEMP
194 17258 [main] null 335 environ_init: 0xA010AC8: TEMP=/c/TEMP
198 17456 [main] null 335 environ_init: 0xA010AB0: TERM=cygwin
195 17651 [main] null 335 environ_init: 0xA010C00: USER=BoydE
196 17847 [main] null 335 environ_init: 0xA010C10: USERDOMAIN=LCI
196 18043 [main] null 335 environ_init: 0xA010C28: USERNAME=BoydE
196 18239 [main] null 335 environ_init: 0xA010C40: USERPROFILE=C:\WINNT\Profiles\BoydE
198 18437 [main] null 335 environ_init: 0xA010C68: WINDIR=C:\WINNT
197 18634 [main] null 335 environ_init: 0xA010C80: WINDOWID=167837856
196 18830 [main] null 335 environ_init: 0xA010C98: _=/usr/bin/strace
241 19071 [main] null 335 pinfo_init: pid 335, pgid 335
178 19249 [main] null 335 dtable::extend: size 32, fds 0x1A020090
1001 20250 [main] null 335 internal_getlogin: GetUserName() = BoydE
215 20465 [main] null 335 internal_getlogin: User: BoydE, Domain: LCI, Logon Server: DUBNTDC001
16697 37162 [main] null 335 internal_getlogin: Domain: LCI, Logon Server: DUBNTDC001, Windows Username: BoydE
234 37396 [main] null 335 internal_getlogin: Cygwins Username: BoydE
354 37750 [main] null 335 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio (0)
111 37861 [main] null 335 _cygwin_istext_for_stdio: _cifs: fd not open
106 37967 [main] null 335 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio (1)
106 38073 [main] null 335 _cygwin_istext_for_stdio: _cifs: fd not open
104 38177 [main] null 335 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio (2)
103 38280 [main] null 335 _cygwin_istext_for_stdio: _cifs: fd not open
115 38395 [main] null 335 _open: open (/etc/passwd, 0x20000)
129 38524 [main] null 335 dtable::build_fhandler: some disk file - cb 60, fd 3, fh 0x1A0201D8
121 38645 [main] null 335 fhandler_disk_file::open: (/etc/passwd, 0x20000)
132 38777 [main] null 335 normalize_posix_path: src /etc/passwd
108 38885 [main] null 335 normalize_posix_path: /etc/passwd = normalize_posix_path (/etc/passwd)
110 38995 [main] null 335 mount_info::conv_to_win32_path: conv_to_win32_path (/etc/passwd)
120 39115 [main] null 335 mount_info::conv_to_win32_path: src_path /etc/passwd, dst c:\cygwin-new\etc\passwd, flags 0xA, rc 0
865 39980 [main] null 335 symlink_info::check: GetFileAttributesA (c:\cygwin-new\etc\passwd) failed
180 40160 [main] null 335 geterrno_from_win_error: windows error 2 == errno 2
331 40491 [main] null 335 symlink_info::check: GetFileAttributesA (c:\cygwin-new\etc\passwd.lnk) failed
156 40647 [main] null 335 geterrno_from_win_error: windows error 2 == errno 2
108 40755 [main] null 335 symlink_info::check: 0 = symlink.check (c:\cygwin-new\etc\passwd, 0x240E640) (0xA)
115 40870 [main] null 335 mount_info::conv_to_win32_path: conv_to_win32_path (/etc)
120 40990 [main] null 335 mount_info::conv_to_win32_path: src_path /etc, dst c:\cygwin-new\etc, flags 0xA, rc 0
264 41254 [main] null 335 symlink_info::check: not a symlink
118 41372 [main] null 335 symlink_info::check: 0 = symlink.check (c:\cygwin-new\etc, 0x240E640) (0xA)
116 41488 [main] null 335 path_conv::check: root_dir(c:\), this->path(c:\cygwin-new\etc\passwd), set_has_acls(8)
123 41611 [main] null 335 fhandler_base::open: (c:\cygwin-new\etc\passwd, 0x20000)
502 42113 [main] null 335 fhandler_base::open: 0xFFFFFFFF = CreateFileA (c:\cygwin-new\etc\passwd, 0x80000000, 0x7, 0x610B6C2C, 0x3, 0x80, 0)
173 42286 [main] null 335 seterrno_from_win_error: ../../../../src/winsup/cygwin/fhandler.cc:399 errno 2
112 42398 [main] null 335 geterrno_from_win_error: windows error 2 == errno 2
107 42505 [main] null 335 fhandler_base::open: 0 = fhandler_base::open (c:\cygwin-new\etc\passwd, 0x20000)
111 42616 [main] null 335 fhandler_disk_file::open: 0 = fhandler_disk_file::open (c:\cygwin-new\etc\passwd, 0x20000)
116 42732 [main] null 335 _open: -1 = open (/etc/passwd, 0x20000)
111 42843 [main] null 335 read_etc_passwd: Emulating /etc/passwd
551 43394 [main] null 335 sigproc_init: process/signal handling enabled(1)
229 43623 [main] null 335 build_argv: argv[0] = './null'
104 43727 [main] null 335 build_argv: argc 1
191 43918 [main] null 335 dtable::build_fhandler: {stdin} - cb 60, fd 0, fh 0x1A0201D8
118 44036 [main] null 335 fhandler_base::init: created new fhandler_base for handle 0x1C4
109 44145 [main] null 335 dtable::init_std_file_from_handle: fd 0, handle 0x1C4
174 44319 [main] null 335 dtable::build_fhandler: {stdout} - cb 60, fd 1, fh 0x1A020A50
112 44431 [main] null 335 fhandler_base::init: created new fhandler_base for handle 0x1E4
107 44538 [main] null 335 dtable::init_std_file_from_handle: fd 1, handle 0x1E4
159 44697 [main] null 335 dtable::build_fhandler: {stderr} - cb 60, fd 2, fh 0x1A0212C8
110 44807 [main] null 335 fhandler_base::init: created new fhandler_base for handle 0x64
107 44914 [main] null 335 dtable::init_std_file_from_handle: fd 2, handle 0x64
163 45077 [main] null 335 open_shared: name (null), shared 0x1C940000 (wanted 0x0), h 0x16C
127 45204 [main] null 335 tty_min::set_ctty: attached tty1073741824 sid 335, pid 335, tty->pgid 0, tty->sid 335
115 45319 [main] null 335 tty_min::set_ctty: resetting tty1073741824 sid. Was 335, now 335. pgid was 0, now 335.
113 45432 [main] null 335 dll_list::init: here
103 45535 [main] null 335 dll_crt0_1: user_data->main 0x401050
377 45912 [sig] null 335 wait_sig: sigcatch_nonmain 0x184, sigcatch_main 0x1A4
238 46150 [sig] null 335 wait_sig: Ready. dwProcessid 335
133 46283 [main] null 335 sig_send: pid 335, signal -2, its_me 1
115 46398 [main] null 335 sig_send: Waiting for thiscomplete 0x190
113 46511 [sig] null 335 wait_sig: awake
103 46614 [sig] null 335 wait_sig: processing signal -2
112 46726 [sig] null 335 wait_sig: set main thread completion event
102 46828 [sig] null 335 wait_sig: looping
107 46935 [main] null 335 sig_send: returning 0 from sending signal -2
123 47058 [main] null 335 stat_worker: stat (/dev/null, 0x240FB94)
110 47168 [main] null 335 normalize_posix_path: src /dev/null
107 47275 [main] null 335 normalize_posix_path: /dev/null = normalize_posix_path (/dev/null)
109 47384 [main] null 335 mount_info::conv_to_win32_path: conv_to_win32_path (/dev/null)
112 47496 [main] null 335 mount_info::conv_to_win32_path: src_path /dev/null, dst nul, flags 0x2, rc 0
113 47609 [main] null 335 path_conv::update_fs_info: Cannot get root component of path nul
300 47909 [main] null 335 path_conv::update_fs_info: Cannot get root component of path nul
134 48043 [main] null 335 time: 994963593 = time (0)
131 48174 [main] null 335 do_exit: do_exit (0)
114 48288 [main] null 335 void: 0x0 = signal (20, 0x1)
108 48396 [main] null 335 void: 0x0 = signal (1, 0x1)
103 48499 [main] null 335 void: 0x0 = signal (2, 0x1)
102 48601 [main] null 335 void: 0x0 = signal (3, 0x1)
105 48706 [main] null 335 fhandler_base::close: handle 0x1C4
115 48821 [main] null 335 fhandler_base::close: handle 0x1E4
111 48932 [main] null 335 fhandler_base::close: handle 0x64
123 49055 [main] null 335 proc_terminate: nchildren 0, nzombies 0
105 49160 [main] null 335 proc_terminate: leaving
102 49262 [main] null 335 sigproc_terminate: entering
104 49366 [main] null 335 sigproc_terminate: done
225 49591 [main] null 335 __to_clock_t: dwHighDateTime 0, dwLowDateTime 200288
109 49700 [main] null 335 __to_clock_t: total 00000000 00000014
104 49804 [main] null 335 __to_clock_t: dwHighDateTime 0, dwLowDateTime 300432
105 49909 [main] null 335 __to_clock_t: total 00000000 0000001E
106 50015 [main] null 335 _pinfo::exit: Calling ExitProcess 0
--------------97303D71D71CD7062A707EB1
Content-Type: text/plain; charset=us-ascii;
name="uname.out"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="uname.out"
CYGWIN_NT-4.0 DU216771 1.3.3(0.40/3/2) 2001-07-12 11:50 i686 unknown
--------------97303D71D71CD7062A707EB1--
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
- Raw text -