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.
V
Victor Stinner committed
82af0b63b07aa8d92b50098e382b458143cfc677
Parent: 96f2c73
Committed by GitHub <noreply@github.com>
on 10/23/2018, 3:39:40 PM