Re: Mystery Thread - how to debug

2008-07-16 Thread Ken Thomases
On Jul 15, 2008, at 3:28 PM, James Bucanek wrote: 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__

Re: Mystery Thread - how to debug

2008-07-15 Thread Scott Ribe
> Any ideas? Cold comfort perhaps, but the way I've debugged similar problems in the past involved *lots* of logging, which of course can affect the bug ;-( -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-

Mystery Thread - how to debug

2008-07-15 Thread James Bucanek
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, whi