[MacRuby-devel] Memory allocation problem

Laurent Sansonetti lsansonetti at apple.com
Fri Feb 13 17:08:54 PST 2009


Hi Dave,

Could you file a bug on the tracker regarding this problem?

Thanks in advance,
Laurent

On Feb 13, 2009, at 5:51 AM, Dave Baldwin wrote:

> 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.
>
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



More information about the MacRuby-devel mailing list