From: "h.shirosaki (Hiroshi Shirosaki)" Date: 2012-11-08T18:27:03+09:00 Subject: [ruby-core:49091] [ruby-trunk - Bug #7304] Random test failures around test_autoclose_true_closed_by_finalizer Issue #7304 has been updated by h.shirosaki (Hiroshi Shirosaki). =begin I cannot reproduce above error. However, Bug #4168 and #5350 seem not solved. I got NoMethodError by the following script. WeakRef object has reference to different object from originally associated. % cat test_weakref.rb require "weakref" class Foo def foo; end end a = [] 1000.times do a << WeakRef.new(Foo.new) end a.each do |x| begin x.foo rescue WeakRef::RefError p :referr end end % ruby -v test_weakref.rb ruby 2.0.0dev (2012-11-08 trunk 37558) [i686-linux] test_weakref.rb:14:in `block in
': undefined method `foo' for [70032780]:WeakRef (NoMethodError) from test_weakref.rb:12:in `each' from test_weakref.rb:12:in `
' =end ---------------------------------------- Bug #7304: Random test failures around test_autoclose_true_closed_by_finalizer https://bugs.ruby-lang.org/issues/7304#change-32626 Author: luislavena (Luis Lavena) Status: Assigned Priority: Normal Assignee: ko1 (Koichi Sasada) Category: test Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-11-07 trunk 37538) [i386-mingw32] =begin Hello, Over the past few days I've seen on and off failures on RubyInstaller CI related to (({test_autoclose_true_closed_by_finalizer})): http://ci.rubyinstaller.org/job/ruby-trunk-x86-test-all/265/console 1) Error: test_autoclose_true_closed_by_finalizer(TestIO): NoMethodError: undefined method `close' for 2012-11-07 04:43:41 -0300:WeakRef C:/Users/Worker/Jenkins/workspace/ruby-trunk-x86-build/test/ruby/test_io.rb:1611:in `test_autoclose_true_closed_by_finalizer' This seems to happen when the system is under heavy load (because is running other jobs in parallel). This might be a hint of something not working properly under heavy load, perhaps the GC in effect. I was unable to produce the same failure on x64-mingw32, and haven't tried yet OSX or Linux. Any ideas? =end -- http://bugs.ruby-lang.org/