summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-07 12:43:00 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-07 12:43:00 +0200
commitac8f9652916d3c88b8d08aaf32fa6942531cd712 (patch)
tree2f27ee4cabbbb9f718422681dc685a0d95eebad9 /Python/pythonrun.c
parentfad4e509a7653a47f9f80c3849bdf704dc4b7a0b (diff)
downloadcpython-ac8f9652916d3c88b8d08aaf32fa6942531cd712.tar.gz
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.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index ebc4f1cf17..6ebc823b80 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -2144,7 +2144,7 @@ Py_FatalError(const char *msg)
if (tstate != NULL) {
fputc('\n', stderr);
fflush(stderr);
- _Py_DumpTraceback(fd, tstate);
+ _Py_DumpTracebackThreads(fd, tstate->interp, tstate);
}
_PyFaulthandler_Fini();
}