eval.c: no method calls at stack overflow

* eval.c (setup_exception): get rid of method calls before raising
  stack overflow, not to cause stack overflow again.
* defs/id.def: add IDs for backtraces.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-06-28 04:58:25 +00:00
parent 76bb597728
commit 3ff85b795a
5 changed files with 32 additions and 18 deletions

View file

@ -529,8 +529,10 @@ end.join
end
def test_stackoverflow
e = assert_raise(SystemStackError){m}
assert_operator(e.backtrace.size, :>, 10)
feature6216 = '[ruby-core:43794] [Feature #6216]'
e = assert_raise(SystemStackError, feature6216) {m}
level = e.backtrace.size
assert_operator(level, :>, 10, feature6216)
end
def test_machine_stackoverflow