This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python 3.4.5 leaks memory when attempting to load non-existent file
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.6, Python 3.4, Python 3.5
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: ammar2, geeknik, koobs, r.david.murray
Priority: normal Keywords:

Created on 2016-08-23 01:57 by geeknik, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (6)
msg273415 - (view) Author: geeknik (geeknik) Date: 2016-08-23 01:57
While fuzzing Python 3.4.5 with AFL, ASAN and libdislocator, I fat fingered the keyboard ASAN pops up a LeakSanitizer error. Apparently trying to open a non-existent file causes Python 3.4.5 to leak >880KB of memory.

./python: can't open file 'id:000109': [Errno 2] No such file or directory

=================================================================
==16921==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 620904 byte(s) in 469 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12

Direct leak of 41800 byte(s) in 29 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x769b2f in PyEval_EvalCodeEx /root/python-3.4.5/Python/ceval.c:3588:14

Direct leak of 28160 byte(s) in 7 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x60459c in set_add_key /root/python-3.4.5/Objects/setobject.c:373:12

Direct leak of 26095 byte(s) in 33 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4dc54d in PyMem_RawMalloc /root/python-3.4.5/Objects/obmalloc.c:276:12
    #2 0x4dc54d in _PyObject_Malloc /root/python-3.4.5/Objects/obmalloc.c:1314

Direct leak of 18176 byte(s) in 31 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4dc54d in PyMem_RawMalloc /root/python-3.4.5/Objects/obmalloc.c:276:12
    #2 0x4dc54d in _PyObject_Malloc /root/python-3.4.5/Objects/obmalloc.c:1314
    #3 0x8a80e9 in _PyObject_GC_NewVar /root/python-3.4.5/Modules/gcmodule.c:1765:26

Direct leak of 3584 byte(s) in 16 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x636d59 in type_call /root/python-3.4.5/Objects/typeobject.c:883:11

Direct leak of 1472 byte(s) in 15 object(s) allocated from:
    #0 0x4bc5ce in realloc (/root/python-3.4.5/python+0x4bc5ce)
    #1 0x4da38a in PyMem_Realloc /root/python-3.4.5/Objects/obmalloc.c:308:12

Direct leak of 448 byte(s) in 2 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x836b0e in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:418:14
    #3 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #4 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 264 byte(s) in 2 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #3 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546820 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2509:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5468ad in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2510:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5e7712 in PyModule_Create2 /root/python-3.4.5/Objects/moduleobject.c:105:9
    #3 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #4 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x545fdf in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2494:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546793 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2508:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546213 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2498:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x54693a in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2511:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5454db in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2474:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546a54 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2513:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x54570f in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2478:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546447 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2502:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x54632d in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2500:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5462a0 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2499:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x70abc2 in _PyUnicode_Init /root/python-3.4.5/Objects/unicodeobject.c:15006:9
    #3 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #4 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546186 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2497:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5460f9 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2496:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x54606c in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2495:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5f3ad1 in _Py_ReadyTypes /root/python-3.4.5/Objects/object.c:1573:9
    #3 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #4 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x545dab in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2490:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x545d1e in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2489:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x545c91 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2488:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x54544e in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2473:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546561 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2504:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5458b6 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2481:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x545943 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2482:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5465ee in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2505:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546ae1 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2514:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x545829 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2480:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x54579c in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2479:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x63743f in type_getattro /root/python-3.4.5/Objects/typeobject.c:2893:13

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x545682 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2477:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5463ba in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2501:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5453c1 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2472:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5469c7 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2512:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x545334 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2471:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5452a7 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2470:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x54521a in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2469:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x545a5d in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2484:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x545aea in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2485:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x70ab95 in _PyUnicode_Init /root/python-3.4.5/Objects/unicodeobject.c:15003:9
    #3 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #4 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x70ab68 in _PyUnicode_Init /root/python-3.4.5/Objects/unicodeobject.c:15000:9
    #3 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #4 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5f41d9 in _Py_ReadyTypes /root/python-3.4.5/Objects/object.c:1693:9
    #3 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #4 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5f40cb in _Py_ReadyTypes /root/python-3.4.5/Objects/object.c:1675:9
    #3 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #4 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5f4044 in _Py_ReadyTypes /root/python-3.4.5/Objects/object.c:1666:9
    #3 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #4 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5f3d74 in _Py_ReadyTypes /root/python-3.4.5/Objects/object.c:1618:9
    #3 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #4 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x54667b in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2506:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5f3aa4 in _Py_ReadyTypes /root/python-3.4.5/Objects/object.c:1570:9
    #3 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #4 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x80812b in init_builtin /root/python-3.4.5/Python/import.c:1136:19
    #3 0x80812b in _imp_init_builtin_impl /root/python-3.4.5/Python/import.c:1963
    #4 0x80812b in _imp_init_builtin /root/python-3.4.5/Python/import.c:1950
    #5 0xa3937f in PyCFunction_Call /root/python-3.4.5/Objects/methodobject.c:120:23

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x54720a in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2530:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x8aa9a1 in PyInit__thread /root/python-3.4.5/./Modules/_threadmodule.c:1367:9
    #3 0xa3937f in PyCFunction_Call /root/python-3.4.5/Objects/methodobject.c:120:23

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x8aa970 in PyInit__thread /root/python-3.4.5/./Modules/_threadmodule.c:1365:9
    #3 0xa3937f in PyCFunction_Call /root/python-3.4.5/Objects/methodobject.c:120:23

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x9862de in PyInit__io /root/python-3.4.5/./Modules/_io/_iomodule.c:697:9
    #3 0xa3937f in PyCFunction_Call /root/python-3.4.5/Objects/methodobject.c:120:23

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x986021 in PyInit__io /root/python-3.4.5/./Modules/_io/_iomodule.c:685:5
    #3 0xa3937f in PyCFunction_Call /root/python-3.4.5/Objects/methodobject.c:120:23

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x547297 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2531:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x545b77 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2486:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x547329 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2532:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x545c04 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2487:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x54717d in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2529:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x5470f0 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2528:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x547063 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2527:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546fd6 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2526:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546f49 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2525:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546ebc in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2524:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546e2f in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2523:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546da2 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2522:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546d15 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2521:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546c88 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2520:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546bfb in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2519:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546b6e in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2517:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 224 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x546708 in _PyExc_Init /root/python-3.4.5/Objects/exceptions.c:2507:5
    #3 0x836b09 in _Py_InitializeEx_Private /root/python-3.4.5/Python/pythonrun.c:416:5
    #4 0x4e2e82 in Py_Main /root/python-3.4.5/Modules/main.c:654:5
    #5 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Direct leak of 96 byte(s) in 3 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da1c7 in PyMem_RawMalloc /root/python-3.4.5/Objects/obmalloc.c:276:12

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x4e31d4 in Py_Main /root/python-3.4.5/Modules/main.c:677:5
    #3 0x4d9c8e in main /root/python-3.4.5/./Modules/python.c:69:11

