• 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
Debugging Deadlocks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugging Deadlocks


  • Subject: Debugging Deadlocks
  • From: Paul Summermatter <email@hidden>
  • Date: Fri, 30 Nov 2012 08:36:40 -0500

All,

	I ran into a problem yesterday which, so far, I have been unable to reproduce.  A bunch of threads in our app were sitting in __psynch_mutexwait, which, according to various google searches, can indicate a deadlock in the application.  Certainly the behavior from a user standpoint felt like a deadlock in that the app seemed to be just frozen.  What I'm struggling to understand right now is whether Xcode has any tools to help in tracking down these problems.  Unlike java's debugger and jstack, I didn't see anything in the stack frames that made it clear which threads were contending with one another for a lock and/or which locks in particular were in contention.  Is it possible to do this with Xcode and/or lldb?  Also, I was struggling to figure out how to export all of the stack frames from Xcode's thread view.  From the lldb console, I could run the 'thread list' command, but that didn't provide a full stack trace of every thread.  I've seen other people post on the internet nicely formatted stack frames, so I'm pretty sure I'm missing something obvious.  Any guidance on these issues would be appreciated.

Regards,
Paul
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Debugging Deadlocks
      • From: Mikkel Islay <email@hidden>
    • Re: Debugging Deadlocks
      • From: Sean McBride <email@hidden>
    • Re: Debugging Deadlocks
      • From: mepard <email@hidden>
  • Prev by Date: Re: Any Way To Make XCode 4 search XIB files?
  • Next by Date: Re: Debugging Deadlocks
  • Previous by thread: Re: Xcode-users Digest, Vol 9, Issue 573
  • Next by thread: Re: Debugging Deadlocks
  • Index(es):
    • Date
    • Thread