#107215 stopped exporting _Py_DumpTraceback() and _Py_DumpTracebackThreads(). This removed the only signal-safe way of printing a Python stacktrace.
Proposing that they are re-exported.
This is a minor feature, which does not need previous discussion elsewhere
No response
See also issue gh-148925 "Expose signal-safe way to get a structured stacktrace".
gh-145559: Add PyUnstable_DumpTraceback() and PyUnstable_DumpTracebac…
Activity
vstinner commented on Apr 30, 2026
See also issue gh-148925 "Expose signal-safe way to get a structured stacktrace".
gh-145559: Add PyUnstable_DumpTraceback() and PyUnstable_DumpTracebac…