Indirect leak of 68376 byte(s) in 77 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4dc54d in PyMem_RawMalloc /root/python-3.4.5/Objects/obmalloc.c:276:12
    #2 0x4dc54d in _PyObject_Malloc /root/python-3.4.5/Objects/obmalloc.c:1314
    #3 0x626fa2 in PyType_GenericAlloc /root/python-3.4.5/Objects/typeobject.c:916:15

Indirect leak of 36042 byte(s) in 34 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4dc54d in PyMem_RawMalloc /root/python-3.4.5/Objects/obmalloc.c:276:12
    #2 0x4dc54d in _PyObject_Malloc /root/python-3.4.5/Objects/obmalloc.c:1314

Indirect leak of 6432 byte(s) in 11 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4dc54d in PyMem_RawMalloc /root/python-3.4.5/Objects/obmalloc.c:276:12
    #2 0x4dc54d in _PyObject_Malloc /root/python-3.4.5/Objects/obmalloc.c:1314
    #3 0x8a80e9 in _PyObject_GC_NewVar /root/python-3.4.5/Modules/gcmodule.c:1765:26

Indirect leak of 6016 byte(s) in 47 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x636d59 in type_call /root/python-3.4.5/Objects/typeobject.c:883:11

Indirect leak of 4574 byte(s) in 5 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4dc54d in PyMem_RawMalloc /root/python-3.4.5/Objects/obmalloc.c:276:12
    #2 0x4dc54d in _PyObject_Malloc /root/python-3.4.5/Objects/obmalloc.c:1314
    #3 0x636d59 in type_call /root/python-3.4.5/Objects/typeobject.c:883:11

Indirect leak of 2912 byte(s) in 7 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12

Indirect leak of 1242 byte(s) in 1 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4dc54d in PyMem_RawMalloc /root/python-3.4.5/Objects/obmalloc.c:276:12
    #2 0x4dc54d in _PyObject_Malloc /root/python-3.4.5/Objects/obmalloc.c:1314
    #3 0x641c91 in tp_new_wrapper /root/python-3.4.5/Objects/typeobject.c:5524:11

