Project

General

Profile

Actions

Bug #20042

closed

ObjectSpace finalizer can cause segfault

Added by ioquatix (Samuel Williams) 12 months ago. Updated 10 months ago.

Status:
Closed
Target version:
-
[ruby-core:115594]

Description

class Finalizer
  def call # <- missing (id) argument
  end
end

object = Object.new
ObjectSpace.define_finalizer(object, Finalizer.new)
object = nil

GC.start # segfaults here
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0