This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
Re: [Bug malloc/16159] malloc_printerr() deadlock, when calling malloc_printerr() again
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: "darryl.miles at darrylmiles dot org" <sourceware-bugzilla at sourceware dot org>
- Cc: glibc-bugs at sourceware dot org
- Date: Wed, 13 Nov 2013 15:31:12 +0100
- Subject: Re: [Bug malloc/16159] malloc_printerr() deadlock, when calling malloc_printerr() again
- Authentication-results: sourceware.org; auth=none
- References: <bug-16159-131 at http dot sourceware dot org/bugzilla/> <bug-16159-131-456ngMqDao at http dot sourceware dot org/bugzilla/>
On Wed, Nov 13, 2013 at 01:00:06PM +0000, darryl.miles at darrylmiles dot org wrote:
> How do I stop this fancy backtrace stuff from working ? I want to setup an
> environment variable to turn it off as a workaround ?
>
> How do I make this fancy backtrace stuff work, by preloading the dlopen() stuff
> it might need, during initialization of malloc() ? I want to setup an
> environment variable for that too.
>
As a quick workaround you can add following code to your application/preload this.
#include <execinfo.h>
static void __attribute__ ((constructor))
init_backtrace()
{
void *bt[10];
backtrace (bt, 10);
}