Debugging Deadlocks
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