Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120091 - gdb-6.4-r1 internal error: could not find partial DIE in cache
Summary: gdb-6.4-r1 internal error: could not find partial DIE in cache
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-23 12:47 UTC by Ed Catmur
Modified: 2006-01-23 15:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gdb-6.3-partial-die-20050503.patch (gdb-6.3-partial-die-20050503.patch,6.20 KB, patch)
2006-01-23 12:47 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2006-01-23 12:47:16 UTC
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 Ed Catmur 2006-01-23 12:47:49 UTC
Created attachment 77944 [details, diff]
gdb-6.3-partial-die-20050503.patch
Comment 2 SpanKY gentoo-dev 2006-01-23 15:29:32 UTC
added to 6.4-r2, thanks for the info