Subject: Re: libpthread busted?
To: George Michaelson <email@example.com>
From: Bill Studenmund <firstname.lastname@example.org>
Date: 03/04/2003 16:11:42
On Wed, 5 Mar 2003, George Michaelson wrote:
> On 04 Mar 2003 11:59:24 -0500 "Nathan J. Williams" <email@example.com>
> Because so many assertions were made in the thread on this topic, by wiser
> heads than mine, that dynamic linking to libpthread.so was known to be broken.
No, it was dynamic LOADING. Linking is fine, loading is not.
The rub is that it's fine for a program to start up as a threaded
(libpthread is in the mix of libraries) or a non-threaded app (no
libpthread, and certain symbols get bound to stubs in libc).
What is not ok is for a program to start non-threaded and then try to
become threaded by dlopen()ing libpthread.