Issue #12727 has been updated by Gregory Brown.

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

----------------------------------------
Bug #12727: Segfault when subclassing Thread with bad initialize
https://bugs.ruby-lang.org/issues/12727#change-60376

* Author: Gregory Brown
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 2.3.0p0
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
I imagine that this is a really unlikely problem to encounter in real code, but...

~~~ ruby
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.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>