Debugging thread stall

Chandrakant Silver zilvercl at
Fri Nov 27 16:52:00 CET 2009

On Nov 27, 3:22 pm, Roy Smith <r... at> wrote:
> I've got an application which uses several threads (from the threading
> module) to do I/O.  Inexplicably, I've now got a situation where one thread
> stalls.
> Are there any good tools for debugging Python threading problems?  I'm
> thinking of something which might print out a list of all the threads, what
> they're waiting on, and what locks they hold.

You might be aware of pdb (python debugger)
Here's one tutorial (Appendix A) which might be helpful...


More information about the Python-list mailing list