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 sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <4.3.2.7.0.20000622144003.00b3f978@courriel.polymtl.ca> X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Thu, 22 Jun 2000 14:50:37 -0400 To: cygwin AT sourceware DOT cygnus DOT com From: Andre Bleau Subject: gdb 20000610 crashes Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id OAA01527 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 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 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 André Bleau, ing., analyste bleau AT courriel DOT polymtl DOT ca Département de génie électrique et Electric Engineering and de génie informatique Computer Engineering department École Polytechnique de Montréal Montreal Polytechnic School -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com