[MacRuby-devel] [MacRuby] #724: malloc warning with bookmarkDataWithContentsOfURL on aliases
MacRuby
ruby-noreply at macosforge.org
Tue May 25 17:15:46 PDT 2010
#724: malloc warning with bookmarkDataWithContentsOfURL on aliases
-----------------------------+----------------------------------------------
Reporter: tvmoore@… | Owner: lsansonetti@…
Type: defect | Status: closed
Priority: minor | Milestone: MacRuby 0.6
Component: MacRuby | Resolution: invalid
Keywords: |
-----------------------------+----------------------------------------------
Changes (by martinlagardette@…):
* status: new => closed
* resolution: => invalid
Comment:
This is a bug in the OS actually:
{{{
$> cat t.m
#import <Foundation/Foundation.h>
int main(void)
{
NSURL *url = [NSURL fileURLWithPath:@"/tmp/test"];
NSData *data = [NSURL bookmarkDataWithContentsOfURL:url error:nil];
printf("-> %p\n", data);
return 0;
}
$> gcc /tmp/t.m -o /tmp/t -framework Foundation -fobjc-gc
$> ./t
t(61211,0x7fff70982be0) malloc: reference count underflow for 0x20000f580,
break on auto_refcount_underflow_error to debug.
-> 0x20000f540
$>
}}}
Well I say bug, but it's just a simple warning. It has been reported
anyway :-).
--
Ticket URL: <http://www.macruby.org/trac/ticket/724#comment:4>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list