Project

General

Profile

Actions

Bug #12727

closed

Segfault when subclassing Thread with bad initialize

Added by sandal (Gregory Brown) about 8 years ago. Updated about 8 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 master - Bug #11959: Segfault during `exit' in thread initialize (Extended class).ClosedActions

Updated by sandal (Gregory Brown) about 8 years ago

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

Updated by nobu (Nobuyoshi Nakada) about 8 years ago

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

Updated by nobu (Nobuyoshi Nakada) about 8 years ago

  • Status changed from Open to Rejected
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0