[libc-alpha] Race condition between nss/dlopen/thread
Ulrich Drepper
drepper@redhat.com
Wed Mar 13 13:42:00 GMT 2002
On Wed, 2002-03-13 at 13:19, Kaz Kylheku wrote:
> One solution is prevention. Simply do not acquire both locks, only one
> at a time. For instance, NSS could arrange to have its lock released
> while it calls out to dlopen.
Prevention: yes. But why that complicated? Static initializers are
evil. Every DSO which depends on them is inherently in danger of not
working reliably. I see no need to change anything. Fix the code. Use
delayed initialization or explicit initialization functions.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20020313/bfe6d34f/attachment.sig>
More information about the Libc-alpha
mailing list