This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/11896] New: symbol-file command crashes gdb with an assertion failure


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]