Project

General

Profile

Actions

Bug #4992

closed

finalizer中のThread.newでSEGV

Added by sorah (Sorah Fukumori) over 13 years ago. Updated about 2 years ago.

Status:
Closed
Target version:
ruby -v:
-
Backport:
[ruby-core:37858]

Description

以下のようなコードを実行すると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回くらいの割合で再現します.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0