Re: [PATCH] elf: Release dl_load_lock before running dlopen constructors (BZ 15686)

Florian Weimer <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Message-ID <[email protected]>
* Alexander Pevzner:

> Florian,
>
>> I think if you arrange for suitable sleeps or barriers, you can get a
>> second dlopen for the same object on another thread to return while the
>> constructor is still executing on a first thread.  This was not possible
>> before.

> You mean the situation, when two threads dlopen-s the same DSO
> simultaneously, correct?

Yes, or for different DSOs if they happen to have a shared dependency.

Thanks,
Florian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.