Bug #12727
closed
Segfault when subclassing Thread with bad initialize
Added by sandal (Gregory Brown) about 10 years ago.
Updated about 10 years ago.
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.
- Subject changed from Segfault when subclassing Thread to Segfault when subclassing Thread with bad initialize
- Is duplicate of Bug #11959: Segfault during `exit' in thread initialize (Extended class). added
- Status changed from Open to Rejected
Also available in: PDF
Atom