Bug 120091 - gdb-6.4-r1 internal error: could not find partial DIE in cache
Bug#: 120091 Product:  Gentoo Linux Version: 2005.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: toolchain@gentoo.org Reported By: ed@catmur.co.uk
Component: Development
URL: 
Summary: gdb-6.4-r1 internal error: could not find partial DIE in cache
Keywords:  
Status Whiteboard: 
Opened: 2006-01-23 12:47 0000
Description:   Opened: 2006-01-23 12:47 0000
Debugging non-stripped binaries, gdb prints e.g.

GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
dwarf2read.c:5468: internal-error: could not find partial DIE in cache

A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n

dwarf2read.c:5468: internal-error: could not find partial DIE in cache

A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n

Thereafter, trying to debug results in all sorts of nastiness:

Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0x0: Input/output error.

Red Hat have a patch for this; the commit to Fedora is
https://www.redhat.com/archives/fedora-cvs-commits/2005-May/msg00100.html

The patch needs a small amount of massaging to apply to Gentoo gdb 6.4-r1. I
attach the adjusted patch, which corrects the bug.

Suggest the patch be added to Gentoo tree.

------- Comment #1 From Ed Catmur 2006-01-23 12:47:49 0000 -------
Created an attachment (id=77944) [details]
gdb-6.3-partial-die-20050503.patch

------- Comment #2 From SpanKY 2006-01-23 15:29:32 0000 -------
added to 6.4-r2, thanks for the info