Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Ronald Landheer" To: Subject: Possible bug: SH failure when calling command.com Date: Wed, 19 Sep 2001 11:34:52 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_000A_01C140FF.192B70C0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal ------=_NextPart_000_000A_01C140FF.192B70C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, Prompted by a recent thread on this list, I decided to make a dir=20 wrapper which calls the command line interpreter of Windoze and executes = a proper dir command. The script looks like this: -- BEGIN ~/wrap/dir -- #! /usr/bin/sh # `dir' calls Windoze command-line interpreter and has it call it's dir # builtin `cygpath -u "$COMSPEC"` /c dir `cygpath -w $*` --- END ~/wrap/dir --- Under Bash, this works like a charm, but under sh, this results in an=20 error window with the following info: -- BEGIN ERROR MSG -- SH caused an invalid page fault in module KERNEL32.DLL at 017f:bff7d762. Registers: EAX=3Dc16d1880 CS=3D017f EIP=3Dbff7d762 EFLGS=3D00010202 EBX=3D816b1508 SS=3D0187 ESP=3D0074e604 EBP=3D0074e64c ECX=3Dbff7d75b DS=3D0187 ESI=3D00000001 FS=3D52b7 EDX=3Dbffc9490 ES=3D0187 EDI=3D00000000 GS=3D0000 Bytes at CS:EIP: 8b 0f 3b ce 76 10 8d 47 10 83 38 00 74 28 83 c0=20 Stack dump: 0074e64c 81692d14 00000001 00000000 bff8dd46 816b1508 00000004 0074f33c = 00000000 bff83e63 0074e65c 6105ffff 00009c40 cdc1be20 81692d54 bff7dcbf=20 --- END ERROR MSG --- To see where it happens, exactly, I've tried all "subcommands": I did=20 the cygpaths - no problem. I did /cygdrive/c/WINDOWS.000/COMMAND.COM=20 - croak, some time after the command.com started. Details: -- BEGIN WINDOZE PUKE -- SH caused an invalid page fault in module KERNEL32.DLL at 017f:bff7d762. Registers: EAX=3Dc16cb800 CS=3D017f EIP=3Dbff7d762 EFLGS=3D00010202 EBX=3D816b1508 SS=3D0187 ESP=3D0074e604 EBP=3D0074e64c ECX=3Dbff7d75b DS=3D0187 ESI=3D00000001 FS=3D2aaf EDX=3Dbffc9490 ES=3D0187 EDI=3D00000000 GS=3D0000 Bytes at CS:EIP: 8b 0f 3b ce 76 10 8d 47 10 83 38 00 74 28 83 c0=20 Stack dump: 0074e64c 816a1034 00000001 00000000 bff8dd46 816b1508 00000001 0074f33c = 00000000 bff83e63 0074e65c 6105ffff 00009c40 cdc0e660 816a1074 bff7dcbf=20 --- END WINDOZE PUKE --- same place (I think). Pressing "close" closes Sh, but not Command, and gets me back into Bash=20 when exiting Command. Additional info: running Win98 (reluctantly) with cygwin (happily),=20 latest version of everything through setup.exe (updated every Sunday).=20 Output of cygchech -rsv is aattached. My questions:=20 1. is this a known issue? 2. (if known) is it Gates' work or in sh?=20 Greetz! Ronald ------=_NextPart_000_000A_01C140FF.192B70C0 Content-Type: application/octet-stream; name="cygcheck.out" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cygcheck.out" =0A= Cygnus Win95/NT Configuration Diagnostics=0A= Current System Time: Wed Sep 19 02:31:58 2001=0A= =0A= Win9X Ver 4.10 build 67766446 A =0A= =0A= Path: /usr/local/bin=0A= /usr/bin=0A= /bin=0A= /usr/X11R6/bin=0A= /cygdrive/c/WINDOWS.000=0A= /cygdrive/c/WINDOWS.000/COMMAND=0A= /cygdrive/u/SMALLER/=0A= /cygdrive/c/WINDOWS.000=0A= /cygdrive/c/WINDOWS.000/COMMAND=0A= =0A= SysDir: C:\WINDOWS.000\SYSTEM=0A= WinDir: C:\WINDOWS.000=0A= =0A= PWD =3D `/home/RonaldLandheer'=0A= USER =3D `RonaldLandheer'=0A= MAKE_MODE =3D `unix'=0A= HOME =3D `/home/RonaldLandheer'=0A= =0A= PROMPT =3D `$p$g'=0A= COMSPEC =3D `C:\WINDOWS.000\COMMAND.COM'=0A= !P: =3D `P:\cygwin\bin'=0A= !C: =3D `C:\WINDOWS.000'=0A= CMDLINE =3D `bash --login -i'=0A= HOSTNAME =3D `ALLY'=0A= RLSDIR =3D `C:\RLSystems'=0A= WINDIR =3D `C:\WINDOWS.000'=0A= WINBOOTDIR =3D `C:\WINDOWS.000'=0A= PS1 =3D `\[\033]0;\w\007=0A= \033[32m\]\u@\h \[\033[33m\w\033[0m\]=0A= $ '=0A= BLASTER =3D `A220 I7 D1 H7 P330 T6'=0A= MACHTYPE =3D `i686-pc-cygwin'=0A= OLDPWD =3D `/usr/bin'=0A= CVS_RSH =3D `ssh'=0A= TEMP =3D `/cygdrive/c/WINDOWS.000/TEMP'=0A= TMP =3D `/cygdrive/c/WINDOWS.000/TEMP'=0A= SHLVL =3D `1'=0A= SHELL =3D `/bin/bash'=0A= HOSTTYPE =3D `i686'=0A= CVSROOT =3D `/usr/cvsroot'=0A= OSTYPE =3D `cygwin'=0A= TERM =3D `cygwin'=0A= _ =3D `/usr/bin/cygcheck'=0A= TZ =3D `WEST-1WEDT-2,M3.5.0/2,M10.5.0/3'=0A= =0A= HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Menu= Order\Start Menu\&Programs\Cygnus Solutions=0A= (default) =3D (unsupported type)=0A= HKEY_CURRENT_USER\Software\Cygnus Solutions=0A= HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin=0A= HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2=0A= (default) =3D `/cygdrive'=0A= cygdrive flags =3D 0x00000022=0A= HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/www=0A= (default) =3D `c:\www'=0A= flags =3D 0x00000000=0A= HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/cdrom=0A= (default) =3D `e:'=0A= flags =3D 0x00000002=0A= HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options=0A= HKEY_LOCAL_MACHINE\Software\Cygnus Solutions=0A= HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin=0A= HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2=0A= HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/=0A= (default) =3D `P:/cygwin'=0A= flags =3D 0x0000000a=0A= HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin=0A= (default) =3D `P:/cygwin/bin'=0A= flags =3D 0x0000000a=0A= HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib=0A= (default) =3D `P:/cygwin/lib'=0A= flags =3D 0x0000000a=0A= HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\Program Options=0A= =0A= a: fd N/A N/A =0A= b: fd N/A N/A =0A= c: hd FAT32 12397Mb 41% CP UN =0A= d: hd FAT32 19483Mb 75% CP UN =0A= e: cd N/A N/A =0A= f: cd N/A N/A =0A= p: hd FAT32 19483Mb 75% CP UN =0A= u: hd FAT32 19483Mb 75% CP UN =0A= =0A= P:\cygwin\bin /usr/bin system binmode=0A= P:\cygwin\lib /usr/lib system binmode=0A= P:\cygwin / system binmode=0A= c:\www /www user textmode=0A= e: /cdrom user binmode=0A= c: /cygdrive/c user binmode,noumount=0A= d: /cygdrive/d user binmode,noumount=0A= p: /cygdrive/p user binmode,noumount=0A= u: /cygdrive/u user binmode,noumount=0A= =0A= Found: P:\cygwin\bin\bash.exe=0A= Found: P:\cygwin\bin\cat.exe=0A= Found: P:\cygwin\bin\cpp.exe=0A= Found: P:\cygwin\bin\find.exe=0A= Found: c:\WINDOWS.000\COMMAND\find.exe=0A= Warning: P:\cygwin\bin\find.exe hides c:\WINDOWS.000\COMMAND\find.exe=0A= Found: P:\cygwin\bin\gcc.exe=0A= Found: P:\cygwin\bin\gdb.exe=0A= Found: P:\cygwin\bin\ld.exe=0A= Found: P:\cygwin\bin\ls.exe=0A= Found: P:\cygwin\bin\make.exe=0A= Found: P:\cygwin\bin\sh.exe=0A= =0A= 56k 2000/12/03 P:\cygwin\bin\cygbz21.0.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygbz21.0.dll" v0.0 ts=3D2000/11/21 0:53=0A= 390k 2000/12/05 P:\cygwin\bin\cygtcl80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygtcl80.dll" v0.0 ts=3D2000/11/26 2:39=0A= 5k 2000/12/05 P:\cygwin\bin\cygtclpip80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= 10k 2000/12/05 P:\cygwin\bin\cygtclreg80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygtclreg80.dll" v0.0 ts=3D2000/11/26 2:39=0A= 81k 2000/12/05 P:\cygwin\bin\cygitcl30.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygitcl30.dll" v0.0 ts=3D2000/11/26 2:43=0A= 35k 2000/12/05 P:\cygwin\bin\cygitk30.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygitk30.dll" v0.0 ts=3D2000/11/26 2:43=0A= 623k 2000/12/05 P:\cygwin\bin\cygtk80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygtk80.dll" v0.0 ts=3D2000/11/26 2:43=0A= 18k 2000/10/23 P:\cygwin\bin\cyggdbm.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cyggdbm.dll" v0.0 ts=3D2000/10/23 4:26=0A= 21k 2001/06/20 P:\cygwin\bin\cygintl.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygintl.dll" v0.0 ts=3D2001/6/20 19:09=0A= 45k 2001/07/04 P:\cygwin\bin\cygjbig1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygjbig1.dll" v0.0 ts=3D2001/7/4 5:25=0A= 119k 2001/06/06 P:\cygwin\bin\cygjpeg6b.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygjpeg6b.dll" v0.0 ts=3D2001/6/6 6:27=0A= 163k 2001/05/06 P:\cygwin\bin\cygpng2.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygpng2.dll" v0.0 ts=3D2001/5/6 6:05=0A= 45k 2001/04/25 P:\cygwin\bin\cygform5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygform5.dll" v0.0 ts=3D2001/4/25 7:28=0A= 26k 2001/04/25 P:\cygwin\bin\cygmenu5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygmenu5.dll" v0.0 ts=3D2001/4/25 7:27=0A= 156k 2001/04/25 P:\cygwin\bin\cygncurses++5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygncurses++5.dll" v0.0 ts=3D2001/4/25 7:29=0A= 226k 2001/04/25 P:\cygwin\bin\cygncurses5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygncurses5.dll" v0.0 ts=3D2001/4/25 7:17=0A= 15k 2001/04/25 P:\cygwin\bin\cygpanel5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygpanel5.dll" v0.0 ts=3D2001/4/25 7:27=0A= 17k 2001/06/28 P:\cygwin\bin\cyghistory4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cyghistory4.dll" v0.0 ts=3D2001/1/7 5:34=0A= 21k 2001/06/28 P:\cygwin\bin\cyghistory5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cyghistory5.dll" v0.0 ts=3D2001/6/28 4:27=0A= 108k 2001/06/28 P:\cygwin\bin\cygreadline4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygreadline4.dll" v0.0 ts=3D2001/1/7 5:34=0A= 135k 2001/06/28 P:\cygwin\bin\cygreadline5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygreadline5.dll" v0.0 ts=3D2001/6/28 4:27=0A= 245k 2001/06/12 P:\cygwin\bin\cygtiff3.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygtiff3.dll" v0.0 ts=3D2001/6/12 19:25=0A= 41k 2001/07/04 P:\cygwin\bin\cygXpm-noX4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygXpm-noX4.dll" v0.0 ts=3D2001/7/4 3:21=0A= 45k 2001/07/04 P:\cygwin\bin\cygXpm-X4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygXpm-X4.dll" v0.0 ts=3D2000/11/20 3:45=0A= 49k 2001/02/03 P:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0=0A= "cygz.dll" v0.0 ts=3D2001/2/3 21:35=0A= 701k 2001/09/13 P:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0=0A= "cygwin1.dll" v0.0 ts=3D2001/9/13 5:54=0A= Cygwin DLL version info:=0A= dll major: 1003=0A= dll minor: 3=0A= dll epoch: 19=0A= dll bad signal mask: 19005=0A= dll old termios: 5=0A= dll malloc env: 28=0A= api major: 0=0A= api minor: 46=0A= shared data: 3=0A= dll identifier: cygwin1=0A= mount registry: 2=0A= cygnus registry name: Cygnus Solutions=0A= cygwin registry name: Cygwin=0A= program options name: Program Options=0A= cygwin mount registry name: mounts v2=0A= cygdrive flags: cygdrive flags=0A= cygdrive prefix: cygdrive prefix=0A= cygdrive default prefix: =0A= build date: Wed Sep 12 23:54:31 EDT 2001=0A= shared id: cygwin1S3=0A= =0A= Use -h to see help about each section=0A= ------=_NextPart_000_000A_01C140FF.192B70C0 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_000A_01C140FF.192B70C0--