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

Bug#205234: 2.3.2-7 + pthread + vsyslog()



On Thu, 2003-09-18 at 13:39, Daniel Jacobowitz wrote:
> What were you debugging when you encountered this, and what was loading
> libpthread?  In general, this won't work.  The problem is that syslog
> tries to lock a mutex; but the mutex was never initialized because
> libpthread was not loaded until later.

As far as I can tell, the cause of the problem here is that the openlog
cleanup handler is not being called, leaving the mutex locked on exit
from that function.  That in turn happens because __libc_cleanup_push
finds that the GOT entry for _pthread_cleanup_push is NULL, leading it
to believe that libpthread isn't loaded.

I'll try adding these functions to __libc_pthread_functions and see if
that helps.

p.




Reply to: