Project

General

Profile

Bug #13699

Multiple maps over lazy enumerator yielding multiple values in 2.4.x causes crash

Added by alekstorm (Alek Storm) almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:81837]

Description

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.


Related issues

Is duplicate of Ruby master - Bug #13648: [PATCH] Nested map of Enumerator::Lazy with packed values gives wrong resultClosedActions

Also available in: Atom PDF