[ruby-core:78289] [Ruby trunk Bug#12974] Marshal.dump dumps core.
From:
shyouhei@...
Date:
2016-11-24 09:42:22 UTC
List:
ruby-core #78289
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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>