[ruby-core:77157] [Ruby trunk Bug#12727] Segfault when subclassing Thread
From:
gregory.t.brown@...
Date:
2016-09-06 12:28:33 UTC
List:
ruby-core #77157
Issue #12727 has been reported by Gregory Brown.
----------------------------------------
Bug #12727: Segfault when subclassing Thread
https://bugs.ruby-lang.org/issues/12727
* 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>