On memory error, dump the memory block traceback

Issue #26564: _PyObject_DebugDumpAddress() now dumps the traceback where a
memory block was allocated on memory block. Use the tracemalloc module to get
the traceback.
This commit is contained in:
Victor Stinner 2016-03-15 22:22:13 +01:00
parent af584a02a5
commit 0611c26a58
8 changed files with 126 additions and 19 deletions

View file

@ -38,11 +38,11 @@ Py_Exit(int sts)
}
#ifdef WITH_THREAD
/* Needed by obmalloc.c */
/* Functions needed by obmalloc.c */
int PyGILState_Check(void)
{
return 1;
}
{ return 1; }
void _PyMem_DumpTraceback(int fd, const void *ptr)
{}
#endif
int