Bug 672230

Summary: internal-error: could not find partial DIE
Product: [Fedora] Fedora Reporter: Martin Stransky <stransky>
Component: gdbAssignee: Tom Tromey <tromey>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dodji, dtardon, jan.kratochvil, patrickm, pmuldoon, sergiodj
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: gdb-7.2.90.20110411-34.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-15 21:23:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
.mozconfig file none

Description Martin Stransky 2011-01-24 13:59:28 UTC
Created attachment 474965 [details]
.mozconfig file

Description of problem:
gdb fails to debug firefox on rawhide

Version-Release number of selected component (if applicable):
gdb-7.2.50.20110117-13.fc15.i686
gcc-4.6.0-0.3.fc15.i686

How reproducible:
Always

Steps to Reproduce:
1. hg clone http://hg.mozilla.org/mozilla-central/ src
2. apply a patch from https://bugzilla.mozilla.org/show_bug.cgi?id=628252
3. copy the attached .mozconfig to src directory
4. build with "make -f client.mk build"
5. cd dist/bit
6. ./firefox -g -d gdb
7. (gdb) r
  
Actual results:
../../gdb/dwarf2read.c:9438: internal-error: could not find partial DIE 0x303d3bd in cache [from module /home/komat/tmp592-b8/src/dist/bin/libxul.so]?

Comment 1 Jan Kratochvil 2011-01-25 18:52:49 UTC
reproducer:
http://people.redhat.com/jkratoch/gcc46.C

Comment 2 Jan Kratochvil 2011-01-26 13:04:07 UTC
gdb -readnow can be used as a workaround.

Comment 3 Jan Kratochvil 2011-01-26 14:49:31 UTC
Temporary fix is in: gdb-7.2.50.20110125-15.fc15

Comment 4 Martin Stransky 2011-01-26 15:09:07 UTC
gdb-7.2.50.20110125-15.fc15 works for me, thanks.

Comment 5 Dodji Seketeli 2011-01-28 11:15:40 UTC
This is a GCC bug. There is this upstream problem report
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47510 to track it.

Comment 6 Tom Tromey 2011-02-02 20:24:40 UTC
I sent a patch:
http://sourceware.org/ml/gdb-patches/2011-02/msg00029.html
This works with the GCC after the patch in the GCC PR has been applied.

Comment 7 Tom Tromey 2011-04-01 17:52:33 UTC
I checked in a different patch, updated for changes to GCC:

http://sourceware.org/ml/gdb-patches/2011-03/msg00916.html

Comment 8 Fedora Update System 2011-04-11 20:59:08 UTC
gdb-7.2.90.20110411-34.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/gdb-7.2.90.20110411-34.fc15

Comment 9 Fedora Update System 2011-04-13 04:53:02 UTC
Package gdb-7.2.90.20110411-34.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gdb-7.2.90.20110411-34.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/gdb-7.2.90.20110411-34.fc15
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2011-04-15 21:22:57 UTC
gdb-7.2.90.20110411-34.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.