From: ko1@... Date: 2015-12-07T07:24:57+00:00 Subject: [ruby-core:71883] [Ruby trunk - Bug #11750] SEGV with Enumerator, yield and proc. Issue #11750 has been updated by Koichi Sasada. Assignee set to Koichi Sasada ---------------------------------------- Bug #11750: SEGV with Enumerator, yield and proc. https://bugs.ruby-lang.org/issues/11750#change-55287 * Author: Akira Tanaka * Status: Open * Priority: Normal * Assignee: Koichi Sasada * ruby -v: ruby 2.3.0dev (2015-11-29 trunk 52789) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- I found SEGV as follows. ``` % cat z.rb def f Enumerator.new {|y| 1000000.times { yield y.yield } } end def g x = proc {} f(&x) end e = g e.each {} % ./miniruby z.rb (snip) ``` ---Files-------------------------------- bug-11750.log (11.2 KB) -- https://bugs.ruby-lang.org/