Re: App not stopping at _NSLockError breakpoint
Re: App not stopping at _NSLockError breakpoint
- Subject: Re: App not stopping at _NSLockError breakpoint
- From: Greg Parker <email@hidden>
- Date: Mon, 21 Dec 2009 14:03:36 -0800
On Dec 21, 2009, at 12:14 PM, PCWiz wrote:
> I keep getting these errors in the Console:
>
> 2009-12-21 13:07:48.420 TwitMenu[2512:a0f] *** -[NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x20069d980> '(null)') unlocked when not locked
> 2009-12-21 13:07:48.420 TwitMenu[2512:a0f] *** Break on _NSLockError() to debug.
> 2009-12-21 13:07:48.437 TwitMenu[2512:4103] *** -[NSRecursiveLock finalize]: lock (<NSRecursiveLock: 0x20069dca0> '(null)') finalized while still in use
> 2009-12-21 13:07:48.437 TwitMenu[2512:4103] *** Break on _NSLockError() to debug.
>
> And as the instructions say, I've set a breakpoint on _NSLockError and it seems to be set properly as show here:
>
> http://img39.imageshack.us/img39/9477/screenshot20091221at110.png
>
> But when I run with "Build and Debug" it never stops at that breakpoint.
This is a bug in Foundation (rdar://6855192). The compiler optimizer inlined away the call to _NSLockError() inside Foundation, so it bypasses the breakpoint. Try putting a breakpoint on NSLog() instead.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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