ObjectAlloc troubles
ObjectAlloc troubles
- Subject: ObjectAlloc troubles
- From: Brian Webster <email@hidden>
- Date: Wed, 12 Dec 2001 22:46:01 -0600
I'm trying to debug a memory leak in my app using ObjectAlloc,
but as soon as I try to launch my app from ObjectAlloc, it
crashes. The icon appears briefly in the dock, but the app
doesn't get very far in launching. Is there any special way I
need to configure my app to use ObjectAlloc with it? It's a
Cocoa app, pretty plain vanilla, no significant build setting
modifications or anything. I've included a sample crash log
below in case that could give a clue.
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x7c0802a6
Thread 0:
#0 0x72dd1458 in __OASpinLock
#1 0x72dd1b94 in _OASetLastAllocationEventName
#2 0x70161b40 in __CFSetLastAllocationEventName
#3 0x70172e40 in __CFSetGrow
#4 0x701c8e10 in _CFSetSetCapacity
#5 0x7016850c in CFRunLoopAddSource
#6 0x701d1c9c in __CFRunLoopAddItemsToCommonMode
#7 0x7017ca1c in CFSetApplyFunction
#8 0x701b671c in CFRunLoopAddCommonMode
#9 0x70c5cb2c in +[NSApplication initialize]
#10 0x706b4650 in class_initialize
#11 0x706b5438 in _class_lookupMethodAndLoadCache
#12 0x706bac3c in objc_msgSend
#13 0x70c91e3c in NSApplicationMain
#14 0x70c91e3c in NSApplicationMain
#15 0x0000391c in main
#16 0x00003840 in _start
#17 0x00003670 in start
Thread 1:
#0 0x70006df8 in clock_sleep_trap
#1 0x70006af0 in nanosleep
#2 0x72dd1564 in __OAThread
#3 0x70020efc in _pthread_body
Thread 2 Crashed:
#0 0x72dd143c in nextFrameAddress
#1 0x72dd1a0c in _OARecordAllocationEvent
#2 0x72dd16d0 in _objectalloc_logger
#3 0x70004c90 in malloc_zone_malloc
#4 0x70004b94 in malloc
#5 0x700116fc in _pthread_create_suspended
#6 0x011a01fc in 0x11a01fc
#7 0x90010008 in 0x90010008
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster