[ruby-core:66130] [ruby-trunk - Bug #9440] Calling methods on a `Queue.new.dup` or `Queue.new.clone` causes Segfault

From: nobu@...
Date: 2014-11-07 11:53:26 UTC
List: ruby-core #66130
Issue #9440 has been updated by Nobuyoshi Nakada.

Related to Bug #10485: NoMethodError "undefined method `initialize_copy'" when trying to execute Queue#dup added

----------------------------------------
Bug #9440: Calling methods on a `Queue.new.dup` or `Queue.new.clone` causes Segfault
https://bugs.ruby-lang.org/issues/9440#change-49837

* Author: Shannon Skipper
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: lib
* Target version: 
* ruby -v: 2.1.0p0
* Backport: 2.1: REQUIRED
----------------------------------------
On all platforms with ruby-2.1.0 calling a Queue#method on a duped or cloned Queue results in a Segfault:

    queue = Queue.new.dup
    queue.empty? # Segfault

The same issue occurs when calling other Queue#methods.



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

In This Thread

Prev Next