[#28015] RCR: RUBY_VERSION_INT — Roger Pack <rogerdpack2@...>

Situation:

14 messages 2010/02/02

[#28113] [Bug #2723] $: length affects re-require time of already loaded files — Greg Hazel <redmine@...>

Bug #2723: $: length affects re-require time of already loaded files

16 messages 2010/02/08

[#28151] [Bug #2739] ruby 1.8.7 built with pthreads hangs under some circumstances — Joel Ebel <redmine@...>

Bug #2739: ruby 1.8.7 built with pthreads hangs under some circumstances

31 messages 2010/02/11

[#28188] [Bug #2750] build fails on win32/MinGW: "executable host ruby is required." even when --with-baseruby is used — Christian Bodt <redmine@...>

Bug #2750: build fails on win32/MinGW: "executable host ruby is required." even when --with-baseruby is used

9 messages 2010/02/16

[#28206] Is Math module a wrapper of libm? — Yusuke ENDOH <mame@...>

Hi matz --

23 messages 2010/02/18
[#28212] Re: Is Math module a wrapper of libm? — Yukihiro Matsumoto <matz@...> 2010/02/18

Hi,

[#28219] Re: Is Math module a wrapper of libm? — Yusuke ENDOH <mame@...> 2010/02/18

Hi,

[#28225] Re: Is Math module a wrapper of libm? — Marc-Andre Lafortune <ruby-core-mailing-list@...> 2010/02/18

Hi,

[#28233] Re: Is Math module a wrapper of libm? — Kenta Murata <muraken@...> 2010/02/18

Hi,

[#28265] Re: Is Math module a wrapper of libm? — Marc-Andre Lafortune <ruby-core-mailing-list@...> 2010/02/20

Hi,

[#28286] Re: Is Math module a wrapper of libm? — Kenta Murata <muraken@...> 2010/02/21

Hi

[#28291] Re: Is Math module a wrapper of libm? — Marc-Andre Lafortune <ruby-core-mailing-list@...> 2010/02/22

Hi!

[#28235] [Feature #2759] Regexp /g and /G options — Michael Fellinger <redmine@...>

Feature #2759: Regexp /g and /G options

35 messages 2010/02/18

[#28329] [ANN] Ruby 1.9.2dev has passed RubySpec! — Yusuke ENDOH <mame@...>

Hi,

12 messages 2010/02/24

[#28355] [ANN] Toward rich diversity of Ruby development. — Urabe Shyouhei <shyouhei@...>

A short announcement: thanks to some helps of GitHub people, I now have

12 messages 2010/02/27

[#28365] Indentifying key MRI-on-Windows issues — Jon <jon.forums@...>

In an effort to begin summarizing key MRI-on-Windows open issues I'm starting this thread in hopes that those interested will respond with details on the key MRI issues they feel need resolution for Windows users.

11 messages 2010/02/27
[#28690] Re: Indentifying key MRI-on-Windows issues — Roger Pack <rogerdpack2@...> 2010/03/16

> My key concern is http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-=

[ruby-core:28298] [Bug #2780] "Handle is invalid" when accessing the file system from different threads (win32)

From: Dennis Ranke <redmine@...>
Date: 2010-02-22 16:04:37 UTC
List: ruby-core #28298
Bug #2780: "Handle is invalid" when accessing the file system from different threads (win32)
http://redmine.ruby-lang.org/issues/show/2780

Author: Dennis Ranke
Status: Open, Priority: Normal
Category: core
ruby -v: ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mswin32]

Sometimes when building projects using our own build tool written in ruby, the ruby interpreter crashes on us. The build tool uses multiple threads to compile files in parallel. (Like "make -j 2")

First we got this backtrace:

C:/projekte/tools/code/animation/AnimationConverter/helpers/lace/lib/lace/dependencies.rb:32: [BUG] Das Handle ist ung続ltig.
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]
-- control frame ----------
c:0013 p:---- s:0052 b:0052 l:000051 d:000051 CFUNC :initialize
c:0012 p:---- s:0050 b:0050 l:000049 d:000049 CFUNC :open
c:0011 p:0042 s:0045 b:0045 l:000044 d:000044 METHOD C:/projekte/tools/code/animation/AnimationConverter/helpers/lace/lib/lace/dependencies.rb:32
c:0010 p:0497 s:0039 b:0039 l:000bf0 d:002164 BLOCK C:/projekte/tools/code/shared/modules_compiler/compiler/win32/msvc/vc13106030/msvcbase.def:154
c:0009 p:0038 s:0029 b:0029 l:000028 d:000028 METHOD C:/projekte/tools/code/animation/AnimationConverter/helpers/lace/lib/lace/compilerbase.rb:200
c:0008 p:0043 s:0022 b:0022 l:000021 d:000021 METHOD C:/projekte/tools/code/shared/modules_compiler/compiler/win32/msvc/vc13106030/msvcbase.def:104
c:0007 p:0185 s:0016 b:0016 l:001d68 d:000015 BLOCK C:/projekte/tools/code/animation/AnimationConverter/helpers/lace/lib/lace/compilerbase.rb:282
c:0006 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :loop
c:0004 p:0009 s:0008 b:0008 l:001d68 d:000007 BLOCK C:/projekte/tools/code/animation/AnimationConverter/helpers/lace/lib/lace/compilerbase.rb:269
c:0003 p:0007 s:0006 b:0006 l:001d8c d:000005 BLOCK C:/projekte/tools/code/animation/AnimationConverter/helpers/lace/lib/lace/compilerbase.rb:221
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP
---------------------------
-- Ruby level backtrace information-----------------------------------------
C:/projekte/tools/code/animation/AnimationConverter/helpers/lace/lib/lace/compilerbase.rb:200:in `read'
C:/projekte/tools/code/animation/AnimationConverter/helpers/lace/lib/lace/compilerbase.rb:200:in `check_optimized_dependencies'
C:/projekte/tools/code/shared/modules_compiler/compiler/win32/msvc/vc13106030/msvcbase.def:104:in `compile'
C:/projekte/tools/code/animation/AnimationConverter/helpers/lace/lib/lace/compilerbase.rb:282:in `block (2 levels) in process_files'
C:/projekte/tools/code/animation/AnimationConverter/helpers/lace/lib/lace/compilerbase.rb:269:in `loop'
C:/projekte/tools/code/animation/AnimationConverter/helpers/lace/lib/lace/compilerbase.rb:269:in `block in process_files'
C:/projekte/tools/code/animation/AnimationConverter/helpers/lace/lib/lace/compilerbase.rb:221:in `block (2 levels) in threaded'
[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

This is in a File.read call.
I have then wrapped this File.read in a mutex and now get (less frequently):

C:/projekte/xxx/code_buildmachine/local/helpers/lace/lib/lace/dependencies.rb:31: [BUG] Das Handle ist ung続ltig. 
ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mswin32] 
-- control frame ---------- 
c:0018 p:---- s:0066 b:0065 l:000064 d:000064 CFUNC  :expand_path 
c:0017 p:0027 s:0061 b:0061 l:000043 d:000060 BLOCK  C:/projekte/xxx/code_buildmachine/local/helpers/lace/lib/lace/dependencies.rb:31 
c:0016 p:---- s:0058 b:0058 l:000057 d:000057 FINISH 
c:0015 p:---- s:0056 b:0056 l:000055 d:000055 CFUNC  :each 
c:0014 p:0029 s:0053 b:0053 l:000043 d:000052 BLOCK  C:/projekte/xxx/code_buildmachine/local/helpers/lace/lib/lace/dependencies.rb:30 
c:0013 p:---- s:0049 b:0049 l:000048 d:000048 FINISH 
c:0012 p:---- s:0047 b:0047 l:000046 d:000046 CFUNC  :map 
c:0011 p:0016 s:0044 b:0044 l:000043 d:000043 METHOD C:/projekte/xxx/code_buildmachine/local/helpers/lace/lib/lace/dependencies.rb:28 
c:0010 p:0379 s:0038 b:0038 l:001608 d:000aec BLOCK  C:/projekte/xxx/code_buildmachine/stable/modules_compilers/compiler/xb360/module.lace:61 
c:0009 p:0070 s:0028 b:0028 l:000027 d:000027 METHOD C:/projekte/xxx/code_buildmachine/local/helpers/lace/lib/lace/compilerbase.rb:202 
c:0008 p:0043 s:0022 b:0022 l:001608 d:001608 METHOD C:/projekte/xxx/code_buildmachine/stable/modules_compilers/compiler/xb360/module.lace:18 
c:0007 p:0185 s:0016 b:0016 l:000e40 d:000015 BLOCK  C:/projekte/xxx/code_buildmachine/local/helpers/lace/lib/lace/compilerbase.rb:283 
c:0006 p:---- s:0013 b:0013 l:000012 d:000012 FINISH 
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC  :loop 
c:0004 p:0009 s:0008 b:0008 l:000e40 d:000007 BLOCK  C:/projekte/xxx/code_buildmachine/local/helpers/lace/lib/lace/compilerbase.rb:270 
c:0003 p:0007 s:0006 b:0006 l:002074 d:000005 BLOCK  C:/projekte/xxx/code_buildmachine/local/helpers/lace/lib/lace/compilerbase.rb:222 
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP   
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH 

Ie. the same error in a File.expand_path. ("Das Handle ist ung続ltig." translates to "The handle is invalid.") This was tested on Windows XP.


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

In This Thread

Prev Next