Project

General

Profile

Actions

Backport #1785

closed

ObjectSpace::define_finalizer on Fixnum segfaults with recent ruby

Added by pterjan (Pascal Terjan) almost 15 years ago. Updated about 13 years ago.


Description

=begin
$ ruby -e 'ObjectSpace::define_finalizer(4, proc {})'
-e:1:in `define_finalizer': cannot define finalizer for Fixnum (ArgumentError)
from -e:1
-e:1: [BUG] Segmentation fault
ruby 1.8.7 (2009-06-12 patchlevel 174) [i586-linux]

Abandon

It does not give error and does not crash on my other machine with ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0