http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47762

--- Comment #16 from chrbr at gcc dot gnu.org 2012-04-18 12:37:47 UTC ---
(In reply to comment #14)
> But anyway -static-libstdc++ works on Linux too to avoid the link-time 
> problem.
> Still (on x86_64-linux) the testcase runs Ok for me.

Interesting, it segfaults for me on a RH-5.4while calling __gthread_key_delete.

I thought that gthread_key_delete would be mapped to pthread_key_delete from
the gthr-posix but it is not, because_GLIBCXX_GTHREAD_USE_WEAK is defined.
which seems to be the problem.

(I configured with --enable-threads=posix with the glibc). But I was using the
system's glibc. I'll try to recompile my own.

by the way, (not the bug), I'm wondering if there is another way than
using pthread_key_create to hold the thread's freelist ? like using TLS in the
mt_allocator ?

Reply via email to