This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Possible bug: SH failure when calling command.com


Hello all,

Prompted by a recent thread on this list, I decided to make a dir 
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 
error window with the following info:

-- BEGIN ERROR MSG --
SH caused an invalid page fault in
module KERNEL32.DLL at 017f:bff7d762.
Registers:
EAX=c16d1880 CS=017f EIP=bff7d762 EFLGS=00010202
EBX=816b1508 SS=0187 ESP=0074e604 EBP=0074e64c
ECX=bff7d75b DS=0187 ESI=00000001 FS=52b7
EDX=bffc9490 ES=0187 EDI=00000000 GS=0000
Bytes at CS:EIP:
8b 0f 3b ce 76 10 8d 47 10 83 38 00 74 28 83 c0 
Stack dump:
0074e64c 81692d14 00000001 00000000 bff8dd46 816b1508 00000004 0074f33c 00000000 bff83e63 0074e65c 6105ffff 00009c40 cdc1be20 81692d54 bff7dcbf 
--- END ERROR MSG ---

To see where it happens, exactly, I've tried all "subcommands": I did 
the cygpaths - no problem. I did /cygdrive/c/WINDOWS.000/COMMAND.COM 
- 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=c16cb800 CS=017f EIP=bff7d762 EFLGS=00010202
EBX=816b1508 SS=0187 ESP=0074e604 EBP=0074e64c
ECX=bff7d75b DS=0187 ESI=00000001 FS=2aaf
EDX=bffc9490 ES=0187 EDI=00000000 GS=0000
Bytes at CS:EIP:
8b 0f 3b ce 76 10 8d 47 10 83 38 00 74 28 83 c0 
Stack dump:
0074e64c 816a1034 00000001 00000000 bff8dd46 816b1508 00000001 0074f33c 00000000 bff83e63 0074e65c 6105ffff 00009c40 cdc0e660 816a1074 bff7dcbf 
--- END WINDOZE PUKE ---
same place (I think).

Pressing "close" closes Sh, but not Command, and gets me back into Bash 
when exiting Command.

Additional info: running Win98 (reluctantly) with cygwin (happily), 
latest version of everything through setup.exe (updated every Sunday). 
Output of cygchech -rsv is aattached.

My questions: 
  1. is this a known issue?
  2. (if known) is it Gates' work or in sh? 

Greetz!

Ronald

cygcheck.out

--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]