Project

General

Profile

Actions

Bug #817

closed

SystemStackError後のrescue

Added by wanabe (_ wanabe) over 15 years ago. Updated almost 13 years ago.

Status:
Rejected
Target version:
-
ruby -v:
Backport:
[ruby-dev:37258]

Description

=begin
スタックがあふれた後に例外が捕捉される位置がおかしくなるように思います。

$ ./ruby -ve '
def foo
foo
rescue SystemStackError
raise RuntimeError
rescue RuntimeError
puts "ng"
end
foo rescue puts "ok"
'
ruby 1.9.0 (2008-12-01 revision 20433) [i386-mingw32]
ng
=end

Actions #1

Updated by ko1 (Koichi Sasada) over 15 years ago

  • Assignee set to ko1 (Koichi Sasada)

=begin

=end

Actions #2

Updated by wanabe (_ wanabe) over 15 years ago

=begin
すみません、もう一度考えてみたら
最内のRuntimeErrorをその1つ上の階層のfooのrescueが拾っているだけなので
全く正しい挙動だったことに気がつきました。
お手数ですがrejectお願いします。
=end

Actions #3

Updated by matz (Yukihiro Matsumoto) over 15 years ago

  • Status changed from Open to Rejected

=begin
rejected as requested by the original poster.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0