gh-125434: Display thread name in faulthandler on Windows (#140675) · python/cpython@313145e · GitHub
Skip to content

Commit 313145e

Browse files
authored
gh-125434: Display thread name in faulthandler on Windows (#140675)
1 parent 1753ccb commit 313145e

4 files changed

Lines changed: 80 additions & 14 deletions

File tree

Include/internal/pycore_traceback.h

Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Display thread name in :mod:`faulthandler` on Windows. Patch by Victor
2+
Stinner.

Python/pylifecycle.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ pycore_init_runtime(_PyRuntimeState *runtime,
506506
_PyRuntimeState_SetFinalizing(runtime, NULL);
507507

508508
_Py_InitVersion();
509+
_Py_DumpTraceback_Init();
509510

510511
status = _Py_HashRandomization_Init(config);
511512
if (_PyStatus_EXCEPTION(status)) {

Python/traceback.c

Lines changed: 75 additions & 14 deletions

0 commit comments

Comments
 (0)