Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 805447
Summary: | eu-unstrip emits garbage for librt.so.1 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mads Kiilerich <mads> |
Component: | elfutils | Assignee: | Roland McGrath <roland> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | fche, mjw, mjw, pmachata, roland |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | elfutils-0.153-2.fc17 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-04-12 02:55:33 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
Mads Kiilerich
2012-03-21 10:36:34 UTC
Would you please attach a core dump that reproduces this behavior, if practical? If it's huge even after compression, would you put it up somewhere on the Internet for us to download? The garbage is the name of the Dwfl_Module for librt.so which doesn't seem to be zero terminated: 2125 printf ("%#" PRIx64 "+%#" PRIx64 " ", start, end - start); 2: name = 0x61cd00 "librt.so.\206\004\203\005\002\267\n\303A\306A\307A\305\f\004\004H\vk\n\303A\306A\307A\305\f\004\004A\v" 1: id_len = 20 (gdb) print /x start $1 = 0xb6865000 (gdb) print /x end $2 = 0xb686e000 The situation is that the .dynstr of librt.so available in the image is truncated, because only the first page of librt.so in the image. There was a bug in the code that handles an embedded .dynstr so that it wasn't noticing when the image was truncated. I fixed it with upstream commit 210c2f0. It should be straightforward to produce a small test case for the test suite, because anything that links in librt.so (or anything else whose .dynstr starts in its first page and ends past it, with the DT_SONAME string crossing that boundary) will produce a core file with this situation. I added a testcase: commit 96a52138eab04f24a86c78e8f2af9c74c2d6bfaf Author: Mark Wielaard <mjw> Date: Tue Apr 3 00:21:50 2012 +0200 Add new run-unstrip-n.sh test for RHBZ#805447 fixed in commit 210c2f. elfutils-0.153-2.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/elfutils-0.153-2.fc17 Package elfutils-0.153-2.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing elfutils-0.153-2.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-5291/elfutils-0.153-2.fc17 then log in and leave karma (feedback). elfutils-0.153-2.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. elfutils-0.154-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/elfutils-0.154-1.fc16 elfutils-0.154-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |