Cancellation and dlmopen?

Florian Weimer fweimer@redhat.com
Sat Nov 14 07:39:00 GMT 2015


On 11/14/2015 04:27 AM, Carlos O'Donell wrote:

> In both context's I think we will need to add something to the
> documentation to clarify that if you are calling into an new namespace
> (which is what dlopen from a static binary is equivalent to) that if the new
> namespace does not also load libpthread.so, then it is not thread safe
> for you to call any function in that new namespace from multiple
> threads.

But __libc_multiple_threads in the new namespace will still be zero even
if libpthread.so is loaded, right?  I don't think it is reasonable to
expect applications to work around that.  It needs knowledge of a lot of
implementation details.

Florian



More information about the Libc-alpha mailing list