[ruby-core:112772] [Ruby master Bug#9366] "make -j32 check TESTS=-j32" occasionally fails on rubygems/specification
From:
"hsbt (Hiroshi SHIBATA) via ruby-core" <ruby-core@...>
Date:
2023-03-09 08:56:46 UTC
List:
ruby-core #112772
Issue #9366 has been updated by hsbt (Hiroshi SHIBATA).
Status changed from Assigned to Feedback
@normalperson Do you still have this issue?
----------------------------------------
Bug #9366: "make -j32 check TESTS=-j32" occasionally fails on rubygems/specification
https://bugs.ruby-lang.org/issues/9366#change-102267
* Author: normalperson (Eric Wong)
* Status: Feedback
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* ruby -v: ruby 2.2.0dev (2014-01-05 trunk 44507) [x86_64-linux]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
This only happens occasionally, maybe 1 out of 10 times during "make check",
so it's probably a bug somewhere with GC.
I'll try to reproduce without parallel tests (could take a while).
It seems to reproduce more easily on slower machine.
I initially thought it was a bug in cachelined, but I can also reproduce it with plain trunk.
/home/ew/ruby/lib/rubygems/specification.rb:748:in `block in _resort!': undefined method `name' for nil:NilClass (NoMethodError)
/home/ew/ruby/lib/rubygems/specification.rb:747:in `sort!'
/home/ew/ruby/lib/rubygems/specification.rb:747:in `_resort!'
/home/ew/ruby/lib/rubygems/specification.rb:699:in `_all'
/home/ew/ruby/lib/rubygems/specification.rb:882:in `each'
/home/ew/ruby/lib/rubygems/dependency.rb:284:in `find_all'
/home/ew/ruby/lib/rubygems/dependency.rb:284:in `to_specs'
/home/ew/ruby/lib/rubygems/dependency.rb:309:in `to_spec'
/home/ew/ruby/lib/rubygems/core_ext/kernel_gem.rb:53:in `gem'
/home/ew/ruby/lib/rubygems/package_task.rb:25:in `<top (required)>'
/home/ew/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/ew/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/ew/ruby/test/rubygems/test_gem_package_task.rb:3:in `<top (required)>'
/home/ew/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/ew/ruby/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/ew/ruby/lib/test/unit/parallel.rb:114:in `run'
/home/ew/ruby/lib/test/unit/parallel.rb:183:in `<main>'
Some worker was crashed. It seems ruby interpreter's bug
or, a bug of test/unit/parallel.rb. try again without -j
option.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/