Re: Possible ld-so bug.

David Luyer (luyer@ucs.uwa.edu.au)
Wed, 17 Feb 1999 15:59:34 +0800


Zygo Blaxell wrote:

> The answer might be a C program that executes a lot of
>
> rename("library.new", "library");
>
> given a master list, after all the 'library.new''s have been written.
> That C program would do all the renames itself and therefore keeps the
> old shared library images in RAM while changing the files around on disk.
> The C program would continue until all of the libraries have been replaced,
> and once that is done you can happily run the (statically linked)
> /sbin/ldconfig -v and you're done.

And then all your running daemons have heart attacks. Why? Because sendmail
has glibc 2.0.7x mapped, but doesn't have the DNS stuff mapped, and then
sendmail decides to do a DNS lookup, maps in glibc 2.0.7y's DNS module,
and looses/bounces your e-mail.

(Yes, it was only the test machine, but some people might think it's safe to
upgrade glibc on a running system from packages - often, it isn't. It might
usually work, but occasionally bouncing e-mail is still not good.)

David.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/