Project

General

Profile

Actions

Bug #7592

closed

Can not continue after SystemStackError

Added by ko1 (Koichi Sasada) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2012-12-20 trunk 38476) [x86_64-linux]
Backport:
[ruby-core:50989]

Description

The following code can not continue after next line where SystemStackError is raised.

def rec n=0
begin
rec n+1
p n # it works
rescue SystemStackError => e
p e
end
end

rec
p :end # this line doesn't work

Actions #1

Updated by tarui (Masaya Tarui) over 11 years ago

  • Status changed from Open to Assigned

Updated by ko1 (Koichi Sasada) over 11 years ago

This issue caused after r38331.

test.rb

def rec n=0
begin
rec n+1
rescue Exception
p n
exit!
end
end

rec

r38330:

./miniruby -I../trunk/lib -I. -I.ext/common ../trunk/test.rb
8732

r38331:

./miniruby -I../trunk/lib -I. -I.ext/common ../trunk/test.rb
../trunk/test.rb:2: SystemStackError

nobu, do you have any idea?

Updated by ko1 (Koichi Sasada) over 11 years ago

  • Status changed from Assigned to Closed

r38601 may solve this issue.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0