From: nagachika00@...
Date: 2014-07-13T13:51:47+00:00
Subject: [ruby-core:63688] [ruby-trunk - Bug #9674] Segfault when marshaling	Queue

Issue #9674 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: DONTNEED, 2.1: REQUIRED to 2.0.0: DONTNEED, 2.1: DONE

Backported into `ruby_2_1` branch at r46805.

----------------------------------------
Bug #9674: Segfault when marshaling Queue
https://bugs.ruby-lang.org/issues/9674#change-47740

* Author: Peter Suschlik
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
* Backport: 2.0.0: DONTNEED, 2.1: DONE
----------------------------------------
Marshaling `Queue` segfaults on ruby 2.1.1p76 (see attachment)

<pre>
ruby -e 'Marshal.dump(Queue.new)'
</pre>

(It also segfaults for `ruby 2.2.0dev (2014-03-25 trunk 45407) [x86_64-linux]`)

This core dump occurs when using `RindgyDingy` with `DRb` which marshals `Queue`.


On Ruby `ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux]` it failed with:

<pre>
$ ruby -e 'Marshal.dump(Queue.new)' 
-e:1:in `dump': no _dump_data is defined for class Mutex (TypeError)
        from -e:1:in `<main>'
</pre>

---Files--------------------------------
marshal_dump_queue-2.1.1.txt (11.2 KB)
marshal_dump_queue-2.2.0.txt (11 KB)


-- 
https://bugs.ruby-lang.org/