[MacRuby-devel] [MacRuby] #617: Reopening Symbol Appears to Cause auto malloc[16067]: error for object 0x1016090b0: auto_zone_set_associative_ref

MacRuby ruby-noreply at macosforge.org
Wed Mar 24 17:18:31 PDT 2010


#617: Reopening Symbol Appears to Cause auto malloc[16067]: error for object
0x1016090b0: auto_zone_set_associative_ref
-------------------------------+--------------------------------------------
 Reporter:  cwdinfo@…          |       Owner:  lsansonetti@…        
     Type:  defect             |      Status:  new                  
 Priority:  blocker            |   Milestone:                       
Component:  MacRuby            |    Keywords:                       
-------------------------------+--------------------------------------------

Comment(by lsansonetti@…):

 As of trunk r3858, it fails like this:

 {{{
 $ cat t.rb
 class Symbol
   def eq
     @foo=42
   end
 end
 p :foo.eq
 $ ./miniruby t.rb
 miniruby(70683,0x7fff7056bc00) malloc: *** auto malloc[70683]: error for
 object 0x7ffee30ba270: auto_zone_set_associative_ref: object should point
 to a GC block or a global address, otherwise associations will leak. Break
 on auto_zone_association_error() to debug.
 42
 }}}

 This is because symbols are allocated from the regular malloc zone and
 cannot be used for associative references.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/617#comment:3>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list