Bug 11283 - gdb segfault
Summary: gdb segfault
Status: RESOLVED INVALID
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 7.0
: P2 normal
Target Milestone: 7.1
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-15 01:56 UTC by Talin
Modified: 2011-11-09 19:21 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed: 2010-02-15 23:29:51


Attachments
Executable which causes GDB to crash (45.26 KB, application/octet-stream)
2010-02-15 01:57 UTC, Talin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Talin 2010-02-15 01:56:20 UTC
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.
Comment 1 Talin 2010-02-15 01:57:37 UTC
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.
Comment 2 Tom Tromey 2010-02-15 23:54:48 UTC
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
Comment 3 Sergio Durigan Junior 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.
Comment 4 Talin 2011-11-09 19:13:48 UTC
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.
>
Comment 5 Sergio Durigan Junior 2011-11-09 19:21:07 UTC
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.