This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: glibc 2.1.97 (ldconfig has a bug)
- To: Ulrich Drepper <drepper at cygnus dot com>
- Subject: Re: glibc 2.1.97 (ldconfig has a bug)
- From: Denis Zaitsev <zzz at cd-club dot ru>
- Date: Sun, 5 Nov 2000 19:33:41 +0500
- Cc: GNU libc testers <libc-alpha at sourceware dot cygnus dot com>,VGER gcc list <linux-gcc at vger dot kernel dot org>
- References: <m3itq5lsnb.fsf@otr.mynet.cygnus.com>
ld.so has a problem again. Now it segfaults after ldconfig --format new.
It's because cache_new is used before it is initialized. So, here is
the patch.
--- glibc-2.1.97/sysdeps/generic/dl-cache.c Sun Nov 5 16:17:34 2000
+++ glibc-2.1.97/sysdeps/generic/dl-cache.c Sun Nov 5 16:18:36 2000
@@ -183,7 +183,7 @@
cache_new = (void *) -1;
}
else if (file != NULL && cachesize > sizeof *cache_new
- && memcmp (cache_new->magic, CACHEMAGIC_VERSION_NEW,
+ && memcmp (file, CACHEMAGIC_VERSION_NEW,
sizeof CACHEMAGIC_VERSION_NEW - 1) == 0)
{
cache_new = file;
In the patches I had sent before this thing works...