• 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: App not stopping at _NSLockError breakpoint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >App not stopping at _NSLockError breakpoint (From: PCWiz <email@hidden>)

  • Prev by Date: Re: tracking EXC_BAD_ACCESS error in applescript command
  • Next by Date: Re: Outline View Enter Edit Mode.
  • Previous by thread: App not stopping at _NSLockError breakpoint
  • Next by thread: Outline View Enter Edit Mode.
  • Index(es):
    • Date
    • Thread