From: Victor Stinner Date: Tue, 31 Aug 2021 15:34:29 +0000 (+0200) Subject: bpo-45061: Enhance faulthandler traceback wit no Python frame (GH-28090) X-Git-Tag: v3.11.0a1~291 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=888d4cc06b887e77f281ba4d640e281cb4c61b7b;p=thirdparty%2FPython%2Fcpython.git bpo-45061: Enhance faulthandler traceback wit no Python frame (GH-28090) Fix indentation of message in a faulthandler traceback or a Fatal Python error traceback. Example: Current thread 0x00007f03896fb740 (most recent call first): Garbage-collecting --- diff --git a/Python/traceback.c b/Python/traceback.c index 204121ba66d9..cdabd2900acf 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -1071,7 +1071,7 @@ dump_traceback(int fd, PyThreadState *tstate, int write_header) frame = tstate->frame; if (frame == NULL) { - PUTS(fd, "\n"); + PUTS(fd, " \n"); return; }