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

Re: dlclose() from threaded program segfaults



Some more investigation:

The bug does not occur in 2.5-11, it does in 2.6.1-6.
It is related to gscope changes, IMHO between 2.6 and 2.6.1.

linuxthreads add-on does not provide __wait_lookup_done(),
it is available only from nptl/allocatestack.c

The GL(dl_wait_lookup_done) aka THREAD_GSCOPE_WAIT() is not initialized at all.
So any call to THREAD_GSCOPE_WAIT() have to lead to segfault.

It definitely does not appear frequently, so busy waiting similarly
as in debian/patches/hurd-i386/local-gscope.diff should be just fine,
only THREAD_GSCOPE_WAIT() should use nanosleep_not_cancel()

Does hppa have atomic inc/dec ?

Petr


Reply to: