Nobuyoshi Nakada wrote:
> Hi,
> 
> At Mon, 14 Jan 2008 23:41:26 +0900,
> Sam Ruby wrote in [ruby-core:15069]:
>> [BUG] native_mutex_destroy return non-zero: 16
> 
> Errno 16 is EBUSY?

I believe so, yes.

>> /home/rubys/svn/ruby/process.c:1314
>> /home/rubys/svn/ruby/process.c:1411
>> /home/rubys/svn/ruby/process.c:1732
>> /home/rubys/svn/ruby/process.c:1790
> 
> Seems using spawn.  Process.fork eliminates all other threads
> except for the thread called it, without any cleanup.  Mutexes
> would be left locked.
> It's a tough problem to define.

Does it help to know that reverting the following change makes the 
problem go away?

http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/thread.c?r1=15044&r2=15043&pathrev=15044

- Sam Ruby