This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10072] New: 2.9.90 (2009-04-14) : ldconfig creates wrong links for librt, libdl, libpthread
- From: "jason dot vas dot dias at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 14 Apr 2009 23:11:34 -0000
- Subject: [Bug libc/10072] New: 2.9.90 (2009-04-14) : ldconfig creates wrong links for librt, libdl, libpthread
- Reply-to: sourceware-bugzilla at sourceware dot org
TEST CASE:
~~~~~~~~~~
After a checkout from CVS, build, and install, of glibc-2.9.90 of 2009-04-14,
under linux-2.6.30-rc1 for x86_64, with
configure args:
$ ../configure --prefix=/usr --libdir=/usr/lib64 --enable-shared \
--enable-tls --enable-threads=posix --enable-multilib \
--build x86_64-pc-linux-gnu --host x86_64-pc-linux-gnu \
--target x86_64-pc-linux-gnu
After glibc built OK, under :
linux : 2.6.30-rc1 (linus + tip_x86 GIT of 2009-04-10)
gcc : 4.3.4 (20090410)
binutils :
I did:
$ make install install_root=/tmp/glibc-2.9.90-2009-04-14
$ cd /tmp/glibc-2.9.90-2009-04-14; tar -cpf - . |
bzip2 > ${DISTRIB}/glibc-2.9.90-2009-04-14.tar.bz2
Then rebooted into another OS and unpacked the installation archive
into the OS where I built glibc.
Then I did chroot to the new glibc system, and did:
$ ldconfig
After that, EVERY command got a SIGSEGV, because there were some ancient
artifacts of a mistake in /lib64 ; going out of the chroot and into
the new glibc system's /lib64, showed:
$ ls -l librt.so.1 libdl.so.2 libpthread.so.0
lrwxrwxrwx 1 root root 15 Apr 14 18:44 libdl.so.2 -> libdl.so-2.8.so
lrwxrwxrwx 1 root root 20 Apr 14 18:44 libpthread.so.0 -> libpthread.so-2.8.so
lrwxrwxrwx 1 root root 15 Apr 14 18:44 librt.so.1 -> librt.so-2.8.so
These old *.so-2.8.so libraries were over a year old;
the ldconfig from the glibc-2.9.90 of 2009-03-20 did NOT think these
artifacts were current libraries, while the new ldconfig DID -
this IMHO is a bug.
After removing *.so-2.8.so from /lib64, glibc-2.9.90 of 2009-04-14 passed
all tests OK.
--
Summary: 2.9.90 (2009-04-14) : ldconfig creates wrong links for
librt, libdl, libpthread
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: jason dot vas dot dias at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10072
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.