Calling methods on a `Queue.new.dup` or `Queue.new.clone` causes Segfault
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.
Updated by nobu (Nobuyoshi Nakada) over 6 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
Applied in changeset r44681.
thread/thread.c: no dup
- ext/thread/thread.c (Init_thread): ConditionVariable and Queue are not able to copy. [ruby-core:59961] [Bug #9440]