This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
sick version of GDB
- To: cygwin mailing list <cygwin at sourceware dot cygnus dot com>
- Subject: sick version of GDB
- From: Adam Schlegel <aceschle at thinkage dot ca>
- Date: Mon, 19 Jun 2000 11:48:52 -0400 (EDT)
The new version of GDB broke for me when I updated to the latest net
release. The machine in question has been running Cygwin b20.1 for quite
a while now, but it was time for an update. Moving from b20 to 1.1.2 was
fairly smooth, once the b20-specific garbage had been cleaned up.
Unfortunately, I cannot get GDB 5.0 to work.
I tried to debug cat as an example of what's wrong.
$ gdb -nw cat # or /bin/cat or C:/bin/cat.exe ...etc
< opening messages>
(gdb) run
Starting program: /bin/cat.exe
gdb: unknown target exception 0x000006d1 at 0x77e89b01
Program received signal ?, Unknown signal.
0x77e89b01 in ?? ()
Obviously this is not normal behavior. If I try to continue, I get the
same exception, so I haven't made any progress. Unfortunately, this makes
it impossible to debug anything. I get a similar message when run from the
tcl/tk gui and from within Emacs.
Out of frustration, I restored my old version of GDB and it seemed to
work. This is temporary work-around, but it would be really nice to use
the latest version. Still, this problem makes me nervous. Unsolved
mysteries such as this can often hint at much larger problems.
What could cause something like this? What could cause the new version to
break, while not hurting the older version?
Attached are the output of cygcheck -s -v -r, and a GDB session which
recreates the problem, with some other info that may be useful.
Has anyone out there encountered this before?
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Mon Jun 19 10:58:50 2000
WinNT Ver 5.0 build 2195
Path: /usr/local/bin
/bin
/unsaved/Perl/bin
/cygdrive/d/WINNT/system32
/cygdrive/d/WINNT
/cygdrive/d/WINNT/System32/Wbem
/cygdrive/d/Program Files/Support Tools/
/usr/local/bin
/bin
/cygdrive/d/Program Files/Resource Pro Kit/
SysDir: D:\WINNT\System32
WinDir: D:\WINNT
HOME = `/pjf'
PWD = `/pjf'
ALLUSERSPROFILE = `D:\Documents and Settings\All Users'
APPDATA = `D:\Documents and Settings\pjf.THOUGHTS\Application Data'
BISONLIB = `/usr/local/lib/'
CC = `gcc'
COMMONPROGRAMFILES = `D:\Program Files\Common Files'
COMPUTERNAME = `WHOOPS'
COMSPEC = `D:\WINNT\system32\cmd.exe'
CVSROOT = `:ext:pjf@mailhost:/vol/cvs'
CVS_RSH = `ssh'
DISPLAY = `localhost:0.0'
EDITOR = `emacs.bat'
GS_LIB = `//d/Multimedia Files/Fonts/PostScript'
HOSTNAME = `WHOOPS'
HOSTTYPE = `i586'
LESS = `-icnMd'
LOGNAME = `pjf'
LOGONSERVER = `\\VALET'
MACHTYPE = `i586-pc-cygwin'
MAILCHECK = `0'
NUMBER_OF_PROCESSORS = `1'
OS2LIBPATH = `D:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
OSTYPE = `cygwin'
PAGER = `less'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.bash'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 5 Stepping 0, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0500'
PROGRAMFILES = `D:\Program Files'
SHELL = `/bin/bash.exe'
SHLVL = `1'
SYSTEMDRIVE = `D:'
SYSTEMROOT = `D:\WINNT'
TEMP = `D:\WINNT\TEMP'
TERM = `cygwin'
TMP = `D:\WINNT\TEMP'
USERDOMAIN = `THOUGHTS'
USERNAME = `pjf'
USERPROFILE = `D:\Documents and Settings\pjf.THOUGHTS'
VISUAL = `emacs.bat'
WINDIR = `D:\WINNT'
_ = `/bin/cygcheck'
TZ = `EST5EDT4,M4.1.0/2,M10.5.0/2'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
(default) = `/cygdrive'
cygdrive flags = 0x00000020
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/
(default) = `c:\'
flags = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
(default) = `D:'
unix = `/'
fbinary = 0x00000000
fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs\Cygnus Solutions
(default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Installed Components
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Installed Components\c:/
(default) = `20000517'
bash = `0002.0004.0001'
binutils = `19990818.0001'
bison = `0000'
byacc = `0000'
bzip = `0000'
clear = `0001.0000'
dejagnu = `0000'
diff = `0000'
expect = `0000'
fileutils = `0000'
findutils = `0000'
flex = `0000'
gawk = `0000'
gcc = `0002.0095.0002.0001'
gdb = `20000610'
gperf = `0000'
grep = `0000'
groff = `0001.011a.0001'
gzip = `0000'
inetutils = `0001.0003.0002.0002'
less = `0000'
libpng = `0001.0000.0006.0001'
login = `0001.0002'
m = `0000'
make = `0003.0079'
man = `0001.005g.0002'
patch = `0000'
sed = `0003.0002.0001'
shellutils = `0000'
tar = `0000'
tcltk = `20000610'
termcap = `0002'
texinfo = `0000'
textutils = `0000'
time = `0000'
zlib = `0001.0001.0003.0001'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\05
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\06
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\07
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\08
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\09
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0E
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0F
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\10
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\11
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\12
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\13
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\14
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\15
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\16
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\17
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\18
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\19
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1D
HKEY_LOCAL_MACHINE\SOFTWARE\WRQ\IAM\HTTPConfig\Sites\cygnus.com
(default) = (unsupported type)
ReferAction = (unsupported type)
AgentAction = (unsupported type)
FromAction = (unsupported type)
a: fd N/A N/A
c: hd NTFS 4016Mb 56% CP CS UN PA FC SystemDrive
d: hd NTFS 4039Mb 64% CP CS UN PA FC OtherDrive
i: cd CDFS 610Mb 100% CS O9PRMCD02
j: cd N/A N/A
c: / user textmode
Found: c:\bin\bash.exe
Found: \bin\bash.exe
Warning: c:\bin\bash.exe hides \bin\bash.exe
Found: c:\bin\cat.exe
Found: \bin\cat.exe
Warning: c:\bin\cat.exe hides \bin\cat.exe
Found: c:\bin\cpp.exe
Found: \bin\cpp.exe
Warning: c:\bin\cpp.exe hides \bin\cpp.exe
Found: c:\bin\find.exe
Found: \bin\find.exe
Warning: c:\bin\find.exe hides \bin\find.exe
Found: c:\bin\gcc.exe
Found: \bin\gcc.exe
Warning: c:\bin\gcc.exe hides \bin\gcc.exe
Found: c:\usr\local\bin\gdb.exe
Found: c:\bin\gdb.exe
Warning: c:\usr\local\bin\gdb.exe hides c:\bin\gdb.exe
Found: \bin\gdb.exe
Warning: c:\usr\local\bin\gdb.exe hides \bin\gdb.exe
Found: c:\bin\ld.exe
Found: \bin\ld.exe
Warning: c:\bin\ld.exe hides \bin\ld.exe
Found: c:\bin\ls.exe
Found: \bin\ls.exe
Warning: c:\bin\ls.exe hides \bin\ls.exe
Found: c:\bin\make.exe
Found: \bin\make.exe
Warning: c:\bin\make.exe hides \bin\make.exe
Found: c:\bin\sh.exe
Found: \bin\sh.exe
Warning: c:\bin\sh.exe hides \bin\sh.exe
83k 2000/06/15 c:\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
"cygitcl30.dll" v0.0 ts=2000/6/10 23:34
35k 2000/06/15 c:\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
"cygitk30.dll" v0.0 ts=2000/6/10 23:34
402k 2000/06/15 c:\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
"cygtcl80.dll" v0.0 ts=2000/6/10 23:30
5k 2000/06/11 c:\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
10k 2000/06/11 c:\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
"cygtclreg80.dll" v0.0 ts=2000/6/10 23:30
639k 2000/06/15 c:\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
"cygtk80.dll" v0.0 ts=2000/6/10 23:34
575k 2000/06/07 c:\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2000/6/6 22:20
83k 2000/06/15 \bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
"cygitcl30.dll" v0.0 ts=2000/6/10 23:34
35k 2000/06/15 \bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
"cygitk30.dll" v0.0 ts=2000/6/10 23:34
402k 2000/06/15 \bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
"cygtcl80.dll" v0.0 ts=2000/6/10 23:30
5k 2000/06/11 \bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
10k 2000/06/11 \bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
"cygtclreg80.dll" v0.0 ts=2000/6/10 23:30
639k 2000/06/15 \bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
"cygtk80.dll" v0.0 ts=2000/6/10 23:34
575k 2000/06/07 \bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2000/6/6 22:20
Use -h to see help about each section
bash.exe-2.04$ /bin/gdb -nw /bin/cat
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...(no debugging symbols found)...
(gdb) run
Starting program: /bin/cat.exe
gdb: unknown target exception 0x000006d1 at 0x77e89b01
Program received signal ?, Unknown signal.
0x77e89b01 in ?? ()
(gdb) bt
#0 0x77e89b01 in ?? ()
#1 0x77d5935a in ?? ()
#2 0x77dbf327 in ?? ()
#3 0x77dbf1b1 in ?? ()
#4 0x77dbf047 in ?? ()
#5 0x77dcefa0 in ?? ()
#6 0x61031a92 in ?? ()
#7 0x6104b067 in ?? ()
#8 0x6104b1bf in ?? ()
#9 0x61002238 in ?? ()
#10 0x610027d5 in ?? ()
#11 0x4052e6 in ?? ()
#12 0x401038 in ?? ()
#13 0x77e87903 in ?? ()
(gdb) info regs
Undefined info command: "regs". Try "help info".
(gdb) info shared
DLL Name Load Address
c:/bin/cygwin1.dll 61001000
d:/winnt/system32/kernel32.dll 77e81000
d:/winnt/system32/advapi32.dll 77db1000
d:/winnt/system32/rpcrt4.dll 77d41000
d:/winnt/system32/user32.dll 77e11000
d:/winnt/system32/gdi32.dll 77f41000
d:/winnt/system32/netapi32.dll 75171000
d:/winnt/system32/msvcrt.dll 78001000
d:/winnt/system32/secur32.dll 77be1000
d:/winnt/system32/netrap.dll 751c1000
d:/winnt/system32/samlib.dll 75151000
d:/winnt/system32/ws2_32.dll 75031000
d:/winnt/system32/ws2help.dll 75021000
d:/winnt/system32/wldap32.dll 77951000
d:/winnt/system32/dnsapi.dll 77981000
d:/winnt/system32/wsock32.dll 75051000
(gdb) info all-registers
eax 0x240f780 37812096
ecx 0x7ffde000 2147344384
edx 0x2417900 37845248
ebx 0x50 80
esp 0x240f778 0x240f778
ebp 0x240f7d0 0x240f7d0
esi 0x0 0
edi 0x240fa24 37812772
eip 0x77e89b01 0x77e89b01
eflags 0x246 582
cs 0x1b 27
ss 0x23 35
ds 0x23 35
es 0x23 35
fs 0x38 56
gs 0x0 0
st0 -Inf (raw 0xe880ffffffff77f94418)
st1 0 (raw 0x025c137877fc9816025b)
st2 0 (raw 0x00000000021a0000020a)
st3 0 (raw 0x00090028025be7180000)
st4 0 (raw 0x00000000000000000000)
st5 0 (raw 0x00000000000000000000)
st6 0 (raw 0x00000000000000020024)
st7 Inf (raw 0x7ffdec00000000000000)
fctrl 0xffff027f -64897
fstat 0xffff0000 -65536
ftag 0xffffffff -1
fiseg 0x0 0
fioff 0x0 0
foseg 0xffff0000 -65536
fooff 0x0 0
fop 0x0 0
(gdb) quit
bash.exe-2.04$ /bin/cat --version
cat (GNU textutils) 1.22
bash.exe-2.04$ exit
exit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com