From: "ko1 (Koichi Sasada)" <redmine@...>
Date: 2012-12-25T16:42:54+09:00
Subject: [ruby-core:51123] [ruby-trunk - Bug #7592] Can not continue after SystemStackError


Issue #7592 has been updated by ko1 (Koichi Sasada).


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?

----------------------------------------
Bug #7592: Can not continue after SystemStackError
https://bugs.ruby-lang.org/issues/7592#change-35056

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


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



-- 
http://bugs.ruby-lang.org/