delorie.com/archives/browse.cgi | search |
On Thu, Jun 22, 2000 at 02:50:37PM -0400, Andre Bleau wrote: >When the program run in the last version of gdb generates an exception gdb >itself crashes. Example: > >/* Bogus C example to show gdb crashing */ >#include <stdio.h> >int main() >{ >char* null = NULL; >printf("null[0]=%c\n", null[0]); >return 0; >} > >compiled with: gcc -g crash.c -o crash > >Running the program in gdb crashes gdb itself when the printf line is executed: > >* Source Display *:gdb.exe - Application Error >The instruction at "0x77f8aa57"referenced memory at "0x00000034". The >memory could not be "read". > >gdb --version shows: >GNU gdb 4.17.gnat.3.12p That would indicate that you're not running anything close to the latest version of gdb. I don't know why this doesn't show up in your cygcheck environment below unless you either ran the cygcheck command from a different path or you somehow have the gdb command aliased. Didn't the "gdb 4.17.gnat.3.12p" give you a clue here? cgf >This is with the latest cygwin release under Windows 2000. Output from >cygcheck -s gdb: > >Found: C:\cygwin\bin\gdb.exe >Found: c:\GNAT\BIN\gdb.exe >C:\cygwin\bin\gdb.exe > C:\cygwin\bin\cygitcl30.dll > C:\cygwin\bin\cygtcl80.dll > C:\cygwin\bin\cygwin1.dll > C:\WINNT\System32\KERNEL32.dll > C:\WINNT\System32\NTDLL.DLL > C:\WINNT\System32\USER32.dll > C:\WINNT\System32\GDI32.DLL > C:\cygwin\bin\cygitk30.dll > C:\cygwin\bin\cygtk80.dll > C:\WINNT\System32\COMDLG32.DLL > C:\WINNT\System32\SHLWAPI.DLL > C:\WINNT\System32\ADVAPI32.DLL > C:\WINNT\System32\RPCRT4.DLL > C:\WINNT\System32\COMCTL32.DLL > C:\WINNT\System32\SHELL32.DLL > C:\WINNT\System32\MSVCRT.DLL > C:\cygwin\bin\tix4180.dll > > >Cygnus Win95/NT Configuration Diagnostics >Current System Time: Thu Jun 22 14:27:41 2000 > >WinNT Ver 5.0 build 2195 > >Path: /usr/bin > /usr/local/bin > /usr/bin > /c/GNAT/BIN > /c/WINNT/SYSTEM32 > /c/WINNT > /c/WINNT/SYSTEM32/WBEM > >SysDir: C:\WINNT\System32 >WinDir: C:\WINNT > >MAKE_MODE = `unix' >PWD = `/d/Software/src' > >Use `-r' to scan registry > >a: fd N/A N/A >c: hd NTFS 4094Mb 76% CP CS UN PA FC System >d: hd NTFS 5679Mb 13% CP CS UN PA FC Data >e: cd N/A N/A >z: net NTFS 13515Mb 5% CP CS UN PA FC > >C:\cygwin\bin /usr/bin user binmode >C:\cygwin\lib /usr/lib user binmode >C:\cygwin / user binmode >d:\temp /tmp system binmode >c: /c user textmode >d: /d user textmode > >Found: C:\cygwin\bin\bash.exe >Found: C:\cygwin\bin\cat.exe >Found: C:\cygwin\bin\cpp.exe >Found: C:\cygwin\bin\find.exe >Found: C:\cygwin\bin\gcc.exe >Found: c:\GNAT\BIN\gcc.exe >Found: C:\cygwin\bin\gdb.exe >Found: c:\GNAT\BIN\gdb.exe >Found: C:\cygwin\bin\ld.exe >Found: c:\GNAT\BIN\ld.exe >Found: C:\cygwin\bin\ls.exe >Found: C:\cygwin\bin\make.exe >Found: c:\GNAT\BIN\make.exe >Found: C:\cygwin\bin\sh.exe > > 83k 2000/06/11 C:\cygwin\bin\cygitcl30.dll > 35k 2000/06/11 C:\cygwin\bin\cygitk30.dll > 402k 2000/06/11 C:\cygwin\bin\cygtcl80.dll > 474k 1999/09/14 C:\cygwin\bin\cygtcl80_20000415.dll > 5k 2000/06/11 C:\cygwin\bin\cygtclpip80.dll > 10k 2000/06/11 C:\cygwin\bin\cygtclreg80.dll > 639k 2000/06/11 C:\cygwin\bin\cygtk80.dll > 575k 2000/06/07 C:\cygwin\bin\cygwin1.dll > 83k 2000/06/11 C:\cygwin\bin\cygitcl30.dll > 35k 2000/06/11 C:\cygwin\bin\cygitk30.dll > 402k 2000/06/11 C:\cygwin\bin\cygtcl80.dll > 474k 1999/09/14 C:\cygwin\bin\cygtcl80_20000415.dll > 5k 2000/06/11 C:\cygwin\bin\cygtclpip80.dll > 10k 2000/06/11 C:\cygwin\bin\cygtclreg80.dll > 639k 2000/06/11 C:\cygwin\bin\cygtk80.dll > 575k 2000/06/07 C:\cygwin\bin\cygwin1.dll >Use -h to see help about each section -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |