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 From: Chris Faylor Date: Thu, 22 Jun 2000 16:05:22 -0400 To: cygwin AT sourceware DOT cygnus DOT com Subject: Re: gdb 20000610 crashes Message-ID: <20000622160522.D3865@cygnus.com> Reply-To: cygwin AT sourceware DOT cygnus DOT com Mail-Followup-To: cygwin AT sourceware DOT cygnus DOT com References: <4 DOT 3 DOT 2 DOT 7 DOT 0 DOT 20000622144003 DOT 00b3f978 AT courriel DOT polymtl DOT ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <4.3.2.7.0.20000622144003.00b3f978@courriel.polymtl.ca>; from andre.bleau@courriel.polymtl.ca on Thu, Jun 22, 2000 at 02:50:37PM -0400 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 >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