Project

General

Profile

Actions

Bug #7460

closed

メインスレッド終了後のサブスレッド終了待ち処理においてデッドロック検知が動作していない

Added by kosaki (Motohiro KOSAKI) almost 12 years ago. Updated about 5 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby-trunk
[ruby-core:50281]

Description

[Bug #5368] からの派生なんですが、

Thread.new do
begin
p "sleep1"
sleep
p "sleep2"
ensure
p "stop1"
Thread.stop
p "stop2"
end
end

このスクリプトでデッドロック検知が動かないのはおかしいと思います。
要するに thread_terminate_all() でも vm->sleeperを増やせ、ということなのですが TAG_FATALの考慮漏れが複数箇所に
とっちらかってて、パッチはちょっときたない(添付参照)。くすん


Files

terminate_all-deadlock-check.patch (2.59 KB) terminate_all-deadlock-check.patch kosaki (Motohiro KOSAKI), 11/29/2012 10:02 AM

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しないClosedkosaki (Motohiro KOSAKI)Actions

Updated by kosaki (Motohiro KOSAKI) almost 12 years ago

  • Status changed from Open to Assigned
  • Assignee set to kosaki (Motohiro KOSAKI)

Updated by kosaki (Motohiro KOSAKI) almost 12 years ago

  • Category set to core
  • Target version set to 2.6
Actions #3

Updated by naruse (Yui NARUSE) almost 7 years ago

  • Target version deleted (2.6)
Actions #4

Updated by jeremyevans0 (Jeremy Evans) about 5 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0