[MacRuby-devel] Memory allocation problem

Dave Baldwin dave.baldwin at dsl.pipex.com
Fri Feb 13 05:51:02 PST 2009


Here is a simple test case to show the problem.

macirb
 >> str = [10].pack('N').unpack('g')[0].to_s
macruby(29176,0x7fff70513720) malloc: *** free() called with  
0x8004a5c60 with refcount 0
macruby(29176,0x7fff70513720) malloc: reference count underflow for  
0x8004a5c60, break on auto_refcount_underflow_error to debug.
macruby(29176,0x7fff70513720) malloc: *** free() called with  
0x8004a5c40 with refcount 0
macruby(29176,0x7fff70513720) malloc: reference count underflow for  
0x8004a5c40, break on auto_refcount_underflow_error to debug.
=> "1.40129846432482e-44"

macruby -v
MacRuby version 0.4 (ruby 1.9.0 2008-06-03) [universal-darwin9.0,  
x86_64]

Taken from trunk on 30 Jan 09.

Dave.




More information about the MacRuby-devel mailing list