DragonFly BSD
DragonFly bugs List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: -lthread_xu and core dump on __error()

From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Thu, 28 Apr 2005 20:10:28 +0200
Mail-followup-to: bugs@crater.dragonflybsd.org

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.


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