Leaks
Leaks
- Subject: Leaks
- From: j o a r <email@hidden>
- Date: Wed, 18 Feb 2004 09:45:25 +0100
Note: I sent this message to the list yesterday, but it was too large
and was placed in line, waiting for moderation. I don't think it will
ever get through, so I'll resend it with fewer examples. If the
original message does get through, I apologize for this copy.
======================================================
While looking for leaks in our application, I also stumbled on a number
of reported leaks that I can't see are related to our code. In some
cases they don't include any of our code in the stack backtrace, and in
other cases only some - and nothing that seems to be related to the
leak.
I would be surprised if these leaks are really in Apple's frameworks,
but perhaps they are. Assuming that they are in our sources, how to I
make the connection between these backtraces and the origin of the
leak?
Any ideas are appreciated!
Thanx,
j o a r
(Sorry about the long message)
======================================================
Leak: 0x08a33f20 size=64
0x7d35e26f 0x00000000 0xa27f2d58 0x00000001
0x00000000 0x00000000 0x00000000 0x00000000
0x08a27cc0 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000038
Call stack: [thread 92e58027]: | 0x1000 | _dyld_start | _start
| main | -[NSApplication run] | -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent |
_NSHandleCarbonMenuEvent | MenuSelect | MenuSelectCore(Point, double,
unsigned long, OpaqueMenuRef**, unsigned short*) |
TrackMenuCommon(MenuSelectData&, unsigned char*) |
MenuChanged(MenuSelectData*) | DrawTheMenu(MenuSelectData*,
__CFArray**, unsigned char*) | MBarSave(MenuData*, Rect*,
OpaqueGrafPtr**, unsigned char*) | StandardMBDF(short, short, long,
long) | SaveBitsBar(StdMBDFGlobals*) | GetMenuWindow(OpaqueMenuRef*,
unsigned short, Rect const*, OpaqueRgnHandle*, unsigned char*) |
CreateCustomWindow | CreateNewWindowInternal(WindowDefSpec const*,
unsigned long, unsigned long, Rect const*, OpaqueWindowPtr**) |
NewWindowCommon(WindowData**, unsigned long, unsigned long,
WindowDefSpec const*, Rect const*, unsigned char const*, unsigned char,
OpaqueWindowPtr*, long, void*, unsigned short*) | HIObjectCreate |
HIObject::Create(__CFString const*, OpaqueEventRef*, HIObject**) |
SendEventToEventTargetWithOptions | SendEventToEventTargetInternal |
DispatchEventToHandlers |
HIObject::EventHook(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)
| HIObject::HandleClassHIObjectEvent(OpaqueEventHandlerCallRef*,
OpaqueEventRef*, void*) | AppleWindowDef::Initialize(OpaqueEventRef*) |
WindowData::Initialize(OpaqueEventRef*) |
WindowData::FinishConstruction(unsigned long, unsigned long, Rect
const*, unsigned char*, void*, OpaqueWindowPtr*, OpaqueControlRef*) |
CreatePlatformWindow | CreatePlatformWindowPriv(WindowData*, void*,
void*, unsigned char, short, short, unsigned long, void**) |
GetWindowLevelFromGroup(WindowData*) | GetWindowGroupOfClass |
GetWindowGroupOfTier | CreateWindowGroup | GetWindowGroupOfClass |
CreateWindowGroup | CSMemNewPtrClear | calloc | malloc_zone_calloc
Leak: 0x02946fd0 size=16
0x0292c7c0 0x00000002 0x02947050 0x00010001
Call stack: [thread 901dfc23]: | 0x1000 | _dyld_start | _start
| main | +[NSApplication sharedApplication] | -[NSApplication init] |
_NSInitializeAppContext | _HLTBAddEventSourceToMode | GetMainRunLoop |
GetMainEventLoop | CreateEventLoop | malloc | malloc_zone_malloc
Leak: 0x08afab80 size=16
0x00000002 0x04a8dc00 0x033a73ee 0x00010001
Call stack: [thread 213cd3]: | 0x0 | _pthread_body |
forkThreadForFunction | -[NSUIHeartBeat _heartBeatThread:] |
-[NSProgressIndicator heartBeat:] | -[NSProgressIndicator
_drawThemeProgressArea:] | _NSTileImage | _NSTileImageWithOperation |
-[NSImage compositeToPoint:operation:fraction:] | -[NSImage
compositeToPoint:fromRect:operation:fraction:] | -[NSImage
_composite:delta:fromRect:toPoint:] | -[NSBitmapImageRep
_drawFromRect:toRect:operation:alpha:compositing:flipped:
ignoreContext:] | CGContextDrawImage | ripc_DrawImage |
ripc_DrawImageObject | CGSImageDataLock |
CGDataProviderAccessSessionBegin | malloc | malloc_zone_malloc
Leak: 0x029810f0 size=48 instance of 'NSURL'
0x02900f80 0x00011380 0x00001000 0x0451b790
0x00000000 0x00000000 0x00000000 0x08000100
0x00000000 0x6565362e 0x706c6973 0x74000003
Call stack: [thread fff]: | 0x1000 | _dyld_start | _start |
main | -[NSApplication run] | -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent |
_NSHandleCarbonMenuEvent | -[NSCarbonMenuImpl
performActionWithHighlightingForItemAtIndex:] | -[NSMenu
performActionForItemAtIndex:] | -[NSApplication sendAction:to:from:] |
-[MainController about:] | -[AboutPanel showWindow:] |
-[ScrollingTextView takeTextFromRTFDFileAtPath:] | -[NSTextView
readRTFDFromFile:] |
-[NSAttributedString(NSAttributedStringKitAdditions)
_initWithURLFunnel:options:documentAttributes:] |
_NSReadAttributedStringFromURLOrData | -[NSFileWrapper initWithPath:] |
-[NSWorkspace iconForFile:] | GetIconRefFromFSRef |
GetIconRefFromFileInfo | GetImageForFSItem | ISBuildBaseImage(FSRef
const*, HFSUniStr255 const*, unsigned long*, FSCatalogInfo*,
CustomBadgeResource*, unsigned long, unsigned char*) |
GetFolderType(FSRef const*, short, long, long, HFSUniStr255 const*,
unsigned char, unsigned char) | FindFolder | FindFolderGuts |
GetInternalFolderDesc | FindClassicDomainFolderDesc |
IsClassicFolderRedirectionEnabled |
DetermineClassicFolderRedirectionStatus |
MyCFPreferencesCopyValueNoCache | _CFPreferencesURLForManagedDomain |
CFURLCreateWithFileSystemPath |
CFURLCreateWithFileSystemPathRelativeToBase | _CFURLAlloc |
_CFRuntimeCreateInstance | malloc_zone_malloc
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.