==9944== Memcheck, a memory error detector ==9944== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==9944== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info ==9944== Command: ./a.out ==9944== init ==9972== ==9972== HEAP SUMMARY: ==9972== in use at exit: 4,060,518 bytes in 32,833 blocks ==9972== total heap usage: 74,670 allocs, 41,837 frees, 10,312,159 bytes allocated ==9972== ==9972== 32 bytes in 1 blocks are definitely lost in loss record 416 of 3,972 ==9972== at 0x483E77F: malloc (vg_replace_malloc.c:307) ==9972== by 0x498A4E0: _PyMem_RawMalloc (obmalloc.c:99) ==9972== by 0x498B8F2: PyMem_RawMalloc (obmalloc.c:572) ==9972== by 0x4AA05FC: PyThread_allocate_lock (thread_pthread.h:384) ==9972== by 0x4A36D01: _PyEval_InitState (ceval.c:810) ==9972== by 0x4A8A7B3: PyInterpreterState_New (pystate.c:226) ==9972== by 0x4A84691: pycore_create_interpreter (pylifecycle.c:600) ==9972== by 0x4A86E71: pyinit_config (pylifecycle.c:803) ==9972== by 0x4A88E7B: pyinit_core (pylifecycle.c:972) ==9972== by 0x4A88F7E: Py_InitializeFromConfig (pylifecycle.c:1157) ==9972== by 0x4A8985B: Py_InitializeEx (pylifecycle.c:1195) ==9972== by 0x4A8989F: Py_Initialize (pylifecycle.c:1204) ==9972== ==9972== 32 bytes in 1 blocks are definitely lost in loss record 417 of 3,972 ==9972== at 0x483E77F: malloc (vg_replace_malloc.c:307) ==9972== by 0x498A4E0: _PyMem_RawMalloc (obmalloc.c:99) ==9972== by 0x498B8F2: PyMem_RawMalloc (obmalloc.c:572) ==9972== by 0x4AA05FC: PyThread_allocate_lock (thread_pthread.h:384) ==9972== by 0x4A6DA2E: _PyImport_AcquireLock (import.c:126) ==9972== by 0x4A6DA84: _imp_acquire_lock_impl (import.c:219) ==9972== by 0x4A6DAB4: _imp_acquire_lock (import.c.h:43) ==9972== by 0x49820AD: cfunction_vectorcall_NOARGS (methodobject.c:485) ==9972== by 0x4A31ACB: _PyObject_VectorcallTstate (abstract.h:114) ==9972== by 0x4A35772: PyObject_Vectorcall (abstract.h:123) ==9972== by 0x4A35772: call_function (ceval.c:5514) ==9972== by 0x4A4278D: _PyEval_EvalFrameDefault (ceval.c:3839) ==9972== by 0x4A44F38: _PyEval_EvalFrame (pycore_ceval.h:40) ==9972== by 0x4A44F38: _PyEval_Vector (ceval.c:4710) ==9972== ==9972== 32 bytes in 1 blocks are definitely lost in loss record 418 of 3,972 ==9972== at 0x483E77F: malloc (vg_replace_malloc.c:307) ==9972== by 0x498A4E0: _PyMem_RawMalloc (obmalloc.c:99) ==9972== by 0x498B8F2: PyMem_RawMalloc (obmalloc.c:572) ==9972== by 0x4AA05FC: PyThread_allocate_lock (thread_pthread.h:384) ==9972== by 0x4B08BB6: newlockobject (_threadmodule.c:597) ==9972== by 0x4B08C5A: thread_PyThread_allocate_lock (_threadmodule.c:1195) ==9972== by 0x49820AD: cfunction_vectorcall_NOARGS (methodobject.c:485) ==9972== by 0x4A31ACB: _PyObject_VectorcallTstate (abstract.h:114) ==9972== by 0x4A35772: PyObject_Vectorcall (abstract.h:123) ==9972== by 0x4A35772: call_function (ceval.c:5514) ==9972== by 0x4A4281F: _PyEval_EvalFrameDefault (ceval.c:3870) ==9972== by 0x4A44F38: _PyEval_EvalFrame (pycore_ceval.h:40) ==9972== by 0x4A44F38: _PyEval_Vector (ceval.c:4710) ==9972== by 0x492B6FE: _PyFunction_Vectorcall (call.c:342) ==9972== ==9972== 32 bytes in 1 blocks are definitely lost in loss record 419 of 3,972 ==9972== at 0x483E77F: malloc (vg_replace_malloc.c:307) ==9972== by 0x498A4E0: _PyMem_RawMalloc (obmalloc.c:99) ==9972== by 0x498B8F2: PyMem_RawMalloc (obmalloc.c:572) ==9972== by 0x4AA05FC: PyThread_allocate_lock (thread_pthread.h:384) ==9972== by 0x4B08BB6: newlockobject (_threadmodule.c:597) ==9972== by 0x4B08CC7: thread__set_sentinel (_threadmodule.c:1299) ==9972== by 0x49820AD: cfunction_vectorcall_NOARGS (methodobject.c:485) ==9972== by 0x4A31ACB: _PyObject_VectorcallTstate (abstract.h:114) ==9972== by 0x4A35772: PyObject_Vectorcall (abstract.h:123) ==9972== by 0x4A35772: call_function (ceval.c:5514) ==9972== by 0x4A4281F: _PyEval_EvalFrameDefault (ceval.c:3870) ==9972== by 0x4A44F38: _PyEval_EvalFrame (pycore_ceval.h:40) ==9972== by 0x4A44F38: _PyEval_Vector (ceval.c:4710) ==9972== by 0x492B6FE: _PyFunction_Vectorcall (call.c:342) ==9972== ==9972== 56 bytes in 1 blocks are definitely lost in loss record 1,046 of 3,972 ==9972== at 0x483E77F: malloc (vg_replace_malloc.c:307) ==9972== by 0x498A4E0: _PyMem_RawMalloc (obmalloc.c:99) ==9972== by 0x498A3D2: _PyMem_DebugRawAlloc (obmalloc.c:2145) ==9972== by 0x498A468: _PyMem_DebugRawMalloc (obmalloc.c:2178) ==9972== by 0x498B8F2: PyMem_RawMalloc (obmalloc.c:572) ==9972== by 0x4AA05FC: PyThread_allocate_lock (thread_pthread.h:384) ==9972== by 0x4A89C7C: _PyRuntimeState_Init_impl (pystate.c:79) ==9972== by 0x4A8A47E: _PyRuntimeState_Init (pystate.c:110) ==9972== by 0x4A87D00: _PyRuntime_Initialize (pylifecycle.c:82) ==9972== by 0x4A897F9: Py_InitializeEx (pylifecycle.c:1179) ==9972== by 0x4A8989F: Py_Initialize (pylifecycle.c:1204) ==9972== by 0x10925F: main (foo.cpp:5) ==9972== ==9972== 56 bytes in 1 blocks are definitely lost in loss record 1,047 of 3,972 ==9972== at 0x483E77F: malloc (vg_replace_malloc.c:307) ==9972== by 0x498A4E0: _PyMem_RawMalloc (obmalloc.c:99) ==9972== by 0x498A3D2: _PyMem_DebugRawAlloc (obmalloc.c:2145) ==9972== by 0x498A468: _PyMem_DebugRawMalloc (obmalloc.c:2178) ==9972== by 0x498B8F2: PyMem_RawMalloc (obmalloc.c:572) ==9972== by 0x4AA05FC: PyThread_allocate_lock (thread_pthread.h:384) ==9972== by 0x4A89C92: _PyRuntimeState_Init_impl (pystate.c:85) ==9972== by 0x4A8A47E: _PyRuntimeState_Init (pystate.c:110) ==9972== by 0x4A87D00: _PyRuntime_Initialize (pylifecycle.c:82) ==9972== by 0x4A897F9: Py_InitializeEx (pylifecycle.c:1179) ==9972== by 0x4A8989F: Py_Initialize (pylifecycle.c:1204) ==9972== by 0x10925F: main (foo.cpp:5) ==9972== ==9972== 56 bytes in 1 blocks are definitely lost in loss record 1,048 of 3,972 ==9972== at 0x483E77F: malloc (vg_replace_malloc.c:307) ==9972== by 0x498A4E0: _PyMem_RawMalloc (obmalloc.c:99) ==9972== by 0x498A3D2: _PyMem_DebugRawAlloc (obmalloc.c:2145) ==9972== by 0x498A468: _PyMem_DebugRawMalloc (obmalloc.c:2178) ==9972== by 0x498B8F2: PyMem_RawMalloc (obmalloc.c:572) ==9972== by 0x4AA05FC: PyThread_allocate_lock (thread_pthread.h:384) ==9972== by 0x4A89CAD: _PyRuntimeState_Init_impl (pystate.c:93) ==9972== by 0x4A8A47E: _PyRuntimeState_Init (pystate.c:110) ==9972== by 0x4A87D00: _PyRuntime_Initialize (pylifecycle.c:82) ==9972== by 0x4A897F9: Py_InitializeEx (pylifecycle.c:1179) ==9972== by 0x4A8989F: Py_Initialize (pylifecycle.c:1204) ==9972== by 0x10925F: main (foo.cpp:5) ==9972== ==9972== LEAK SUMMARY: ==9972== definitely lost: 296 bytes in 7 blocks ==9972== indirectly lost: 0 bytes in 0 blocks ==9972== possibly lost: 1,081,093 bytes in 9,243 blocks ==9972== still reachable: 2,979,129 bytes in 23,583 blocks ==9972== suppressed: 0 bytes in 0 blocks ==9972== Reachable blocks (those to which a pointer was found) are not shown. ==9972== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==9972== ==9972== For lists of detected and suppressed errors, rerun with: -s ==9972== ERROR SUMMARY: 483 errors from 483 contexts (suppressed: 0 from 0) init fini ==9944== ==9944== HEAP SUMMARY: ==9944== in use at exit: 426,030 bytes in 4,384 blocks ==9944== total heap usage: 75,042 allocs, 70,658 frees, 10,329,897 bytes allocated ==9944== ==9944== LEAK SUMMARY: ==9944== definitely lost: 0 bytes in 0 blocks ==9944== indirectly lost: 0 bytes in 0 blocks ==9944== possibly lost: 405,760 bytes in 4,299 blocks ==9944== still reachable: 20,270 bytes in 85 blocks ==9944== suppressed: 0 bytes in 0 blocks ==9944== Reachable blocks (those to which a pointer was found) are not shown. ==9944== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==9944== ==9944== For lists of detected and suppressed errors, rerun with: -s ==9944== ERROR SUMMARY: 1696 errors from 1696 contexts (suppressed: 0 from 0)