This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cancellation and dlmopen?


On 11/17/2015 10:36 AM, Florian Weimer wrote:
> On 11/17/2015 04:33 PM, Carlos O'Donell wrote:
> 
>> Or document that if the new namespace does not create any threads of it's
>> own that the namespace is *not* thread safe. So calls from non-namespace
>> created threads into the namespace are not safe.
> 
> Other libraries may encounter this problem, too, because they have
> separate sets of locks and no longer achieve mutual exclusion.  For
> example, in-process databases such as SQLite which implement new-style,
> file-private locks in an emulation layer will break.

I don't see any file-private lock implementation in SQLite upstream,
but you are correct from a first principles perspective.

Could you explain in a little more detail how you see the failure
mode in this case?

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]