Project

General

Profile

Actions

Bug #2488

closed

thread usage can result in bad HANDLE

Added by rogerdpack (Roger Pack) over 12 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.2dev (2009-12-31 trunk 26205) [i386-mswin32]
Backport:
[ruby-core:27199]

Description

=begin
require 'thwait'
loop {
a = []
10.times { a << Thread.new {}}
ThreadsWait.all_waits(a)
print '.'
}

C:\dev\digitalarchive_trunk>ruby -v
ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mingw32]

C:\dev\digitalarchive_trunk>ruby stress_th.rb
.............[BUG] The handle is invalid.

ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mingw32]

-- 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.

Works fine with 1.9.2

Thanks.
-r
=end


Files

lock_before_reset.patch (1.22 KB) lock_before_reset.patch wanabe (_ wanabe), 05/01/2010 09:24 PM

Related issues 1 (0 open1 closed)

Related to Backport191 - Bug #3183: "[BUG] The handle is invalid." when working with ThreadsClosed04/22/2010Actions
Actions

Also available in: Atom PDF