From: John Briggs Date: 2010-04-22T04:42:20+09:00 Subject: [ruby-core:29705] [Bug #3183] "[BUG] The handle is invalid." when working with Threads Issue #3183 has been updated by John Briggs. I could reach the the same crash with the following code: somevar = [] 700.times{|i| somevar << Thread.new{} puts "cycle #{i}" } Sometimes it crashes on the third time when I run the code, but sometimes it doesn't crash even if I run it 20 times. ... ... ... cycle 351 cycle 352[BUG] The handle is invalid. ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mswin32] -- control frame ---------- --------------------------- -- Ruby level backtrace information----------------------------------------- [NOTE] You may encounter a bug of Ruby interpreter. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3183 ---------------------------------------- http://redmine.ruby-lang.org