Project

General

Profile

Bug #7461

Deadlock

Added by zenspider (Ryan Davis) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
2.0
Backport:
[ruby-core:50284]

Description

When I try to update minitest in trunk and run my tests I get the following error:

% ./miniruby -I./lib ./tool/runruby.rb --extout=.ext -- -Itest test/minitest/test_minitest_unit.rb
Run options: --seed 61066

Running tests:

...............................................................................................................S....................../Users/ryan/Work/svn/ruby/ruby/lib/minitest/parallel_each.rb:34:in join': No live threads left. Deadlock? from /Users/ryan/Work/svn/ruby/ruby/lib/minitest/parallel_each.rb:34:inmap'
from /Users/ryan/Work/svn/ruby/ruby/lib/minitest/parallel_each.rb:34:in each'
from /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:898:in
map'
from /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:898:in _run_suites'
from /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:867:in
_run_anything'
from /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:1060:in run_tests'
from /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:1047:in
block in _run'
from /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:1046:in each'
from /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:1046:in
_run'
from /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:1035:in run'
from /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:789:in
block in autorun'
rake aborted!
Command failed with status (1): [./miniruby -I./lib ./tool/runruby.rb --ex...]

We've inspected the code and don't see how/why this is happening on our side. This can be repro'd against git clone git://github.com/seattlerb/minitest.git or even gem unpack minitest. I believe this is related to the other thread bugs we've seen but it is harder for us to track down.

This is preventing me from merging to trunk.

Updated by zenspider (Ryan Davis) over 7 years ago

I double checked and r37921 runs clean.

Updated by zenspider (Ryan Davis) over 7 years ago

Sorry. No. 37921 is the first bad. 37920 runs clean.

Updated by zenspider (Ryan Davis) over 7 years ago

"minimal" reproduction:

require 'minitest/metametameta'

class TestMiniTestUnit < MetaMetaMetaTestCase
parallelize_me!
end

thanks to ko1 for the reduction.

Updated by kosaki (Motohiro KOSAKI) over 7 years ago

  • Status changed from Open to Closed

fixed at r37964

Also available in: Atom PDF