ldconfig makes system loader /lib/ld-linux.so.2 to be linked to 3rd party loaders in /lib directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eglibc (Debian) |
Fix Released
|
Unknown
|
|||
eglibc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Package: libc-bin
Version: 2.13-0ubuntu13
Severity: Critical
Source: eglibc
Architecture: i386
System having installed with some 3rd party loaders (ld-<name>.so.x) in /lib directory. With these loaders present if we run ldconfig, its removing the system loader symbolic link ld-linux.so.2 in /lib directory from /lib/i286-
Captured the strace logs for "ldconfig".
4470 15:25:20 close(4) = 0
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 getdents64(3, /* 0 entries */, 32768) = 0
4470 15:25:20 close(3) = 0
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 stat64(
4470 15:25:20 lstat64(
4470 15:25:20 unlink(
4470 15:25:20 symlink(
This issue reproduce only on Ubuntu 11.04. As ldconfig is creating symbolic link causing the system unusable. Want to know why ldconfig is linking to 3rd party loaders instead of system loader ld-2.13.so and appreciate if you could provide the workaround for this issue.
Changed in eglibc (Debian): | |
status: | Unknown → Fix Released |
This bug was also reported in the Debian bug tracker (http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 655711) and some more details were posted there:
"Yes, I am doing some test/check with different ubuntu versions and this
issue observed or encountered only on Ubuntu 11.04. Also not been seeing
this on earlier versions and recent Ubuntu 11.10.
Yes, you are right that the SONAME of our loader ld-<name>.so.2 loader is
pointing to system loader ld-linux.so.2.
The output of "readelf" is below:
root@ubuntuserv er1104: ~# readelf -d /lib/ld-<name>.so.2 | grep SONAME
0x0000000e (SONAME) Library soname: [ld-linux.so.2]
Its curious to know that, why this is only happening on Ubuntu 11.04? Any
specific dependent with ldconfig? and not observed on other ubuntu
versions even though the soname encoded is same as ld-linux.so.2."