README 1.1 KB

12345678910111213141516171819202122232425
  1. Obtaining tracebacks on other threads in Python
  2. ===============================================
  3. by Fazal Majid (www.majid.info), 2004-06-10
  4. David Beazley added advanced debugging functions to the Python interpreter,
  5. and they have been folded into the 2.2 release. Guido van Rossum added in
  6. Python 2.3 the thread ID to the interpreter state structure, and this allows
  7. us to produce a dictionary mapping thread IDs to frames.
  8. I used these hooks to build a debugging module that is useful when you
  9. are looking for deadlocks in a multithreaded application. I've built
  10. and tested this only on Solaris 8/x86, but the code should be pretty
  11. portable.
  12. Of course, I disclaim any liability if this code should crash your system,
  13. erase your homework, eat your dog (who also ate your homework) or otherwise
  14. have any undesirable effect.
  15. Building and installing
  16. =======================
  17. Download threadframe-0.2.tar.gz. You can use the Makefile or the setup.py
  18. script. There is a small test program test.py that illustrates how to use this
  19. module to dump stack frames of all the Python interpreter threads. A sample
  20. run is available for your perusal.