Issue #13699 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.2: DONTNEED, 2.3: DONTNEED, 2.4: REQUIRED to 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE

ruby_2_4 r59363 merged revision(s) 59056.

----------------------------------------
Bug #13699: Multiple maps over lazy enumerator yielding multiple values in 2.4.x causes crash
https://bugs.ruby-lang.org/issues/13699#change-65839

* Author: alekstorm (Alek Storm)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE
----------------------------------------
~~~ ruby
Enumerator.new{|e| e.yield(5, 6)}.
  lazy.
  map{|x,y| 5}.
  map{|z| 5}.
  to_a
~~~

Tested and working in 2.1-2.3. Note that this is the absolute minimal input required to trigger the bug.



-- 
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>