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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0