Indirect leak of 1152 byte(s) in 9 object(s) allocated from:
    #0 0x4bc2db in malloc (/root/python-3.4.5/python+0x4bc2db)
    #1 0x4da307 in PyMem_Malloc /root/python-3.4.5/Objects/obmalloc.c:299:12
    #2 0x641c91 in tp_new_wrapper /root/python-3.4.5/Objects/typeobject.c:5524:11

SUMMARY: AddressSanitizer: 883433 byte(s) leaked in 869 allocation(s).
msg273442 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2016-08-23 13:30
How are you defining "leak"?  It isn't a leak if Python allocates memory that it doesn't free when doing a new operation.  If you do that operation repeatedly and memory use continues to increase, that would be a leak.
msg273497 - (view) Author: geeknik (geeknik) Date: 2016-08-23 17:57
Interesting that only Python exhibits this "leaky" behavior that generates a LeakSanitizer error. I don't see similar behavior in Perl, Ruby or PHP. Running a non-ASAN build under Valgrind reports that a leak is still occurring: 

LEAK SUMMARY:
==15496==    definitely lost: 0 bytes in 0 blocks
==15496==    indirectly lost: 0 bytes in 0 blocks
==15496==      possibly lost: 19,784 bytes in 34 blocks
==15496==    still reachable: 879,399 bytes in 862 blocks
==15496==         suppressed: 0 bytes in 0 blocks
==15496==
==15496== ERROR SUMMARY: 98 errors from 40 contexts (suppressed: 0 from 0)

From the Valgrind manual:
"possibly lost" means your program is leaking memory, unless you're doing unusual things with pointers that could cause them to point into the middle of an allocated block;
msg273498 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2016-08-23 18:00
I'm not saying there isn't a leak, rather I'm trying to understand what you are reporting, without any understanding of ASN.  So I'm going to leave this to others to evaluate.

Also, do you see the same thing in 3.5 or 3.6?  We aren't patching 3.4 anymore (except for security issues).
msg273501 - (view) Author: geeknik (geeknik) Date: 2016-08-23 18:14
Sure, 3.5 and/or 3.6 has memory leaks during compilation:
https://bugs.python.org/issue27780

And I just compiled 3.5.2 and running that version of python against a non-existent file returns this from LeakSanitizer:

ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-3.5/bin/llvm-symbolizer ASAN_OPTIONS=symbolizer=1 ./python garbage
./python: can't open file 'garbage': [Errno 2] No such file or directory

=================================================================
==5338==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 657546 byte(s) in 584 object(s) allocated from:
    #0 0x4bd4ab in malloc (/root/python-3.5.2/python+0x4bd4ab)
    #1 0x4db577 in PyMem_Malloc /root/python-3.5.2/Objects/obmalloc.c:325:12

Direct leak of 43896 byte(s) in 63 object(s) allocated from:
    #0 0x4bd4ab in malloc (/root/python-3.5.2/python+0x4bd4ab)
    #1 0x4de339 in PyMem_RawMalloc /root/python-3.5.2/Objects/obmalloc.c:293:12
    #2 0x4de339 in _PyObject_Alloc /root/python-3.5.2/Objects/obmalloc.c:1376

Direct leak of 42520 byte(s) in 31 object(s) allocated from:
    #0 0x4bd4ab in malloc (/root/python-3.5.2/python+0x4bd4ab)
    #1 0x4db577 in PyMem_Malloc /root/python-3.5.2/Objects/obmalloc.c:325:12
    #2 0x7e39df in _PyEval_EvalCodeWithName /root/python-3.5.2/Python/ceval.c:4018:14

Direct leak of 28160 byte(s) in 7 object(s) allocated from:
    #0 0x4bd4ab in malloc (/root/python-3.5.2/python+0x4bd4ab)
    #1 0x4db577 in PyMem_Malloc /root/python-3.5.2/Objects/obmalloc.c:325:12
    #2 0x6535ab in set_add_entry /root/python-3.5.2/Objects/setobject.c:313:12

Direct leak of 3584 byte(s) in 15 object(s) allocated from:
    #0 0x4bd79e in realloc (/root/python-3.5.2/python+0x4bd79e)
    #1 0x4db6aa in PyMem_Realloc /root/python-3.5.2/Objects/obmalloc.c:343:12

Direct leak of 3584 byte(s) in 16 object(s) allocated from:
    #0 0x4bd4ab in malloc (/root/python-3.5.2/python+0x4bd4ab)
    #1 0x4db577 in PyMem_Malloc /root/python-3.5.2/Objects/obmalloc.c:325:12
    #2 0x682a09 in type_call /root/python-3.5.2/Objects/typeobject.c:890:11

