public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/11896] New: symbol-file command crashes gdb with an assertion failure
@ 2010-08-09 18:24 sidneym at quicinc dot com
  2010-08-17 19:43 ` [Bug gdb/11896] " tromey at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: sidneym at quicinc dot com @ 2010-08-09 18:24 UTC (permalink / raw)
  To: gdb-prs

Discarding a symbol file while a program is stopped at a breakpoint will cause
gdb to crash.  The problem doesn't look target specific and I tried it on an
Ubuntu vanilla install and from cvs and both seem to have the same problem.

To reproduce, set a breakpoint at main, run the program.  When the breakpoint at
main is hit do a "symbol-file" command with no arguments and gdb will crash. 
This gdb script will show the issue (assume main is an executable compiled with
debug information):

file main
br main
r
symbol-file

Will cause this assertion failure:
../../src/gdb/dwarf2-frame.c:956: internal-error: dwarf2_frame_cache: Assertion
`fde != NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) y

The specific version of gdb was:
GNU gdb (GDB) 7.2.50.20100806-cvs

-- 
           Summary: symbol-file command crashes gdb with an assertion
                    failure
           Product: gdb
           Version: 7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: sidneym at quicinc dot com
                CC: gdb-prs at sourceware dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=11896

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <bug-11896-4717@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2023-12-30 20:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-09 18:24 [Bug gdb/11896] New: symbol-file command crashes gdb with an assertion failure sidneym at quicinc dot com
2010-08-17 19:43 ` [Bug gdb/11896] " tromey at redhat dot com
2010-08-17 20:00 ` tromey at redhat dot com
2010-08-18 14:58 ` sidneym at quicinc dot com
2010-08-18 23:12 ` sidneym at quicinc dot com
     [not found] <bug-11896-4717@http.sourceware.org/bugzilla/>
2011-10-25  2:28 ` ggs334 at 163 dot com
2023-12-30 20:07 ` ssbssa at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).