From: nagachika00@... Date: 2014-02-22T05:01:03+00:00 Subject: [ruby-core:60970] [ruby-trunk - Bug #9455] Blocks do not round-trip properly through ISeq dump/load Issue #9455 has been updated by Tomoyuki Chikanaga. Backport changed from 1.9.3: DONTNEED, 2.0.0: REQUIRED, 2.1: DONE to 1.9.3: DONTNEED, 2.0.0: DONE, 2.1: DONE r44720 was backported to ruby_2_0_0 at r45106. ---------------------------------------- Bug #9455: Blocks do not round-trip properly through ISeq dump/load https://bugs.ruby-lang.org/issues/9455#change-45373 * Author: Charlie Somerville * Status: Closed * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: trunk * Backport: 1.9.3: DONTNEED, 2.0.0: DONE, 2.1: DONE ---------------------------------------- Blocks passed to methods do not round-trip properly when dumped with RubyVM::InstructionSequence#to_a and then loaded again with rb_iseq_load. This is because iseq_data_to_ary in iseq.c stores serialized blocks under the :blockptr key (https://github.com/ruby/ruby/blob/trunk/iseq.c#L1813), but expects them to be stored in the :block key when loading them back up (https://github.com/ruby/ruby/blob/trunk/compile.c#L5811). This affects trunk, 2.1.0 and 2.0.0. -- http://bugs.ruby-lang.org/