Direct leak of 448 byte(s) in 2 object(s) allocated from:
    #0 0x4bd4ab in malloc (/root/python-3.5.2/python+0x4bd4ab)
    #1 0x4db577 in PyMem_Malloc /root/python-3.5.2/Objects/obmalloc.c:325:12
    #2 0x88e289 in _Py_InitializeEx_Private /root/python-3.5.2/Python/pylifecycle.c:377:14
    #3 0x4e553f in Py_Main /root/python-3.5.2/Modules/main.c:669:5
    #4 0x4dae5e in main /root/python-3.5.2/./Programs/python.c:65:11

Direct leak of 264 byte(s) in 2 object(s) allocated from:
    #0 0x4bd4ab in malloc (/root/python-3.5.2/python+0x4bd4ab)
    #1 0x4db577 in PyMem_Malloc /root/python-3.5.2/Objects/obmalloc.c:325:12
    #2 0x4e553f in Py_Main /root/python-3.5.2/Modules/main.c:669:5
    #3 0x4dae5e in main /root/python-3.5.2/./Programs/python.c:65:11

Direct leak of 96 byte(s) in 3 object(s) allocated from:
    #0 0x4bd4ab in malloc (/root/python-3.5.2/python+0x4bd4ab)
    #1 0x4db387 in PyMem_RawMalloc /root/python-3.5.2/Objects/obmalloc.c:293:12

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x4bd4ab in malloc (/root/python-3.5.2/python+0x4bd4ab)
    #1 0x4db577 in PyMem_Malloc /root/python-3.5.2/Objects/obmalloc.c:325:12
    #2 0x4e5942 in Py_Main /root/python-3.5.2/Modules/main.c:693:5
    #3 0x4dae5e in main /root/python-3.5.2/./Programs/python.c:65:11

Indirect leak of 124748 byte(s) in 133 object(s) allocated from:
    #0 0x4bd4ab in malloc (/root/python-3.5.2/python+0x4bd4ab)
    #1 0x4de339 in PyMem_RawMalloc /root/python-3.5.2/Objects/obmalloc.c:293:12
    #2 0x4de339 in _PyObject_Alloc /root/python-3.5.2/Objects/obmalloc.c:1376

Indirect leak of 6016 byte(s) in 47 object(s) allocated from:
    #0 0x4bd4ab in malloc (/root/python-3.5.2/python+0x4bd4ab)
    #1 0x4db577 in PyMem_Malloc /root/python-3.5.2/Objects/obmalloc.c:325:12
    #2 0x682a09 in type_call /root/python-3.5.2/Objects/typeobject.c:890:11

Indirect leak of 2912 byte(s) in 7 object(s) allocated from:
    #0 0x4bd4ab in malloc (/root/python-3.5.2/python+0x4bd4ab)
    #1 0x4db577 in PyMem_Malloc /root/python-3.5.2/Objects/obmalloc.c:325:12

Indirect leak of 640 byte(s) in 5 object(s) allocated from:
    #0 0x4bd4ab in malloc (/root/python-3.5.2/python+0x4bd4ab)
    #1 0x4db577 in PyMem_Malloc /root/python-3.5.2/Objects/obmalloc.c:325:12
    #2 0x68dea1 in tp_new_wrapper /root/python-3.5.2/Objects/typeobject.c:5595:11

SUMMARY: AddressSanitizer: 914422 byte(s) leaked in 916 allocation(s).
msg407621 - (view) Author: Ammar Askar (ammar2) * (Python committer) Date: 2021-12-04 00:38
Looks like this got fixed somewhere along between 3.5 and 3.6


---
3.5
---

./python: can't open file 'id:000109': [Errno 2] No such file or directory

=================================================================
==28078==ERROR: LeakSanitizer: detected memory leak



---
3.6
---

./python id:000109     
./python: can't open file 'id:000109': [Errno 2] No such file or directory


Closing as 3.5 is no longer a supported version.
History
Date User Action Args
2022-04-11 14:58:35adminsetgithub: 72018
2021-12-04 00:38:54ammar2setstatus: open -> closed

type: behavior

nosy: + ammar2
messages: + msg407621
resolution: out of date
stage: resolved
2016-08-23 18:16:44koobssetnosy: + koobs

versions: + Python 3.5, Python 3.6
2016-08-23 18:14:08geekniksetmessages: + msg273501
2016-08-23 18:00:36r.david.murraysetmessages: + msg273498
2016-08-23 17:57:47geekniksetmessages: + msg273497
2016-08-23 13:30:37r.david.murraysetnosy: + r.david.murray
messages: + msg273442
2016-08-23 01:57:16geeknikcreate