Staging
v0.5.1
Revision 5eb8bff7e4aa7e4d8580a30323641388c8ff59a5 authored by Victor Stinner on 30 January 2020, 08:01:07 UTC, committed by GitHub on 30 January 2020, 08:01:07 UTC
Replace Py_FatalError() with _PyObject_ASSERT_FAILED_MSG() in
object.c and typeobject.c to also dump the involved Python object on
a fatal error. It should ease debug when such fatal error occurs.

If the double linked list is inconsistent, _Py_ForgetReference() no
longer dumps previous and next objects in the fatal error, it now
only dumps the current object. It ensures that the error message
is displayed even if dumping the object does crash Python.

Enhance _Py_ForgetReference() error messages;
_PyObject_ASSERT_FAILED_MSG() logs the "_Py_ForgetReference" function
name.
1 parent 188bb5b
History
File Mode Size
Grammar -rw-r--r-- 9.6 KB
Tokens -rw-r--r-- 1.5 KB

back to top