From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.7.2) Gecko/20040809 Epiphany/1.3.8 Description of problem: When I run strip on my iBook (32 bit PowerPC), the program generates executable images that segfault. Version-Release number of selected component (if applicable): binutils-2.15.91.0.2-9 How reproducible: Always Steps to Reproduce: [mike@imp tmp]$ cp /bin/ash . [mike@imp tmp]$ strip ash [mike@imp tmp]$ ./ash Segmentation fault [mike@imp tmp]$ /bin/ash shopt: not found shopt: not found $ exit [mike@imp tmp]$ Actual Results: The copy of ash that I stripped caused a segfault. The copy of ash that was installed by the ash RPM executes properly. Additional info:
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.