HomeAleph Objects Inc

bpo-9263: _PyObject_Dump() detects freed memory (GH-10061)

Authored by Victor Stinner <vstinner@redhat.com> on Oct 23 2018, 9:39 AM.

Description

bpo-9263: _PyObject_Dump() detects freed memory (GH-10061)

_PyObject_Dump() now uses an heuristic to check if the object memory
has been freed: log "<freed object>" in that case.

The heuristic rely on the debug hooks on Python memory allocators
which fills the memory with DEADBYTE (0xDB) when memory is
deallocated. Use PYTHONMALLOC=debug to always enable these debug
hooks.

Details

Committed
GitHub <noreply@github.com>Oct 23 2018, 9:39 AM
Parents
rCP96f2c739542d: Add macos-team as a code owner (GH-10045)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rCP82af0b63b07a: bpo-9263: _PyObject_Dump() detects freed memory (GH-10061) (authored by Victor Stinner <vstinner@redhat.com>).Oct 23 2018, 9:39 AM