From: shyouhei@... Date: 2016-11-24T09:42:22+00:00 Subject: [ruby-core:78289] [Ruby trunk Bug#12974] Marshal.dump dumps core. Issue #12974 has been reported by Shyouhei Urabe. ---------------------------------------- Bug #12974: Marshal.dump dumps core. https://bugs.ruby-lang.org/issues/12974 * Author: Shyouhei Urabe * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.4.0dev (2016-11-24 trunk 56892) [x86_64-darwin15] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- ```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: