From: Chris Schlaeger Date: 2009-11-15T23:17:01+09:00 Subject: [ruby-core:26749] Re: [Bug #2371] [BUG] thread_free: locking _mutex must be NULL Thanks for the very quick response! > The following patch should fix the issue. �Could you try? Sure. > diff --git a/thread.c b/thread.c > index ba717bd..5ea1982 100644 > --- a/thread.c > +++ b/thread.c > @@ -380,6 +380,7 @@ thread_cleanup_func(void *th_ptr) > � � � �rb_mutex_unlock_all(th->keeping_mutexes, th); > � � � �th->keeping_mutexes = NULL; > � � } > + � �th->locking_mutex = Qfalse; > � � thread_cleanup_func_before_exec(th_ptr); > � � native_thread_destroy(th); > �} Yes, I can confirm that this patch fixes the problem. It also fixes bug #2370 which seems to be just a different looking problem with the same cause. Chris