Issue #6953 has been reported by luislavena (Luis Lavena).

----------------------------------------
Backport #6953: mingw: test_thread.rb fails - can't create Thread (12)
https://bugs.ruby-lang.org/issues/6953

Author: luislavena (Luis Lavena)
Status: Assigned
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: 
Target version: 


=begin
Hello,

Recently I've enabled 64bits builds for Windows (using x86_64-w64-mingw32 compiler) and found that ((%make test%)) fails:

 #943 test_thread.rb: 
      begin
        10000.times { Thread.new(true) {|x| x == false } }
      rescue NoMemoryError, StandardError
      end
      :ok
   #=> "" (expected "ok")  
 FAIL 1/947 tests failed

You can see the entire compilation output here:

http://ci.rubyinstaller.org/view/All/job/ruby-1_9_3-x64-build/3/console

Thing is that x86 build does not fail:

http://ci.rubyinstaller.org/view/All/job/ruby-1_9_3-x86-build/5/console

Compared this with latest official released (1.9.3-p194) it fails in a similar way:

 V:\>ruby -v a.rb
 ruby 1.9.3p194 (2012-04-20) [i386-mingw32]
 #<ThreadError: can't create Thread (12)>

Which indicates somethings got backported into ruby_1_9_3 that solves the issue but it does not work in 64bits.

I seem unable to find a recent reference to this issue.

Is there something I'm missing?

Thank you.
=end


-- 
http://bugs.ruby-lang.org/