Bug #6272

Rinda sticks on some tests

Added by Yui NARUSE about 3 years ago. Updated almost 3 years ago.

[ruby-dev:45498]
Status:Closed
Priority:Normal
Assignee:Masatoshi Seki
ruby -v:ruby 2.0.0dev (2012-04-08 trunk 35259) [x86_64-freebsd9.0] Backport:

Description

Rindaが例えば以下のようにすると刺さります。

while [ yes ];do;make test-all TESTS='-v -n test_ruby_talk_264062 rinda/test_rinda.rb' RUBYOPT=-w;done

しばらく追ってみたところ、Rinda は Monitor#synchronize をすることで同期を守っているのですが、
そのテストでは時刻を Rinda::MockClock で扱い、その中で Rinda::MockClock::MyTS を用いて時刻を配信しているのですが、
この TupleSpace は複数のスレッドから触られるため、同一のスレッドからなら何度入ってもロックしない
Monitor#synchronize でも、デッドロックしてしまうからっぽい気がします。

Associated revisions

Revision 35417
Added by Masatoshi Seki almost 3 years ago

  • test/rinda/test_rinda.rb: fix sticks on some testsf problem [Bug #6272]

Revision 35417
Added by Masatoshi Seki almost 3 years ago

  • test/rinda/test_rinda.rb: fix sticks on some testsf problem [Bug #6272]

History

#1 Updated by Masatoshi Seki almost 3 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r35417.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • test/rinda/test_rinda.rb: fix sticks on some testsf problem [Bug #6272]

Also available in: Atom PDF