Bug 2402 - strip fail sometime to strip libc-2.3.5.so with signal11
Summary: strip fail sometime to strip libc-2.3.5.so with signal11
Status: RESOLVED WORKSFORME
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.16
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-25 12:17 UTC by Gilles Espinasse
Modified: 2006-03-02 18:36 UTC (History)
2 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: i486-pc-linux-gnu
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gilles Espinasse 2006-02-25 12:17:00 UTC
With binutils-2.16.91.0.5 and 2.16.91.0.6, sometime strip fail

When it work
/tools/bin/find /lib /usr/lib /usr/share/rrdtool-* /install/initrd/lib \
	-type f \( -name '*.so' -o -name '*.so[\.0-9]*' \) \
	-ls -exec /tools/bin/strip --strip-all {} \; #2>/dev/null
1137622 4640 -rwxr-xr-x   1 root     root      4735243 Feb 25 12:06 /lib/libc-
2.3.5.so
1135963  328 -rwxr-xr-x   1 root     root       329306 Feb 25 12:06 /lib/ld-
2.3.5.so
1135780   12 -rwxr-xr-x   1 root     root         9592 Feb 25 
12:05 /lib/libBrokenLocale-2.3.5.so
1135795  460 -rwxr-xr-x   1 root     root       465024 Feb 25 12:05 /lib/libm-
2.3.5.so
...
(only libc was not yet stripped)
Then after many strip attempts

/tools/bin/find /lib /usr/lib /usr/share/rrdtool-* /install/initrd/lib \
	-type f \( -name '*.so' -o -name '*.so[\.0-9]*' \) \
	-ls -exec /tools/bin/strip --strip-all {} \; #2>/dev/null
1126113 1020 -rwxr-xr-x   1 root     root      1036728 Feb 25 12:44 /lib/libc-
2.3.5.so
/tools/bin/find: /tools/bin/strip terminated by signal 11
1126116   84 -rwxr-xr-x   1 root     root        80716 Feb 25 12:44 /lib/ld-
2.3.5.so
1135775    8 -rwxr-xr-x   1 root     root         5528 Feb 25 
12:44 /lib/libBrokenLocale-2.3.5.so
1135795  140 -rwxr-xr-x   1 root     root       137848 Feb 25 12:44 /lib/libm-
2.3.5.so
...

It look to corrupt libc-2.3.5.so. Any next attempt to strip again fail with the 
same signal 11 until glibc is rebuild. Then after the rebuild, it work most of 
the time. To be certain to reproduce the bug, I had to repeat the strip script 
in a `seq 1 20`loop.

All of the build is made similary to LFS-6.1 build (except binutil upgrade and 
stripping shared lib is not written in the book, but has been work for time 
with older LFS5.1 and strip 2.15.90.0.3 20040415)

strip part is made in a chroot inside the build environnement.
Comment 1 H.J. Lu 2006-03-01 01:30:40 UTC
Is your strip linked againt libc-2.3.5.so it tries to strip?
Comment 2 H.J. Lu 2006-03-02 18:36:32 UTC
It works for me.