From: MenTaLguY Date: 2007-01-19T01:37:23+09:00 Subject: Re: fastthread crash (Was: Re: building Ruby with dmalloc) --=-mCY9UwoL2X96TOyuqudG Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2007-01-19 at 01:11 +0900, MenTaLguY wrote: > The problem, in this case, appears to be coping with the mutex and > condition variable getting destroyed at program exit while there is > still a thread waiting on the condition variable. Actually ... that turns out to not be the problem. The thread is killed and the wait queue empty by the time the condition variable is finalized. Bizzarely, what appears to be happening is that rb_queue_alloc is getting called when creating mutexes and condition variables. Hence free_queue is getting called when mutexes and condition variables are destroyed, and chaos ensues. At least it's a simple problem, but it's a WEIRD one. -mental --=-mCY9UwoL2X96TOyuqudG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBFr6I+SuZBmZzm14ERAhB8AKCZWBtWxzSytaL812Ytd66BRtlz8ACdHcfg pN5QiUxYpJffq3zbHdFfWE4= =uKzB -----END PGP SIGNATURE----- --=-mCY9UwoL2X96TOyuqudG--