Malloc Error: pointer being freed was not allocated
Malloc Error: pointer being freed was not allocated
- Subject: Malloc Error: pointer being freed was not allocated
- From: Richard Somers <email@hidden>
- Date: Fri, 07 Sep 2012 13:01:19 -0600
I have an intermittent error that I can not make any progress on solving so I thought I would ask for some help from someone more experienced than myself in debugging. Program execution halts in Xcode with the following error:
MyApp(469,0x1009fbcc0) malloc: *** error for object 0x12f6b19a0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug
Following the instructions and adding a symbolic break point (malloc_error_break) results in nothing different. The application still halts at the same location with the same error.
I have searched through every stack frame and can find no reference to the pointer in question 0x12f6b19a0. You would think that this pointer would be located somewhere in one of the stack frames. A po or p on the pointer in the debug console produces nothing useful.
The stack looks like this:
#0 0x00000001008700b6 in __kill ()
#1 0x00000001009109f6 in abort ()
#2 0x0000000100828195 in free ()
#3 0x00000001064c01b3 in gfxReleaseSharedState ()
#4 0x000000012cc3d91f in gliDestroyContext ()
#5 0x0000000100166de4 in CGLReleaseContext ()
#6 0x0000000100169faa in CGLDestroyContext ()
#7 0x000000010001468d in -[RSTriadLayer releaseCGLContext:] at RSTriadLayer.m:302
#8 0x00000001003cd52a in CAOpenGLLayerDestroy(CAOpenGLLayer*, bool) ()
#9 0x00000001003cd5f2 in -[CAOpenGLLayer dealloc] ()
#10 0x00000001000141d6 in -[RSTriadLayer dealloc] at RSTriadLayer.m:204
#11 0x00000001001864ff in CA::release_root_if_unused(CALayer*, CALayer*, void*) ()
#12 0x0000000100186453 in x_hash_table_remove_if ()
#13 0x0000000100186268 in CA::Transaction::commit() ()
#14 0x0000000100baeb07 in __CFRunLoopDoObservers ()
#15 0x0000000100b89daf in CFRunLoopRunSpecific ()
#16 0x00000001026aa7ee in RunCurrentEventLoopInMode ()
#17 0x00000001026aa551 in ReceiveNextEventCommon ()
#18 0x00000001026aa4ac in BlockUntilNextEventMatchingListInMode ()
#19 0x00000001013e4eb2 in _DPSNextEvent ()
#20 0x00000001013e4801 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#21 0x00000001013aa68f in -[NSApplication run] ()
#22 0x00000001013a33b0 in NSApplicationMain ()
#23 0x0000000100001eb2 in main at main.m:27
#24 0x0000000100001e84 in start ()
Any suggestions?
--Richard
_______________________________________________
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