From: nagachika00@... Date: 2017-01-16T19:08:12+00:00 Subject: [ruby-core:79094] [Ruby trunk Bug#12974] Marshal.dump dumps core. Issue #12974 has been updated by Tomoyuki Chikanaga. Backport changed from 2.1: REQUIRED, 2.2: DONE, 2.3: REQUIRED to 2.1: REQUIRED, 2.2: DONE, 2.3: DONE ruby_2_3 r57343 merged revision(s) 56894. ---------------------------------------- Bug #12974: Marshal.dump dumps core. https://bugs.ruby-lang.org/issues/12974#change-62501 * Author: Shyouhei Urabe * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.4.0dev (2016-11-24 trunk 56892) [x86_64-darwin15] * Backport: 2.1: REQUIRED, 2.2: DONE, 2.3: DONE ---------------------------------------- ```ruby Hash.include Module.new { def marshal_dump dup end def marshal_load this initialize_copy this end } p Marshal.load(Marshal.dump(foo:"bar")) ``` This script dumps core. -- https://bugs.ruby-lang.org/ Unsubscribe: