On Wed, Aug 17, 2011 at 12:03:54PM +0400, Roman Rybalko wrote: > Sometimes happens for me, but with different tools, my own > particularly. > Seems FreeBSD's pthread_mutex_init does not clear the memory, and then > may be possible situation when random mutex data interfere with > internal lists. > memset(&mutex, 0, sizeof(mutex)) before pthread_mutex_init fixes the > problem for me. > Using FreeBSD-8.x
I tried to add memset(&mutex, 0, sizeof(mutex)) before each pthread_mutex_init in coreutils. It did not fix the crash.
