-lthread_xu and core dump on __error()

Joerg Sonnenberger joerg at britannica.bec.de
Thu Apr 28 11:11:55 PDT 2005

On Thu, Apr 28, 2005 at 06:06:50PM +0900, YONETANI Tomokazu wrote:
> After the TLS change, linking against -lthread_xu resulted in segmentation
> fault in somewhere inside __error(). After looking closely what's been
> changed, I found that the _get_curthread() (which had been defined as
> an inline function in pthread_md.h and was replaced by tls_get_curthread())
> had a conditional against _thr_initial to have a non-NULL value around
> the call to TCB_GET32/TCP_GET64, but it's not in tls_get_curthread().
> So I tried the following patch and it seems to work(not heavily tested yet):

The problem was that rtld skipped the TCB setup when no static TLS space
was needed. Try with the last rtld patch again, it should now be fixed.


More information about the Bugs mailing list