Project

General

Profile

Actions

Bug #12727

closed

Segfault when subclassing Thread with bad initialize

Bug #12727: Segfault when subclassing Thread with bad initialize

Added by sandal (Gregory Brown) about 9 years ago. Updated about 9 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:77157]

Description

I imagine that this is a really unlikely problem to encounter in real code, but...

class MyThing < Thread
  def initialize
    raise
  end
end

MyThing.new do
  loop do
    puts "hello"
    sleep(1)
  end
end

sleep

Produces a segfault for me, and I've had someone else confirm as well.


Related issues 1 (0 open1 closed)

Is duplicate of Ruby - Bug #11959: Segfault during `exit' in thread initialize (Extended class).ClosedActions

Updated by sandal (Gregory Brown) about 9 years ago Actions #1 [ruby-core:77158]

  • Subject changed from Segfault when subclassing Thread to Segfault when subclassing Thread with bad initialize

Updated by nobu (Nobuyoshi Nakada) about 9 years ago Actions #2

  • Is duplicate of Bug #11959: Segfault during `exit' in thread initialize (Extended class). added

Updated by nobu (Nobuyoshi Nakada) about 9 years ago Actions #3 [ruby-core:77159]

  • Status changed from Open to Rejected
Actions

Also available in: PDF Atom