Bug 133734
Summary: | Stripping prelinked binaries produces programs that segfault | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | W. Michael Petullo <redhat> | ||||
Component: | binutils | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | binutils-2.15.92.0.2-3 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2004-10-12 11:28:09 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: | |||||||
Attachments: |
|
Description
W. Michael Petullo
2004-09-26 23:46:54 UTC
Can't reproduce, even the stripped ash works just fine. ash-0.3.8-20 binutils-2.15.91.0.2-9 md5sum /bin/ash 5898a1de8e16f89c9ad838fa578c7c5f /bin/ash strip actually doesn't change anything on the file and returns success. Did you notice that the architecture is PowerPC? [mike@imp tmp]$ cp /bin/ash . [mike@imp tmp]$ strip ash [mike@imp tmp]$ diff ash /bin/ash Binary files ash and /bin/ash differ Another wierd thing is that /bin/ash is already stripped. Of course I have tested on ppc. It is certainly not weird that (most) binaries and libraries in the distro are stripped, that's on purpose (they are stripped into files in *-debuginfo* packages). You haven't mentioned what exact ash version you used. Alternatively please attach your /bin/ash before and after stripping. My statement was a little ambiguous. I didn't mean that it was odd that ash was already stripped, per se. I meant that it was odd that the stripped ash provided by the RPM did not crash but the copy I stripped myself did. Anyway, I'll try submit the additional information asked for when I get a chance. Here are my current binutils and ash versions, along with a demonstration that the packages' files are still legitimate: [root@imp /]# rpm -q binutils binutils-2.15.91.0.2-9 [root@imp /]# rpm -V binutils [root@imp /]# rpm -q ash ash-0.3.8-20 [root@imp /]# rpm -V ash Created attachment 104615 [details]
Copy of ash that I stripped; causes a segfault on my iBook
Ok, reproduced even on x86-64. The important difference why I have not been able to reproduce this was that my /bin/ash was not prelinked. strip apparently messes up the .gnu.liblist section. Confirmed fixed with binutils-2.15.92.0.2-3 and prelink-0.3.2-11. |