From: nobu@... Date: 2018-05-05T02:46:06+00:00 Subject: [ruby-core:86883] [Ruby trunk Bug#14738] Failed to load_from_binary on 2.5.1 Issue #14738 has been updated by nobu (Nobuyoshi Nakada). `"extra_data"` is not necessary. ---------------------------------------- Bug #14738: Failed to load_from_binary on 2.5.1 https://bugs.ruby-lang.org/issues/14738#change-71845 * Author: znz (Kazuhiro NISHIYAMA) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17] * Backport: 2.3: DONTNEED, 2.4: DONTNEED, 2.5: REQUIRED ---------------------------------------- ``` % cat /tmp/1226.rb iseq = RubyVM::InstructionSequence.compile('num = 1 + 2') binary = iseq.to_binary("extra_data") p RubyVM::InstructionSequence.load_from_binary(binary).eval # => 3 % ruby -v /tmp/1226.rb ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17] :1: warning: assigned but unused variable - num Traceback (most recent call last): 1: from /tmp/1226.rb:3:in `
' /tmp/1226.rb:3:in `load_from_binary': wrong argument type nil (expected String) (TypeError) ``` rubyfarm-bisect says first bad commit is [r58979](https://github.com/ruby/ruby/commit/478003f6df40dc79d33c6ec86919f2dde07284be). It seems trunk is aleady fixed. -- https://bugs.ruby-lang.org/ Unsubscribe: