Mystery Thread - how to debug
Mystery Thread - how to debug
- Subject: Mystery Thread - how to debug
- From: James Bucanek <email@hidden>
- Date: Tue, 15 Jul 2008 13:28:48 -0700
I'm looking for any thoughts or feedback on this problem.
I have an application that starts lots of threads. While it's
cleaning up, it shuts most of them down. This is done through
NSConditionalLock objects (i.e. tell task to quit, wait for
conditional lock to transition to stopped state, while thread
finishes up and sets conditional lock to stopped state before it exits).
My problem is that the application is hanging as it tries to
quit. I've got one thread hung waiting for the conditional lock
to indicate that the worker thread as stopped.
I've got another thread -- which I'll refer to as the "mystery
thread" -- that is stuck in a spinlock. The sample looks like this:
7464 Thread_2a03
7464 thread_start
7464 _pthread_start
7464 __NSThread__main__
7464 -[NSThread main]
7464 __spin_lock
7464 __spin_lock
I'm *assuming* that this is the worker thread exiting. But since
there's no symbolic information associated with my application I
can't figure out what thread this belongs to, what selector it
will/did execute, or why the heck it's stuck on a spinlock.
Any ideas?
--
James Bucanek
_______________________________________________
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