File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1354,17 +1354,17 @@ Py_FatalError(const char *msg)
13541354 if (!_Py_FatalError_PrintExc (fd ))
13551355 _Py_FatalError_DumpTracebacks (fd );
13561356
1357+ /* The main purpose of faulthandler is to display the traceback. We already
1358+ * did our best to display it. So faulthandler can now be disabled.
1359+ * (Don't trigger it on abort().) */
1360+ _PyFaulthandler_Fini ();
1361+
13571362 /* Check if the current Python thread hold the GIL */
13581363 if (PyThreadState_GET () != NULL ) {
13591364 /* Flush sys.stdout and sys.stderr */
13601365 flush_std_files ();
13611366 }
13621367
1363- /* The main purpose of faulthandler is to display the traceback. We already
1364- * did our best to display it. So faulthandler can now be disabled.
1365- * (Don't trigger it on abort().) */
1366- _PyFaulthandler_Fini ();
1367-
13681368#ifdef MS_WINDOWS
13691369 len = strlen (msg );
13701370
You can’t perform that action at this time.
0 commit comments