Subject: Re: infinite loop in pthread__mutex_spin after call to exit
To: Andrew Doran <ad@netbsd.org>
From: Sverre Froyen <sverre@viewmark.com>
List: current-users
Date: 12/31/2007 16:18:48
Hi,

I have resolved this issue by changing atexit_mutex to be fully recursive.  
The mutex was recursive in __cxa_finalize but not in  __cxa_atexit.  I have 
filed PR lib/37654, which includes a patch.

I should have noted in the PR that atexit.c does not compile unless _REENTRANT 
is defined -- with or without my patch.  That is a separate issue, however.

Thanks

Sverre