This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Lazy TLS initialization vs. TCMalloc.
- From: Carlos O'Donell <carlos at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 22 Mar 2016 15:58:48 -0400
- Subject: Lazy TLS initialization vs. TCMalloc.
- Authentication-results: sourceware.org; auth=none
I was asked to comment on Ceph/TCMalloc deadlock problems
which appeared to be glibc-related. Given that I stood up
and represented the community I'm posting what I wrote
here for posterity:
http://tracker.ceph.com/issues/13522#note-23
The basic problem is that lazy TLS initialization has
unknown requirements on the interposing malloc and TCMalloc
gets it wrong.
I hope that we can find somebody to fix the issue and that
consensus remains that dlopen should allocate up front to
avoid the issues with lazy initialization.
--
Cheers,
Carlos.