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
* [Bug gdb/11896] symbol-file command crashes gdb with an assertion failure
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 ` tromey at redhat dot com
2010-08-17 20:00 ` tromey at redhat dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: tromey at redhat dot com @ 2010-08-17 19:43 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From tromey at redhat dot com 2010-08-17 19:43 -------
I tried this on gdb itself ("gdb gdb; start; symbol-file") and it
worked fine for me.
Could you try it on some simple test program? I wonder if there is
something special about whatever program you are debugging.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
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
* [Bug gdb/11896] symbol-file command crashes gdb with an assertion failure
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
3 siblings, 0 replies; 7+ messages in thread
From: tromey at redhat dot com @ 2010-08-17 20:00 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
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
* [Bug gdb/11896] symbol-file command crashes gdb with an assertion failure
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
3 siblings, 0 replies; 7+ messages in thread
From: sidneym at quicinc dot com @ 2010-08-18 14:58 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From sidneym at quicinc dot com 2010-08-18 14:58 -------
Created an attachment (id=4938)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4938&action=view)
Simple testcase to demonstrate the issue.
This is a simple testcase that shows the issue. I re-tested with today's gdb
(NU gdb (GDB) 7.2.50.20100818-cvs) and still see the problem.
I also tried, ./gdb gdb and didn't see the issue either, but when I did an
"info breakpoints" after discarding the symbol file gdb seg-faulted. This is
what I did:
./gdb gdb
br main
r
symbol-file
info breakpoints
-----
This is my config:
$ /prj/dsp/qdsp6/austin/users/sidneym/gnu/gdb/cvs/src/gdb/configure
--cache-file=./config.cache --with-system-zlib --program-transform-name=s,y,y,
--disable-option-checking --build=x86_64-unknown-linux-gnu
--host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu
--srcdir=../../src/gdb
--
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
* [Bug gdb/11896] symbol-file command crashes gdb with an assertion failure
2010-08-09 18:24 [Bug gdb/11896] New: symbol-file command crashes gdb with an assertion failure sidneym at quicinc dot com
` (2 preceding siblings ...)
2010-08-18 14:58 ` sidneym at quicinc dot com
@ 2010-08-18 23:12 ` sidneym at quicinc dot com
3 siblings, 0 replies; 7+ messages in thread
From: sidneym at quicinc dot com @ 2010-08-18 23:12 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed| |1
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).