Bug 465872 - dwfl_module_build_id returns wrong address
Summary: dwfl_module_build_id returns wrong address
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: elfutils
Version: 5.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Roland McGrath
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-06 21:06 UTC by Frank Ch. Eigler
Modified: 2010-04-22 00:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-22 00:11:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Frank Ch. Eigler 2008-10-06 21:06:02 UTC
Up to and including elfutils-0.137, dwfl_module_build_id appears to return
the address just past the buildid hash value, not the first byte.

/usr/src/kernels/2.6.25.14-69.fc8-x86_64
[16:52:23] % eu-unstrip -n -K kernel
0xffffffff81000000+0x556aec e9755c9d3e7816ea9d2c8c3fa07fd94a695f0996@0xffffffff81295a64 /usr/lib/debug/lib/mod

whereas 0x...5a50 would have been correct.

Comment 1 Frank Ch. Eigler 2008-10-06 21:55:56 UTC
It would be helpful if the fixed elfutils code provided some autoconfable
entity that identifies the presence of the change.  Old elfutils is found
widely out there, and clients such as systemtap may need to work with them.

Comment 2 Roland McGrath 2009-04-15 10:02:15 UTC
This was resolved upstream in 0.138 (maybe there are some Fedora bz#s for it?).
It can be in the next rebasing RHEL5 update, whenever an elfutils package update is slotted in.

Comment 3 Frank Ch. Eigler 2009-09-23 15:19:12 UTC
Considering that we're building systemtap in bundled-elfutils mode for
rhel5, and that elfutils proper is unlikely to be rebased, we may just
close this as WONTFIX for rhel5.

Comment 4 Roland McGrath 2010-04-22 00:11:22 UTC
Fixed in RHEL6.


Note You need to log in before you can comment on or make changes to this bug.