Bug #7592

Can not continue after SystemStackError

Added by Koichi Sasada over 1 year ago. Updated over 1 year ago.

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

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

History

#1 Updated by Masaya Tarui over 1 year ago

  • Status changed from Open to Assigned

#2 Updated by Koichi Sasada over 1 year 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?

#3 Updated by Koichi Sasada over 1 year ago

  • Status changed from Assigned to Closed

r38601 may solve this issue.

Also available in: Atom PDF