Issue #4992 has been reported by Shota Fukumori.

----------------------------------------
Bug #4992: finalizer中のThread.newでSEGV
http://redmine.ruby-lang.org/issues/4992

Author: Shota Fukumori
Status: Open
Priority: Normal
Assignee: 
Category: core
Target version: 
ruby -v: ruby 1.9.3dev (2011-07-05 trunk 32413) [x86_64-darwin10.8.0]


以下のようなコードを実行するとSEGVします.

$ ruby -e'ObjectSpace.define_finalizer(""){Thread.new{}}'  
$ ruby -e'ObjectSpace.define_finalizer(""){Thread.new{}}'
SEGV received in SEGV handler
$ ruby -e'ObjectSpace.define_finalizer(""){2.times{Thread.new{}}}'
SEGV received in SEGV handler
$ ruby -e'ObjectSpace.define_finalizer(""){2.times{Thread.new{}}}'
SEGV received in SEGV handler


2.timesをつけるとほぼ確実,つけないと2回に1回くらいの割合で再現します.


-- 
http://redmine.ruby-lang.org