libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libunwind-devel] tls_model("initial-exec") attribute prevents dynam


From: Milian Wolff
Subject: Re: [Libunwind-devel] tls_model("initial-exec") attribute prevents dynamic loading of libunwind via dlopen()
Date: Tue, 01 May 2018 22:37:15 +0200

On Dienstag, 1. Mai 2018 22:22:33 CEST Paul Pluzhnikov wrote:
> On Tue, May 1, 2018 at 11:09 AM Milian Wolff <address@hidden> wrote:
> > - why was the tls_model explicitly set to initial-exec?
> > - can we just remove it?
> 
> Note that when using dlopen-ed library with __thread variables, access to
> them may result in malloc being called (at least under GLIBC):
> https://sourceware.org/bugzilla/show_bug.cgi?id=16133
> 
> That is highly problematic when you want to unwind from within malloc
> itself.

I do that in heaptrack all the time. And I guard against that via a simple 
recursion guard, I've never had an issue with that so far.

Bye

-- 
Milian Wolff
address@hidden
http://milianw.de

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]