bpo-38070: visit_decref() calls _PyObject_IsFreed() by vstinner · Pull Request #15782 · python/cpython

@vstinner

In debug mode, visit_decref() now calls _PyObject_IsFreed() to ensure
that the object is not freed. If it's freed, the program fails with
an assertion error and Python dumps informations about the freed
object.

pablogsal

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Sep 9, 2019
In debug mode, visit_decref() now calls _PyObject_IsFreed() to ensure
that the object is not freed. If it's freed, the program fails with
an assertion error and Python dumps informations about the freed
object.
(cherry picked from commit d91d4de)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

miss-islington added a commit that referenced this pull request

Sep 9, 2019
In debug mode, visit_decref() now calls _PyObject_IsFreed() to ensure
that the object is not freed. If it's freed, the program fails with
an assertion error and Python dumps informations about the freed
object.
(cherry picked from commit d91d4de)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request

Jul 20, 2020
In debug mode, visit_decref() now calls _PyObject_IsFreed() to ensure
that the object is not freed. If it's freed, the program fails with
an assertion error and Python dumps informations about the freed
object.