Issue #9589 has been updated by jeremyevans0 (Jeremy Evans).

Backport deleted (1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN)
Status changed from Open to Closed

From my testing with `class Object; define_method(:bar) {send(:bar)}; bar end`:

1.9-2.1: SystemStackError
2.2-2.4: segfault
2.5-master: SystemStackError

As this issue appears to have been fixed, closing.  If you can reproduce with a currently supported Ruby version, please post back here.

----------------------------------------
Bug #9589: Stack level too deep during eval causes segmentation fault
https://bugs.ruby-lang.org/issues/9589#change-81497

* Author: carlosayam (carlos aya)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 1.9.3
* Backport: 
----------------------------------------
The following silly code, which imho should generate a " stack level too deep (SystemStackError)", segfaults

$ echo 'eval($_)' | ruby -n -e 'eval($_)'

I thought it may be a bug, not sure.

My version:
carlos-mac$ ruby -v
ruby 1.9.3p327 (2012-11-10) [x86_64-darwin12.2.0]





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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>