#617: Reopening Symbol Appears to Cause auto malloc[16067]: error for object
0x1016090b0: auto_zone_set_associative_ref
-------------------------------+--------------------------------------------
Reporter: cwdi...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
-------------------------------+--------------------------------------------
Comment(by lsansone...@…):
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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel