From: Michal Suchanek Date: 2008-08-15T20:54:32+09:00 Subject: Re: Threaded IO trouble On 15/08/2008, Roger Pack wrote: > > [lots of output snipped] > > > > deadlock 0x53d4: sleep:F(4) - testt.rb:14 > > deadlock 0x31704: sleep:S (main) - testt.rb:27 > > testt.rb:27:in `write': Thread(0x31704): deadlock (fatal) > > from testt.rb:27:in `puts' > > from testt.rb:27:in `try_analyze' > > from testt.rb:25:in `each' > > from testt.rb:25:in `try_analyze' > > from testt.rb:45 > > from testt.rb:44:in `upto' > > from testt.rb:44 > > > It's probably a bug in Ruby. Most recently I've gotten deadlock > messages just joining on other threads [which do terminate correctly], > which thing is truly bizarre to me. I don't seem to remember it > happening in older patch versions of Ruby. Tough to isolate. > These tests do have the same results in 1.8.1 on OS X. However, I the script in which I saw the error first used to run on Linux in older versions of Ruby. Still it might be that the error occurs less often with older versions, and I think I do at most hundreds of calls in one script run, not thousands. Thanks Michal