Project

General

Profile

Actions

Bug #8254

closed

Ruby segfaults on second SystemStackError from parser

Added by Anonymous about 11 years ago. Updated about 11 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin11.4.0]
Backport:
[ruby-core:54175]

Description

=begin
When the parser overflows the stack, it raises SystemStackError.

The second time this happens, Ruby segfaults.

Code sample:

n = 10_000 # adjust for your platform
begin
  eval "1+" * n + "1"
rescue SystemStackError
  eval "1+" * n + "1"
end

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0