New submission from augustin rieunier: Hello there, I face random malloc error in my code. I recently added lots of json dumps/loads operation as I plugged my application with redis.
Here's the error raised, and Valgrind information right after: 127.0.0.1 - - [24/Oct/2015 15:57:44] "DELETE /api/private/v1.0/contentcategories/ HTTP/1.1" 404 - python: malloc.c:2372: sysmalloc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 *(sizeof(size_t))) - 1)) & ~((2 *(sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long) old_end & pagemask) == 0)' failed. ==18768== Invalid read of size 4 ==18768== at 0x55ACE1: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x52AB40: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x546605: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BB178: _PyGC_CollectNoFail (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566C18: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BF712: Py_Main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47E350: main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== Address 0x6d70020 is 1,536 bytes inside a block of size 1,568 free'd ==18768== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==18768== by 0x5540D5: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5465F4: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BB178: _PyGC_CollectNoFail (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566C18: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BF712: Py_Main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47E350: main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Invalid read of size 4 ==18768== at 0x55ACE1: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x529CE6: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553633: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553728: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5465F4: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BB178: _PyGC_CollectNoFail (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566C18: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== Address 0x7dc6020 is 144 bytes inside a block of size 224 free'd ==18768== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==18768== by 0x553459: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4B26B6: PyEval_EvalFrameEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5689DA: PyEval_EvalCodeEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4B279F: PyEval_EvalFrameEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5689DA: PyEval_EvalCodeEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4B279F: PyEval_EvalFrameEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5689DA: PyEval_EvalCodeEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4B279F: PyEval_EvalFrameEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4B234C: PyEval_EvalFrameEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x56A7EB: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x51A3D9: PyObject_Call (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Conditional jump or move depends on uninitialised value(s) ==18768== at 0x55ACEA: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x529CE6: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553633: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553728: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5465F4: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BB178: _PyGC_CollectNoFail (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566C18: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Use of uninitialised value of size 8 ==18768== at 0x55AD02: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x529CE6: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553633: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553728: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5465F4: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BB178: _PyGC_CollectNoFail (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566C18: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Conditional jump or move depends on uninitialised value(s) ==18768== at 0x55ACEA: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553633: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5540D5: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5465F4: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BB178: _PyGC_CollectNoFail (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566C18: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BF712: Py_Main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Use of uninitialised value of size 8 ==18768== at 0x55AD02: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553633: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5540D5: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5465F4: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BB178: _PyGC_CollectNoFail (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566C18: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BF712: Py_Main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Invalid read of size 4 ==18768== at 0x55ACE1: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x523F06: PyDict_SetItem (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4D6F99: _PyModule_ClearDict (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566CB4: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BF712: Py_Main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47E350: main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== Address 0x8de1020 is not stack'd, malloc'd or (recently) free'd ==18768== ==18768== Conditional jump or move depends on uninitialised value(s) ==18768== at 0x55ACEA: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x523F06: PyDict_SetItem (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4D6F99: _PyModule_ClearDict (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566CB4: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BF712: Py_Main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47E350: main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Use of uninitialised value of size 8 ==18768== at 0x55AD02: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x523F06: PyDict_SetItem (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4D6F99: _PyModule_ClearDict (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566CB4: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BF712: Py_Main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47E350: main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Invalid read of size 4 ==18768== at 0x55ACE1: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5AE6E0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5532C7: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553633: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553459: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x523D65: PyDict_SetItem (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4D6F57: _PyModule_ClearDict (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566CB4: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== Address 0x6ac7020 is not stack'd, malloc'd or (recently) free'd ==18768== ==18768== Invalid read of size 4 ==18768== at 0x55ACE1: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x55982B: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553633: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5540D5: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5465F4: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BB178: _PyGC_CollectNoFail (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566ABA: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== Address 0x8b29020 is 448 bytes inside a block of size 1,114 free'd ==18768== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==18768== by 0x554B1F: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x48E1A7: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x166F2906: __Pyx_PyObject_Call (lxml.etree.c:202589) ==18768== by 0x166ED370: __Pyx__PyObject_CallOneArg (lxml.etree.c:202626) ==18768== by 0x167F5F7A: PyInit_etree (lxml.etree.c:39754) ==18768== by 0x58564F: _PyImport_LoadDynamicModule (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x585A39: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4B3863: PyEval_EvalFrameEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5689DA: PyEval_EvalCodeEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4B279F: PyEval_EvalFrameEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x56A7EB: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Invalid read of size 4 ==18768== at 0x55ACE1: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553711: PyDict_Clear (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5540D5: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5465F4: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BB178: _PyGC_CollectNoFail (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566ABA: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BF712: Py_Main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== Address 0x6bf9020 is 96 bytes inside a block of size 224 free'd ==18768== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==18768== by 0x553459: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x552FB7: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x56A814: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x51A3D9: PyObject_Call (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4B013E: PyEval_EvalFrameEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5689DA: PyEval_EvalCodeEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4B279F: PyEval_EvalFrameEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5689DA: PyEval_EvalCodeEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4B279F: PyEval_EvalFrameEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4B234C: PyEval_EvalFrameEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x56A7EB: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Conditional jump or move depends on uninitialised value(s) ==18768== at 0x55ACEA: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x52AB40: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x52983D: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553584: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x529B9C: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5465F4: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BB178: _PyGC_CollectNoFail (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566ABA: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Use of uninitialised value of size 8 ==18768== at 0x55AD02: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x52AB40: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x52983D: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553584: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x529B9C: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5465F4: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BB178: _PyGC_CollectNoFail (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566ABA: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Conditional jump or move depends on uninitialised value(s) ==18768== at 0x55ACEA: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x55982B: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553633: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5540D5: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5465F4: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BB178: _PyGC_CollectNoFail (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566ABA: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Invalid read of size 4 ==18768== at 0x55ACE1: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x166FB5F6: __pyx_module_cleanup (lxml.etree.c:202116) ==18768== by 0x4A5692: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553633: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x553728: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5465F4: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BB178: _PyGC_CollectNoFail (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566ABA: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== Address 0x7f25020 is 432 bytes inside a block of size 632 free'd ==18768== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==18768== by 0x52A02C: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5532C7: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x529F6F: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x529C39: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x523F06: PyDict_SetItem (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x4D6F99: _PyModule_ClearDict (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x566CB4: PyImport_Cleanup (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469C8E: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Invalid read of size 4 ==18768== at 0x55ACE1: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5348FD: PyGrammar_RemoveAccelerators (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D24: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BF712: Py_Main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47E350: main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== Address 0x61d3020 is 144 bytes inside a block of size 664 free'd ==18768== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==18768== by 0x5348FD: PyGrammar_RemoveAccelerators (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D24: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BF712: Py_Main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47E350: main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Conditional jump or move depends on uninitialised value(s) ==18768== at 0x55ACEA: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5348FD: PyGrammar_RemoveAccelerators (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D24: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BF712: Py_Main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47E350: main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== Use of uninitialised value of size 8 ==18768== at 0x55AD02: PyObject_Free (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5348FD: PyGrammar_RemoveAccelerators (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D24: Py_Finalize (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469D82: Py_Exit (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EC0: ??? (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x469EDE: PyErr_PrintEx (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47BE98: PyRun_SimpleFileExFlags (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x5BF712: Py_Main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== by 0x47E350: main (in /home/dev/Desktop/PROJ/git/api_clone/api/flask/bin/python3.4) ==18768== ==18768== ==18768== HEAP SUMMARY: ==18768== in use at exit: 6,976,358 bytes in 14,343 blocks ==18768== total heap usage: 275,841 allocs, 261,498 frees, 118,029,343 bytes allocated ==18768== ==18768== LEAK SUMMARY: ==18768== definitely lost: 0 bytes in 0 blocks ==18768== indirectly lost: 0 bytes in 0 blocks ==18768== possibly lost: 74,928 bytes in 127 blocks ==18768== still reachable: 6,901,430 bytes in 14,216 blocks ==18768== suppressed: 0 bytes in 0 blocks ==18768== Rerun with --leak-check=full to see details of leaked memory ==18768== ==18768== For counts of detected and suppressed errors, rerun with: -v ==18768== Use --track-origins=yes to see where uninitialised values come from ==18768== ERROR SUMMARY: 8068 errors from 156 contexts (suppressed: 0 from 0) ---------- components: Interpreter Core messages: 253405 nosy: augustin rieunier priority: normal severity: normal status: open title: Random Malloc error raised versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25470> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com