From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 31 Aug 2021 15:53:17 +0000 (-0700) Subject: bpo-45061: Enhance faulthandler traceback wit no Python frame (GH-28090) X-Git-Tag: v3.10.0rc2~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4c57e5c0eb79795d4fd1d9d8292455567c60070;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 (cherry picked from commit 888d4cc06b887e77f281ba4d640e281cb4c61b7b) Co-authored-by: Victor Stinner --- diff --git a/Python/traceback.c b/Python/traceback.c index 88ffc01c6eca..9b23f45ba5bb 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -801,7 +801,7 @@ dump_traceback(int fd, PyThreadState *tstate, int write_header) // not modify Python objects. frame = tstate->frame; if (frame == NULL) { - PUTS(fd, "\n"); + PUTS(fd, " \n"); return; }