Mail Archives: djgpp/2001/09/23/10:02:50
hello,
i have a prblem where invoking which causes a crash in ms-dos.
the crash does not happen in a dos window in win98, or if i boot into plain
dos (w/o himem and emm386). detailed info is below. i must admit i did not
investigate this very thoroughly. i just downloaded the source, and i'll
see if a rebuild fixes this. in the mean time, i would appreciate it if
anyone has any clues on what might be happening.
Machine:
Acer Extensa 501 DX w/ P266MMX 96 Mb RAM w/ Windows 98 Original
Here is some output if I run which in my normal MS-DOS configuration. This
behavior is independent of the arguments to which. The problem disappears
when I run which in a DOS window or in plain DOS with no himem or emm386.
C:\VAR>go32-v2
go32/v2 version 2.0 built Dec 24 1999 17:46:57
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries as
well as v1 binaries (old makefiles). Put ahead of the old go32 in your
PATH
but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=y in the environment to get verbose output.
DPMI memory available: 33287 Kb
DPMI swap space available: 129913 Kb
C:\VAR>which xcopy
Exiting due to signal SIGSEGV
Page fault at eip=00003515, error=0004
eax=00000000 ebx=0009a1fc ecx=00000000 edx=00000000 esi=0009b17a
edi=00000014
ebp=00098f70 esp=00098f40 program=C:\DJGPP\BIN\WHICH.EXE
cs: sel=00a7 base=10000000 limit=0009ffff
ds: sel=00af base=10000000 limit=0009ffff
es: sel=00af base=10000000 limit=0009ffff
fs: sel=008f base=000041d0 limit=0000ffff
gs: sel=00bf base=00000000 limit=0010ffff
ss: sel=00af base=10000000 limit=0009ffff
App stack: [00099cb4..00019cb4] Exceptn stack: [00019c08..00017cc8]
Call frame traceback EIPs:
0x00003515 _find_command_in_path+1077, line 219 of which.c
0x000038e3 _path_search+79, line 339 of which.c
0x00004275 _main+981, line 634 of which.c
0x00006012 ___crt1_startup+178
C:\VAR>symify -o \var\which.sym \djgpp\bin\which.exe
=== AUTOEXEC.BAT (relevant section) ===
@ECHO OFF
REM CALL SETPROMPT.BAT
SET HOME=C:\HOME
SET BLASTER=A220 I5 D1 T4
SET CVSROOT=C:/HOME/_CVS
SET CVSRC=C:/HOME/.CVSRC
SET DIRCMD=/L/OGN
SET DJGPP=C:\DJGPP\DJGPP.ENV
SET HTML_TIDY=C:\BIN\TIDY.PROPERTIES
SET LANG=en
SET LANGUAGE=en
SET NWLANGUAGE=ENGLISH
SET TZ=EST5EDT
SET VIM=C:/VIM
SET TEMP=C:\TMP
SET TMP=%TEMP%
SET VAR=C:\VAR
SET INPUTRC=C:/HOME/_inputrc
CALL C:\BIN\DOS\ONCEADAY.BAT
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BIN\DOS;C:\DJGPP\BIN;%PATH%
=== CONFIG.SYS (relevant section) ===
DEVICE=C:\WINDOWS\HIMEM.SYS
DEVICE=C:\WINDOWS\EMM386.EXE NOEMS I=B000-B7FF
DOS=HIGH
DOS=UMB
FILESHIGH=100
BUFFERSHIGH=10
DEVICEHIGH=C:\BIN\DOS\DRIVERS\TEAC_CDI.SYS /D:CD01
INSTALLHIGH=C:\WINDOWS\COMMAND\MSCDEX.EXE /D:CD01 /M:8
INSTALLHIGH=C:\WINDOWS\COMMAND\DOSKEY.COM /INSERT /BUFSIZE:512\ /ECHO:off
/KEYSIZE:32 /LINE:255
INSTALLHIGH=C:\BIN\DOS\DRIVERS\SYNTOUCH.COM /Z /G /EM
INSTALLHIGH=C:\WINDOWS\SMARTDRV.EXE 16384 0
INSTALL=C:\BIN\YAMAHA\YAMAHASA\SETUPSA.EXE /S
SHELL=C:\COMMAND.COM C:\ /E:2048 /P
--
--------------------------------
A. Sinan Unur
http://www.unur.com/
- Raw text -