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: malloc->backtrace->dlopen->malloc deadlock


On 01/12/2016 08:10 PM, Carlos O'Donell wrote:
> To answer your last question "Is it valid for a user-supplied malloc to call
> dlopen?" The answer is "No." The community agreed that no blanket statement 
> should be made about the SR-safety of any group of functions and that each
> function should be evaluated and documented. As of today a user-supplied malloc
> may only make AS-safe function calls to avoid potentially calling a library
> routine reetrantly that cannot handle such an invocation. And none of this is
> formally documented yet.

To be clear, my intent is to mark quite a large amount of the library SR-safe,
and to ensure user-supplied malloc's work without the punitive requirement of
using only AS-safe functions. This is still a long term plan.

Cheers,
Carlos.


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