Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 465872

Summary: dwfl_module_build_id returns wrong address
Product: Red Hat Enterprise Linux 5 Reporter: Frank Ch. Eigler <fche>
Component: elfutilsAssignee: Roland McGrath <roland>
Status: CLOSED DEFERRED QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.3CC: drepper
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-22 00:11:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.