]> granicus.if.org Git - python/commit
faulthandler: dump all threads by default
authorVictor Stinner <victor.stinner@haypocalc.com>
Sat, 7 May 2011 10:43:00 +0000 (12:43 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sat, 7 May 2011 10:43:00 +0000 (12:43 +0200)
commit7bba62fd68e3a2c410c37348cf679edea04c7718
tree41614a5367bd7c7586df0eb3f53e3c7db7b3f362
parentc925617b5455867b7b393c6ca66f133aab450a6b
faulthandler: dump all threads by default

 * Set the default value of all_threads arguments to True
 * Py_FatalError() dumps all threads, instead of only the current thread

Dump only the current thread is not reliable. In some cases, Python is unable
to retrieve the state of the current thread and so is unable to dump the
traceback. faulthandler keeps a reference to the interpreter and so is always
able to dump the traceback of all threads.
Doc/library/faulthandler.rst
Lib/test/test_faulthandler.py
Modules/faulthandler.c
Python/pythonrun.c