• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSString and Leaks Instrument, False Positives?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString and Leaks Instrument, False Positives?


  • Subject: Re: NSString and Leaks Instrument, False Positives?
  • From: Kevin Ross <email@hidden>
  • Date: Sat, 21 Mar 2009 16:56:38 -0700

Ummm....  Here is some truncated output from the command line leaks:

Leak: 0x15fd4970 size=32 instance of 'NSCFString', type ObjC, implemented in CoreFoundation
0xa00664a0 0x0100078c 0x5354410e 0x65755120 .d.......ATS Que
0x50207972 0x0074726f 0x00000000 0x00000000 ry Port.........
Leak: 0x15fd4990 size=32 instance of 'NSCFString', type ObjC, implemented in CoreFoundation
0xa00664a0 0x0100078c 0x5354410e 0x65755120 .d.......ATS Que
0x50207972 0x0074726f 0x00000000 0x00000000 ry Port.........
Leak: 0x15fd49c0 size=32 instance of 'NSCFString', type ObjC, implemented in CoreFoundation
0xa00664a0 0x0100078c 0x5354410e 0x65755120 .d.......ATS Que
0x50207972 0x0074726f 0x00000000 0x00000000 ry Port.........
Leak: 0x15fd49e0 size=32 instance of 'NSCFString', type ObjC, implemented in CoreFoundation
0xa00664a0 0x0100078c 0x5354410e 0x65755120 .d.......ATS Que
0x50207972 0x0074726f 0x00000000 0x00000000 ry Port.........
Leak: 0x15fd4a00 size=32 instance of 'NSCFString', type ObjC, implemented in CoreFoundation
0xa00664a0 0x0100078c 0x5354410e 0x65755120 .d.......ATS Que
0x50207972 0x0074726f 0x00000000 0x00000000 ry Port.........
Leak: 0x15fd4a20 size=32 instance of 'NSCFString', type ObjC, implemented in CoreFoundation
0xa00664a0 0x0100078c 0x5354410e 0x65755120 .d.......ATS Que
0x50207972 0x0074726f 0x00000000 0x00000000 ry Port.........
Leak: 0x15fd4a40 size=32 instance of 'NSCFString', type ObjC, implemented in CoreFoundation
0xa00664a0 0x0100078c 0x5354410e 0x65755120 .d.......ATS Que
0x50207972 0x0074726f 0x00000000 0x00000000 ry Port.........
Leak: 0x15fd4a60 size=32 instance of 'NSCFString', type ObjC, implemented in CoreFoundation
0xa00664a0 0x0100078c 0x5354410e 0x65755120 .d.......ATS Que
0x50207972 0x0074726f 0x00000000 0x00000000 ry Port.........
Leak: 0x15fd4a80 size=32 instance of 'NSCFString', type ObjC, implemented in CoreFoundation
0xa00664a0 0x0100078c 0x5354410e 0x65755120 .d.......ATS Que
0x50207972 0x0074726f 0x00000000 0x00000000 ry Port.........
Leak: 0x15fd4ac0 size=32 instance of 'NSCFString', type ObjC, implemented in CoreFoundation
0xa00664a0 0x0100078c 0x5354410e 0x65755120 .d.......ATS Que
0x50207972 0x0074726f 0x00000000 0x00000000 ry Port.........



Is that what you are asking about?



Kevin



On Mar 21, 2009, at 4:51 PM, mm w wrote:

be careful with clang, sometimes is missing point,
your problem is coming not from this @"Arial Bold",
give the complete stack and explain what is the condition of the leak

False/positive: I have an extensive use of perf tools since years and
I didn't see that since a while
the leak can be deeper than your app === give the complete stack- trace


On Sat, Mar 21, 2009 at 4:43 PM, Kevin Ross <email@hidden> wrote:
Whoops, I thought that I'd also mention that I've run the code though the
clang static analyzer and it doesn't report that there are any bugs. I'm
also happy to post more code if it will help.


Thanks again!

Kevin


On Mar 21, 2009, at 4:36 PM, Kevin Ross wrote:

Hi everyone, I'm auditing my app and the both the "leaks" command line
tool and the Instruments tool are both reporting that I have NSString leaks.
All of the leaks are coming from code similar to the following:


NSFont *ageStarTextFont = [NSFont fontWithName:@"Arial Bold"
size:KRLesserDimensionOfRect(transientDrawingRect)/3];

I'm guessing that the string in question is the @"Arial Bold" since it
that is the only string on that line, but from what I understand a string
created like that doesn't require a -release message. Could these be false
positives generated by the leaks tool, or is there something that I'm
missing?


Thanks for any pointers!


Kevin Ross

Twenty-Four Mountains
Mac Feng Shui Software
email@hidden
twentyfourmountains.com


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




-- -mmw


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSString and Leaks Instrument, False Positives?
      • From: Bill Bumgarner <email@hidden>
References: 
 >NSString and Leaks Instrument, False Positives? (From: Kevin Ross <email@hidden>)
 >Re: NSString and Leaks Instrument, False Positives? (From: Kevin Ross <email@hidden>)
 >Re: NSString and Leaks Instrument, False Positives? (From: mm w <email@hidden>)

  • Prev by Date: Re: NSString and Leaks Instrument, False Positives?
  • Next by Date: Re: NSString and Leaks Instrument, False Positives?
  • Previous by thread: Re: NSString and Leaks Instrument, False Positives?
  • Next by thread: Re: NSString and Leaks Instrument, False Positives?
  • Index(es):
    • Date
    • Thread