General

Profile

carlosayam (carlos aya)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

03/05/2014

07:01 AM Ruby Bug #9589: Stack level too deep during eval causes segmentation fault
Interesting, I searched the rspec-core code and it uses instance_eval/class_eval. That prompted me to try these faulty snippets...
`b = Proc.new do
b.instance_eval(&b)
end
b.instance_eval(&b)
`
and this one too...
`b = Proc...
carlosayam (carlos aya)

03/04/2014

12:16 AM Ruby Bug #9589 (Closed): Stack level too deep during eval causes segmentation fault
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...
carlosayam (carlos aya)

Also available in: Atom