Thread stack size issue related to glibc TLS bug
jianglizhou at google.com
Fri May 24 20:29:11 UTC 2019
On Fri, May 24, 2019 at 2:46 AM Florian Weimer <fweimer at redhat.com> wrote:
> * Jiangli Zhou:
> >  change: http://cr.openjdk.java.net/~jiangli/tls_size/webrev/
> > (contributed by Jeremy Manson)
> _dl_get_tls_static_info is an internal symbol (it carries a
> GLIBC_PRIVATE symbol version). Its implementation can change at any
> time. Please do not do this.
Point taken. Thanks.
It appears that asan is already carrying the same type of fix:
As the issue has not been able to be addressed in the glibc layer, all
the others have to workaround it (and possibly by using the glibc
private APIs, _dl_get_tls_static_info or __pthread_get_minstack). That
would cause more dependencies on the private APIs.
One alternative (besides fixing glibc) may be making
_dl_get_tls_static_info public. Would that be possible?
More information about the core-libs-dev