Project

General

Profile

Bug #9440

Calling methods on a `Queue.new.dup` or `Queue.new.clone` causes Segfault

Added by shan (Shannon Skipper) almost 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
2.1.0p0
Backport:
[ruby-core:59961]

Description

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.


Related issues

Related to Ruby master - Bug #10485: NoMethodError "undefined method `initialize_copy'" when trying to execute Queue#dupClosedActions

Associated revisions

Revision 06d2e8aa
Added by nobu (Nobuyoshi Nakada) almost 6 years ago

thread/thread.c: no dup

  • ext/thread/thread.c (Init_thread): ConditionVariable and Queue are not able to copy. [ruby-core:59961] [Bug #9440]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 44681
Added by nobu (Nobuyoshi Nakada) almost 6 years ago

thread/thread.c: no dup

  • ext/thread/thread.c (Init_thread): ConditionVariable and Queue are not able to copy. [ruby-core:59961] [Bug #9440]

Revision 44681
Added by nobu (Nobuyoshi Nakada) almost 6 years ago

thread/thread.c: no dup

  • ext/thread/thread.c (Init_thread): ConditionVariable and Queue are not able to copy. [ruby-core:59961] [Bug #9440]

Revision 44681
Added by nobu (Nobuyoshi Nakada) almost 6 years ago

thread/thread.c: no dup

  • ext/thread/thread.c (Init_thread): ConditionVariable and Queue are not able to copy. [ruby-core:59961] [Bug #9440]

Revision 44681
Added by nobu (Nobuyoshi Nakada) almost 6 years ago

thread/thread.c: no dup

  • ext/thread/thread.c (Init_thread): ConditionVariable and Queue are not able to copy. [ruby-core:59961] [Bug #9440]

Revision 44681
Added by nobu (Nobuyoshi Nakada) almost 6 years ago

thread/thread.c: no dup

  • ext/thread/thread.c (Init_thread): ConditionVariable and Queue are not able to copy. [ruby-core:59961] [Bug #9440]

Revision 44681
Added by nobu (Nobuyoshi Nakada) almost 6 years ago

thread/thread.c: no dup

  • ext/thread/thread.c (Init_thread): ConditionVariable and Queue are not able to copy. [ruby-core:59961] [Bug #9440]

Revision 410699b9
Added by nagachika (Tomoyuki Chikanaga) over 4 years ago

merge revision(s) r44681: [Backport #9440]

    * ext/thread/thread.c (Init_thread): ConditionVariable and Queue
      are not able to copy.  [ruby-core:59961] [Bug #9440]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@50044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 50044
Added by nagachika (Tomoyuki Chikanaga) over 4 years ago

merge revision(s) r44681: [Backport #9440]

* ext/thread/thread.c (Init_thread): ConditionVariable and Queue
  are not able to copy.  [ruby-core:59961] [Bug #9440]

History

Updated by nobu (Nobuyoshi Nakada) almost 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]

Updated by nobu (Nobuyoshi Nakada) about 5 years ago

  • Backport changed from 2.1: UNKNOWN to 2.1: REQUIRED

Updated by nobu (Nobuyoshi Nakada) about 5 years ago

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

Updated by nagachika (Tomoyuki Chikanaga) over 4 years ago

  • Backport changed from 2.1: REQUIRED to 2.1: DONE

Backported into ruby_2_1 at r50044.

Also available in: Atom PDF