Forum: Ruby-core [ruby-trunk - Bug #7592][Open] Can not continue after SystemStackError

Posted by ko1 (Koichi Sasada) (Guest)
on 2012-12-19 21:37
(Received via mailing list)
Issue #7592 has been reported by ko1 (Koichi Sasada).

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

Author: ko1 (Koichi Sasada)
Status: Open
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
Posted by ko1 (Koichi Sasada) (Guest)
on 2012-12-25 08:43
(Received via mailing list)
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
Posted by ko1 (Koichi Sasada) (Guest)
on 2012-12-25 14:31
(Received via mailing list)
Issue #7592 has been updated by ko1 (Koichi Sasada).

Status changed from Assigned to Closed

r38601 may solve this issue.

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

Author: ko1 (Koichi Sasada)
Status: Closed
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.