From: usa@... Date: 2016-12-27T10:11:53+00:00 Subject: [ruby-core:78862] [Ruby trunk Bug#12974] Marshal.dump dumps core. Issue #12974 has been updated by Usaku NAKAMURA. Backport changed from 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: REQUIRED, 2.2: DONE, 2.3: REQUIRED ruby_2_2 r57211 merged revision(s) 56894. ---------------------------------------- Bug #12974: Marshal.dump dumps core. https://bugs.ruby-lang.org/issues/12974#change-62269 * 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: REQUIRED ---------------------------------------- ```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: