Bug #1963

redo'ing deadlock causes [BUG]

Added by usa (Usaku NAKAMURA) almost 3 years ago. Updated about 1 year ago.

[ruby-dev:39142]
Status:Closed Start date:08/20/2009
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:core
Target version:2.0.0
ruby -v:ruby 1.9.2dev (2009-08-20 trunk 24594) [i386-mswin32]

Description

#1951 に関係があるようなないような話ですが、以下のスクリプトが[BUG]で落ちます。
プラットフォーム依存はありません。

th = Thread.new{ Thread.stop }
1.times do
  begin
    Thread.stop
  ensure
    redo
  end
end

Related issues

related to ruby-trunk - Feature #1952: cannot stop with Ctrl+C Assigned 08/18/2009

Associated revisions

Revision 24616
Added by mame (Yusuke Endoh) almost 3 years ago

* thread.c (rb_check_deadlock): decrease number of sleepers before deadlock detection because the deadlock exception makes main thread run. [ruby-dev:39142]

History

Updated by mame (Yusuke Endoh) almost 3 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100
Applied in changeset r24616.

Also available in: Atom PDF