Project

General

Profile

Actions

Bug #8845

closed

Timeout::ExitException が意図せずに rescue される事がある

Added by takiuchi (Genki Takiuchi) over 10 years ago. Updated over 10 years ago.

Status:
Rejected
Assignee:
-
Target version:
ruby -v:
2.0.0
[ruby-core:56906]

Description

timeout.rb の実装が内部的に利用している Timeout::ExitException の無名派生クラスが、
意図しないタイミングで rescue され、timeout処理が実行されないケースがある。
以下の例では、Timeout::Error が発生しない。

timeout 1 do
begin
sleep 10
rescue Exception
end
end


Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #8730: "rescue Exception" rescues Timeout::ExitExceptionRejected08/04/2013Actions

Updated by sorah (Sorah Fukumori) over 10 years ago

  • Status changed from Open to Rejected

https://bugs.ruby-lang.org/issues/8730 と重複しているように思えます

Updated by sorah (Sorah Fukumori) over 10 years ago

  • Status changed from Rejected to Open

おおっと、ごめんなさい。勘違いだったようです…

Updated by takiuchi (Genki Takiuchi) over 10 years ago

すみません、重複ですね。
自分で削除する権限が無いので、削除いただけるとありがたいです。

Updated by sorah (Sorah Fukumori) over 10 years ago

  • Status changed from Open to Rejected

削除はできないので、閉じますね。
(勘違いの勘違いか…)

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0