]> granicus.if.org Git - python/commit
[3.8] bpo-38070: Py_FatalError() logs runtime state (GH-16258)
authorVictor Stinner <vstinner@redhat.com>
Wed, 18 Sep 2019 12:10:16 +0000 (14:10 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Sep 2019 12:10:16 +0000 (14:10 +0200)
commit47bbab9f76735acc1991e541d12fd18be6b13b16
treededa23c37efb7ae3a1d084cd4b4388e773e450d1
parent7a2f68776a77c782c0abf40dc9e3fb687787e730
[3.8] bpo-38070: Py_FatalError() logs runtime state (GH-16258)

* bpo-38070: _Py_DumpTraceback() writes <no Python frame> (GH-16244)

When a Python thread has no frame, _Py_DumpTraceback() and
_Py_DumpTracebackThreads() now write "<no Python frame>", rather than
writing nothing.

(cherry picked from commit 8fa3e1740b3f03ea65ddb68411c2238c5f98eec2)

* bpo-38070: Enhance _PyObject_Dump() (GH-16243)

_PyObject_Dump() now dumps the object address for freed objects and
objects with ob_type=NULL.

(cherry picked from commit b39afb78768418d9405c4b528c80fa968ccc974d)

* bpo-38070: Add _PyRuntimeState.preinitializing (GH-16245)

Add _PyRuntimeState.preinitializing field: set to 1 while
Py_PreInitialize() is running.

_PyRuntimeState: rename also pre_initialized field to preinitialized.

(cherry picked from commit d3b904144e86e2442961de6a7dccecbe133d5c6d)

* bpo-38070: Py_FatalError() logs runtime state (GH-16246)

(cherry picked from commit 1ce16fb0977283ae42a9f8917bbca5f44aa69324)
Include/internal/pycore_pystate.h
Lib/test/test_capi.py
Lib/test/test_faulthandler.py
Objects/object.c
Python/pylifecycle.c
Python/traceback.c