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 Fri, Jan 08, 2016 at 03:37:34PM -0800, Roland McGrath wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=16573 describes a case
> where malloc checking triggering leads to a deadlock because
> malloc_printerr's call to backtrace leads to dlopen for libgcc_s.so and
> that calls into malloc.
> 
> I know Carlos was working on making this kind of reentrance work.
> Did that get done?  Is there another bug number that 16573 should
> be a dup of?

Based on the backtrace in the bz, this looks like a different (and
new) problem from #16159.  The deadlock seems to be happening on the
mtrace-internal LOCK and not the arena lock.  We never attempted to
fix that with #16159; our fix was limited to making malloc itself work
and we never got to any use cases beyond that.

Siddhesh


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