On Thu, Jul 16, 2009 at 3:42 PM, Pascal Terjan<redmine / ruby-lang.org> wrote:
> Bug #1785: ObjectSpace::define_finalizer on Fixnum segfaults with recent ruby
> http://redmine.ruby-lang.org/issues/show/1785
>
> Author: Pascal Terjan
> Status: Open, Priority: Normal
> ruby -v: ruby 1.8.7 (2009-06-12 patchlevel 174) [i586-linux]
>
> $ ruby -e 'ObjectSpace::define_finalizer(4, proc {})'
> -e:1:in `define_finalizer': cannot define finalizer for Fixnum (ArgumentError)
>  
> -e:1: [BUG] Segmentation fault
> ruby 1.8.7 (2009-06-12 patchlevel 174) [i586-linux]

I can confirm that this error occurs on 1.8.6 at least with pl368 and
up.  I have not had a chance to check other patch levels.


Kirk Haines