gh-128400: Only show the current thread in Py_FatalError on the free-threaded build (#128758)

This commit is contained in:
Peter Bierma 2025-01-13 09:36:54 -05:00 committed by GitHub
parent 4533036e50
commit bf64a582f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 12 deletions

View file

@ -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,