diff options
| author | Peter Bierma <zintensitydev@gmail.com> | 2025-01-13 14:36:54 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-13 14:36:54 (GMT) |
| commit | bf64a582f00a030fee11b7f89c6a02ea967990ca (patch) | |
| tree | 56bd07e010d13461d2ab092655d48f8e8b9ed29e /Python | |
| parent | 4533036e50f1e604e8c06710d9e19dd700f89c1c (diff) | |
| download | cpython-bf64a582f00a030fee11b7f89c6a02ea967990ca.zip cpython-bf64a582f00a030fee11b7f89c6a02ea967990ca.tar.gz cpython-bf64a582f00a030fee11b7f89c6a02ea967990ca.tar.bz2 | |
gh-128400: Only show the current thread in `Py_FatalError` on the free-threaded build (#128758)
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/pylifecycle.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 8a15a09..9a8a92a 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -3034,7 +3034,11 @@ _Py_FatalError_DumpTracebacks(int fd, PyInterpreterState *interp, PUTS(fd, "\n"); /* display the current Python stack */ +#ifndef Py_GIL_DISABLED _Py_DumpTracebackThreads(fd, interp, tstate); +#else + _Py_DumpTraceback(fd, tstate); +#endif } /* Print the current exception (if an exception is set) with its traceback, |
