[MacRuby-devel] Memory allocation problem

Laurent Sansonetti lsansonetti at apple.com
Sat Feb 14 13:18:15 PST 2009


Thanks Dave, et bon voyage ! :-)

It also seems that #pack and #unpack regressed in trunk. I will have  
to investigate that.

$ ./miniruby test/ruby/test_array.rb
Loaded suite test/ruby/test_array
Started
............................................................................F 
..............................................
Finished in 1.660112 seconds.

   1) Failure:
test_pack(TestArray) [test/ruby/test_array.rb:889]:
< 
"1 
:-100:127:128:32767:9.87654321098:12345:123456:-32767:-123456:abcdef">  
expected but was
<"1:-61:0:127:132:4.29614751121884e 
+27:-1077763902:809058339:0:-8880252940705414336:\xC2\xBF\x1D\xCB\x9B 
\xCB">.

123 tests, 955 assertions, 1 failures, 0 errors

Laurent

On Feb 14, 2009, at 1:50 AM, Dave Baldwin wrote:
>
> On 14 Feb 2009, at 09:18, Dave Baldwin wrote:
>
>> Hi Laurent,
>>
>> Tried registering a couple of times but no registration email has  
>> arrived and log in failed.  I am just about to go on vacation for a  
>> week (to France!) so I'll have to look into it when I get back,  
>> unless you would be so kind an make the ticket yourself.
>
> Sorted - span filter grabbing registration email.
>
> Dave.
>>
>>
>> Dave.
>>
>>
>> On 14 Feb 2009, at 01:08, Laurent Sansonetti wrote:
>>
>>> 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
>>>
>>> _______________________________________________
>>> MacRuby-devel mailing list
>>> MacRuby-devel at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
> _______________________________________________
> 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