I have somehow managed to create an executable (using the various LLVM tools) that causes gdb to crash: gdb test/stdlib/HashMapTest GNU gdb (GDB) 7.0-ubuntu Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/talin/Projects/tart/build- eclipse/test/stdlib/HashMapTest...done. (gdb) break main Segmentation fault I'll go ahead and attach the executable I'm trying to debug.
Created attachment 4601 [details] Executable which causes GDB to crash I can also give you the original assembly (.s) for this file if that would be useful.
readelf claims that your dwarf is erroneous. I haven't looked more closely yet. opsy. readelf -w /tmp/exe > /tmp/R readelf: Warning: Bogus end-of-siblings marker detected at offset 6f6 in .debug_info section readelf: Warning: Bogus end-of-siblings marker detected at offset 6f7 in .debug_info section readelf: Warning: Bogus end-of-siblings marker detected at offset 6f8 in .debug_info section readelf: Warning: Further warnings about bogus end-of-sibling markers suppressed
Hello Talin, Is this bug still happening? As Tom said, `readelf' is reporting that the DWARF generated is anonymous. Have you looked into this issue again? Thank.
That was more than a year ago, I no longer have the files or the environment in which the bug was originally found. On Wed, Nov 9, 2011 at 10:17 AM, sergiodj at redhat dot com < sourceware-bugzilla@sourceware.org> wrote: > http://sourceware.org/bugzilla/show_bug.cgi?id=11283 > > Sergio Durigan Junior <sergiodj at redhat dot com> changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > CC| |sergiodj at redhat dot com > > --- Comment #3 from Sergio Durigan Junior <sergiodj at redhat dot com> > 2011-11-09 18:17:54 UTC --- > Hello Talin, > > Is this bug still happening? As Tom said, `readelf' is reporting that the > DWARF generated is anonymous. Have you looked into this issue again? > > Thank. > > -- > Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email > ------- You are receiving this mail because: ------- > You reported the bug. >
Ok, I will close the bug as INVALID then, since it apparently was not a bug in GDB. Feel free to reopen it if you see the error happening again. Thank you.