Skip to content

Indirect memory leak when instantiating hashlib types #140631

Closed as duplicate

Description

@YuanchengJiang

Bug report

Bug description:

import sys
import hashlib
import unittest

class HashLibTestCase(unittest.TestCase):
    def test_case_sha1_0(self):
        m1 = hashlib.sha1()
        self.assertEqual(m2.digest(), bytes.fromhex(expected))

class AuditTest(unittest.TestCase):
    def setUp(self):
        if not hasattr(sys, "audit") or not hasattr(sys, "addaudithook"):
            raise unittest.SkipTest("sys.audit or sys.addaudithook not available")
    def test_pickle(self):
        events = []
        def hook(event, args):
            try:
                args_tuple = tuple(args)
            except TypeError:
                args_tuple = (args,)
            events.append((event, args_tuple))
        sys.addaudithook(hook)

if __name__ == "__main__":
    unittest.main()
==2118218==ERROR: LeakSanitizer: detected memory leaks

Indirect leak of 992 byte(s) in 1 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef17b0fe in _PyObject_MallocWithType ../Include/internal/pycore_object_alloc.h:46
    #2 0x5ab0ef17b0fe in _PyType_AllocNoTrack ../Objects/typeobject.c:2505
    #3 0x5ab0ef17b364 in PyType_GenericAlloc ../Objects/typeobject.c:2536
    #4 0x5ab0ef1b09fd in PyType_FromMetaclass ../Objects/typeobject.c:5475
    #5 0x7ad7965e5b51 in hashlib_init_HASH_type ../Modules/_hashopenssl.c:2763
    #6 0x5ab0ef0e924d in PyModule_ExecDef ../Objects/moduleobject.c:555
    #7 0x5ab0ef4119ea in exec_builtin_or_dynamic ../Python/import.c:860
    #8 0x5ab0ef4119ea in _imp_exec_dynamic_impl ../Python/import.c:4753
    #9 0x5ab0ef4119ea in _imp_exec_dynamic ../Python/clinic/import.c.h:516
    #10 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #11 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #12 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #13 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #14 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #15 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #16 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #17 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #18 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #19 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #20 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #21 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #22 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #23 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #24 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #25 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #26 0x5ab0ef33e758 in builtin_exec_impl ../Python/bltinmodule.c:1180
    #27 0x5ab0ef33e758 in builtin_exec ../Python/clinic/bltinmodule.c.h:571
    #28 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #29 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #30 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #31 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #32 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #33 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #34 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #35 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #36 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #37 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #38 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #39 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #40 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #41 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #42 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #43 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #44 0x5ab0ef512f0e in run_eval_code_obj ../Python/pythonrun.c:1365
    #45 0x5ab0ef512f0e in run_mod ../Python/pythonrun.c:1459
    #46 0x5ab0ef517bb7 in pyrun_file ../Python/pythonrun.c:1293
    #47 0x5ab0ef517bb7 in _PyRun_SimpleFileObject ../Python/pythonrun.c:521
    #48 0x5ab0ef5186dc in _PyRun_AnyFileObject ../Python/pythonrun.c:81
    #49 0x5ab0ef58bafc in pymain_run_file_obj ../Modules/main.c:410
    #50 0x5ab0ef58bafc in pymain_run_file ../Modules/main.c:429
    #51 0x5ab0ef58bafc in pymain_run_python ../Modules/main.c:691

Indirect leak of 483 byte(s) in 1 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef1e060e in PyUnicode_New ../Objects/unicodeobject.c:1358
    #2 0x5ab0ef24f0d3 in PyUnicode_New ../Objects/unicodeobject.c:1307
    #3 0x5ab0ef24f0d3 in unicode_decode_utf8 ../Objects/unicodeobject.c:5364
    #4 0x5ab0ef1b1a08 in PyType_FromMetaclass ../Objects/typeobject.c:5601
    #5 0x7ad7965e5b51 in hashlib_init_HASH_type ../Modules/_hashopenssl.c:2763
    #6 0x5ab0ef0e924d in PyModule_ExecDef ../Objects/moduleobject.c:555
    #7 0x5ab0ef4119ea in exec_builtin_or_dynamic ../Python/import.c:860
    #8 0x5ab0ef4119ea in _imp_exec_dynamic_impl ../Python/import.c:4753
    #9 0x5ab0ef4119ea in _imp_exec_dynamic ../Python/clinic/import.c.h:516
    #10 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #11 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #12 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #13 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #14 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #15 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #16 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #17 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #18 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #19 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #20 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #21 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #22 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #23 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #24 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #25 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #26 0x5ab0ef33e758 in builtin_exec_impl ../Python/bltinmodule.c:1180
    #27 0x5ab0ef33e758 in builtin_exec ../Python/clinic/bltinmodule.c.h:571
    #28 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #29 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #30 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #31 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #32 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #33 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #34 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #35 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #36 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #37 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #38 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #39 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #40 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #41 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #42 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #43 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #44 0x5ab0ef512f0e in run_eval_code_obj ../Python/pythonrun.c:1365
    #45 0x5ab0ef512f0e in run_mod ../Python/pythonrun.c:1459
    #46 0x5ab0ef517bb7 in pyrun_file ../Python/pythonrun.c:1293
    #47 0x5ab0ef517bb7 in _PyRun_SimpleFileObject ../Python/pythonrun.c:521
    #48 0x5ab0ef5186dc in _PyRun_AnyFileObject ../Python/pythonrun.c:81
    #49 0x5ab0ef58bafc in pymain_run_file_obj ../Modules/main.c:410
    #50 0x5ab0ef58bafc in pymain_run_file ../Modules/main.c:429
    #51 0x5ab0ef58bafc in pymain_run_python ../Modules/main.c:691

Indirect leak of 470 byte(s) in 1 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef1b0360 in PyType_FromMetaclass ../Objects/typeobject.c:5325
    #2 0x7ad7965e5b51 in hashlib_init_HASH_type ../Modules/_hashopenssl.c:2763
    #3 0x5ab0ef0e924d in PyModule_ExecDef ../Objects/moduleobject.c:555
    #4 0x5ab0ef4119ea in exec_builtin_or_dynamic ../Python/import.c:860
    #5 0x5ab0ef4119ea in _imp_exec_dynamic_impl ../Python/import.c:4753
    #6 0x5ab0ef4119ea in _imp_exec_dynamic ../Python/clinic/import.c.h:516
    #7 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #8 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #9 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #10 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #11 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #12 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #13 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #14 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #15 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #16 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #17 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #18 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #19 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #20 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #21 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #22 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #23 0x5ab0ef33e758 in builtin_exec_impl ../Python/bltinmodule.c:1180
    #24 0x5ab0ef33e758 in builtin_exec ../Python/clinic/bltinmodule.c.h:571
    #25 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #26 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #27 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #28 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #29 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #30 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #31 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #32 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #33 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #34 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #35 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #36 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #37 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #38 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #39 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #40 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #41 0x5ab0ef512f0e in run_eval_code_obj ../Python/pythonrun.c:1365
    #42 0x5ab0ef512f0e in run_mod ../Python/pythonrun.c:1459
    #43 0x5ab0ef517bb7 in pyrun_file ../Python/pythonrun.c:1293
    #44 0x5ab0ef517bb7 in _PyRun_SimpleFileObject ../Python/pythonrun.c:521
    #45 0x5ab0ef5186dc in _PyRun_AnyFileObject ../Python/pythonrun.c:81
    #46 0x5ab0ef58bafc in pymain_run_file_obj ../Modules/main.c:410
    #47 0x5ab0ef58bafc in pymain_run_file ../Modules/main.c:429
    #48 0x5ab0ef58bafc in pymain_run_python ../Modules/main.c:691
    #49 0x5ab0ef58d3de in Py_RunMain ../Modules/main.c:772
    #50 0x5ab0ef58d3de in pymain_main ../Modules/main.c:802
    #51 0x5ab0ef58d3de in Py_BytesMain ../Modules/main.c:826
    #52 0x7ad7971861c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 282c2c16e7b6600b0b22ea0c99010d2795752b5f)

Indirect leak of 288 byte(s) in 4 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef17b0fe in _PyObject_MallocWithType ../Include/internal/pycore_object_alloc.h:46
    #2 0x5ab0ef17b0fe in _PyType_AllocNoTrack ../Objects/typeobject.c:2505
    #3 0x5ab0ef17b364 in PyType_GenericAlloc ../Objects/typeobject.c:2536
    #4 0x5ab0ef00061d in descr_new ../Objects/descrobject.c:911
    #5 0x5ab0ef00061d in PyDescr_NewMethod ../Objects/descrobject.c:963
    #6 0x5ab0ef19e69a in type_add_method ../Objects/typeobject.c:8318
    #7 0x5ab0ef19e69a in type_add_methods ../Objects/typeobject.c:8371
    #8 0x5ab0ef19e69a in type_ready_fill_dict ../Objects/typeobject.c:8875
    #9 0x5ab0ef19e69a in type_ready ../Objects/typeobject.c:9239
    #10 0x5ab0ef1b192c in PyType_FromMetaclass ../Objects/typeobject.c:5591
    #11 0x7ad7965e5b51 in hashlib_init_HASH_type ../Modules/_hashopenssl.c:2763
    #12 0x5ab0ef0e924d in PyModule_ExecDef ../Objects/moduleobject.c:555
    #13 0x5ab0ef4119ea in exec_builtin_or_dynamic ../Python/import.c:860
    #14 0x5ab0ef4119ea in _imp_exec_dynamic_impl ../Python/import.c:4753
    #15 0x5ab0ef4119ea in _imp_exec_dynamic ../Python/clinic/import.c.h:516
    #16 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #17 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #18 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #19 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #20 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #21 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #22 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #23 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #24 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #25 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #26 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #27 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #28 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #29 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #30 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #31 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #32 0x5ab0ef33e758 in builtin_exec_impl ../Python/bltinmodule.c:1180
    #33 0x5ab0ef33e758 in builtin_exec ../Python/clinic/bltinmodule.c.h:571
    #34 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #35 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #36 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #37 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #38 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #39 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #40 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #41 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #42 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #43 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #44 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #45 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #46 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #47 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #48 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #49 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #50 0x5ab0ef512f0e in run_eval_code_obj ../Python/pythonrun.c:1365
    #51 0x5ab0ef512f0e in run_mod ../Python/pythonrun.c:1459
    #52 0x5ab0ef517bb7 in pyrun_file ../Python/pythonrun.c:1293
    #53 0x5ab0ef517bb7 in _PyRun_SimpleFileObject ../Python/pythonrun.c:521

Indirect leak of 208 byte(s) in 1 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef0950f7 in new_keys_object ../Objects/dictobject.c:784
    #2 0x5ab0ef09dae9 in dictresize ../Objects/dictobject.c:2071
    #3 0x5ab0ef0a5039 in insertion_resize ../Objects/dictobject.c:1771
    #4 0x5ab0ef0a5039 in insert_combined_dict ../Objects/dictobject.c:1780
    #5 0x5ab0ef0a5039 in dict_setdefault_ref_lock_held ../Objects/dictobject.c:4456
    #6 0x5ab0ef19e91a in type_add_getset ../Objects/typeobject.c:8418
    #7 0x5ab0ef19e91a in type_ready_fill_dict ../Objects/typeobject.c:8881
    #8 0x5ab0ef19e91a in type_ready ../Objects/typeobject.c:9239
    #9 0x5ab0ef1b192c in PyType_FromMetaclass ../Objects/typeobject.c:5591
    #10 0x7ad7965e5b51 in hashlib_init_HASH_type ../Modules/_hashopenssl.c:2763
    #11 0x5ab0ef0e924d in PyModule_ExecDef ../Objects/moduleobject.c:555
    #12 0x5ab0ef4119ea in exec_builtin_or_dynamic ../Python/import.c:860
    #13 0x5ab0ef4119ea in _imp_exec_dynamic_impl ../Python/import.c:4753
    #14 0x5ab0ef4119ea in _imp_exec_dynamic ../Python/clinic/import.c.h:516
    #15 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #16 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #17 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #18 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #19 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #20 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #21 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #22 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #23 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #24 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #25 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #26 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #27 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #28 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #29 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #30 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #31 0x5ab0ef33e758 in builtin_exec_impl ../Python/bltinmodule.c:1180
    #32 0x5ab0ef33e758 in builtin_exec ../Python/clinic/bltinmodule.c.h:571
    #33 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #34 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #35 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #36 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #37 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #38 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #39 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #40 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #41 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #42 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #43 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #44 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #45 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #46 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #47 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #48 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #49 0x5ab0ef512f0e in run_eval_code_obj ../Python/pythonrun.c:1365
    #50 0x5ab0ef512f0e in run_mod ../Python/pythonrun.c:1459
    #51 0x5ab0ef517bb7 in pyrun_file ../Python/pythonrun.c:1293
    #52 0x5ab0ef517bb7 in _PyRun_SimpleFileObject ../Python/pythonrun.c:521

Indirect leak of 192 byte(s) in 3 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef17b0fe in _PyObject_MallocWithType ../Include/internal/pycore_object_alloc.h:46
    #2 0x5ab0ef17b0fe in _PyType_AllocNoTrack ../Objects/typeobject.c:2505
    #3 0x5ab0ef17b364 in PyType_GenericAlloc ../Objects/typeobject.c:2536
    #4 0x5ab0ef000c09 in descr_new ../Objects/descrobject.c:911
    #5 0x5ab0ef000c09 in PyDescr_NewGetSet ../Objects/descrobject.c:1007
    #6 0x5ab0ef19e8e5 in type_add_getset ../Objects/typeobject.c:8413
    #7 0x5ab0ef19e8e5 in type_ready_fill_dict ../Objects/typeobject.c:8881
    #8 0x5ab0ef19e8e5 in type_ready ../Objects/typeobject.c:9239
    #9 0x5ab0ef1b192c in PyType_FromMetaclass ../Objects/typeobject.c:5591
    #10 0x7ad7965e5b51 in hashlib_init_HASH_type ../Modules/_hashopenssl.c:2763
    #11 0x5ab0ef0e924d in PyModule_ExecDef ../Objects/moduleobject.c:555
    #12 0x5ab0ef4119ea in exec_builtin_or_dynamic ../Python/import.c:860
    #13 0x5ab0ef4119ea in _imp_exec_dynamic_impl ../Python/import.c:4753
    #14 0x5ab0ef4119ea in _imp_exec_dynamic ../Python/clinic/import.c.h:516
    #15 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #16 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #17 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #18 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #19 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #20 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #21 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #22 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #23 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #24 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #25 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #26 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #27 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #28 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #29 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #30 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #31 0x5ab0ef33e758 in builtin_exec_impl ../Python/bltinmodule.c:1180
    #32 0x5ab0ef33e758 in builtin_exec ../Python/clinic/bltinmodule.c.h:571
    #33 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #34 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #35 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #36 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #37 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #38 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #39 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #40 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #41 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #42 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #43 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #44 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #45 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #46 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #47 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #48 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #49 0x5ab0ef512f0e in run_eval_code_obj ../Python/pythonrun.c:1365
    #50 0x5ab0ef512f0e in run_mod ../Python/pythonrun.c:1459
    #51 0x5ab0ef517bb7 in pyrun_file ../Python/pythonrun.c:1293
    #52 0x5ab0ef517bb7 in _PyRun_SimpleFileObject ../Python/pythonrun.c:521

Indirect leak of 72 byte(s) in 1 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef17b0fe in _PyObject_MallocWithType ../Include/internal/pycore_object_alloc.h:46
    #2 0x5ab0ef17b0fe in _PyType_AllocNoTrack ../Objects/typeobject.c:2505
    #3 0x5ab0ef17b364 in PyType_GenericAlloc ../Objects/typeobject.c:2536
    #4 0x5ab0ef000da2 in descr_new ../Objects/descrobject.c:911
    #5 0x5ab0ef000da2 in PyDescr_NewWrapper ../Objects/descrobject.c:1019
    #6 0x5ab0ef19df12 in add_operators ../Objects/typeobject.c:12133
    #7 0x5ab0ef19df12 in type_ready_fill_dict ../Objects/typeobject.c:8872
    #8 0x5ab0ef19df12 in type_ready ../Objects/typeobject.c:9239
    #9 0x5ab0ef1b192c in PyType_FromMetaclass ../Objects/typeobject.c:5591
    #10 0x7ad7965e5b51 in hashlib_init_HASH_type ../Modules/_hashopenssl.c:2763
    #11 0x5ab0ef0e924d in PyModule_ExecDef ../Objects/moduleobject.c:555
    #12 0x5ab0ef4119ea in exec_builtin_or_dynamic ../Python/import.c:860
    #13 0x5ab0ef4119ea in _imp_exec_dynamic_impl ../Python/import.c:4753
    #14 0x5ab0ef4119ea in _imp_exec_dynamic ../Python/clinic/import.c.h:516
    #15 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #16 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #17 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #18 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #19 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #20 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #21 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #22 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #23 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #24 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #25 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #26 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #27 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #28 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #29 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #30 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #31 0x5ab0ef33e758 in builtin_exec_impl ../Python/bltinmodule.c:1180
    #32 0x5ab0ef33e758 in builtin_exec ../Python/clinic/bltinmodule.c.h:571
    #33 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #34 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #35 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #36 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #37 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #38 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #39 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #40 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #41 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #42 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #43 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #44 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #45 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #46 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #47 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #48 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #49 0x5ab0ef512f0e in run_eval_code_obj ../Python/pythonrun.c:1365
    #50 0x5ab0ef512f0e in run_mod ../Python/pythonrun.c:1459
    #51 0x5ab0ef517bb7 in pyrun_file ../Python/pythonrun.c:1293
    #52 0x5ab0ef517bb7 in _PyRun_SimpleFileObject ../Python/pythonrun.c:521

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef3eb026 in _PyObject_MallocWithType ../Include/internal/pycore_object_alloc.h:46
    #2 0x5ab0ef3eb026 in gc_alloc ../Python/gc.c:2343
    #3 0x5ab0ef3eb026 in _PyObject_GC_New ../Python/gc.c:2363
    #4 0x5ab0ef0a249b in new_dict ../Objects/dictobject.c:875
    #5 0x5ab0ef0a249b in PyDict_New ../Objects/dictobject.c:973
    #6 0x5ab0ef52e47f in ste_new ../Python/symtable.c:156
    #7 0x5ab0ef540bad in symtable_visit_stmt ../Python/symtable.c:1854
    #8 0x5ab0ef5428e0 in symtable_visit_stmt ../Python/symtable.c:1931
    #9 0x5ab0ef543f93 in _PySymtable_Build ../Python/symtable.c:452
    #10 0x5ab0ef3973b1 in compiler_setup ../Python/compile.c:142
    #11 0x5ab0ef3973b1 in new_compiler ../Python/compile.c:172
    #12 0x5ab0ef3973b1 in _PyAST_Compile ../Python/compile.c:1482
    #13 0x5ab0ef51305c in run_mod ../Python/pythonrun.c:1411
    #14 0x5ab0ef517bb7 in pyrun_file ../Python/pythonrun.c:1293
    #15 0x5ab0ef517bb7 in _PyRun_SimpleFileObject ../Python/pythonrun.c:521
    #16 0x5ab0ef5186dc in _PyRun_AnyFileObject ../Python/pythonrun.c:81
    #17 0x5ab0ef58bafc in pymain_run_file_obj ../Modules/main.c:410
    #18 0x5ab0ef58bafc in pymain_run_file ../Modules/main.c:429
    #19 0x5ab0ef58bafc in pymain_run_python ../Modules/main.c:691
    #20 0x5ab0ef58d3de in Py_RunMain ../Modules/main.c:772
    #21 0x5ab0ef58d3de in pymain_main ../Modules/main.c:802
    #22 0x5ab0ef58d3de in Py_BytesMain ../Modules/main.c:826
    #23 0x7ad7971861c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 282c2c16e7b6600b0b22ea0c99010d2795752b5f)
    #24 0x7ad79718628a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 282c2c16e7b6600b0b22ea0c99010d2795752b5f)
    #25 0x5ab0eeea7fa4 in _start (/home/fuzz/WorkSpace/flowfusion-cpython/cpython/build/python+0x21afa4) (BuildId: f28384d3eff6aa8d5f0c5730194edf28c0f6b3bd)

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef3eb27e in _PyObject_MallocWithType ../Include/internal/pycore_object_alloc.h:46
    #2 0x5ab0ef3eb27e in gc_alloc ../Python/gc.c:2343
    #3 0x5ab0ef3eb27e in _PyObject_GC_NewVar ../Python/gc.c:2385
    #4 0x5ab0ef15acab in tuple_alloc ../Objects/tupleobject.c:57
    #5 0x5ab0ef15e1af in PyTuple_Pack ../Objects/tupleobject.c:185
    #6 0x5ab0eefec221 in _PyCode_ConstantKey ../Objects/codeobject.c:3010
    #7 0x5ab0ef38f398 in const_cache_insert ../Python/compile.c:327
    #8 0x5ab0ef39163e in merge_consts_recursive ../Python/compile.c:432
    #9 0x5ab0ef39163e in _PyCompile_AddConst ../Python/compile.c:464
    #10 0x5ab0ef385f09 in codegen_addop_load_const ../Python/codegen.c:292
    #11 0x5ab0ef385f09 in codegen_class_body ../Python/codegen.c:1575
    #12 0x5ab0ef385f09 in codegen_class ../Python/codegen.c:1662
    #13 0x5ab0ef37eb69 in codegen_visit_stmt ../Python/codegen.c:3008
    #14 0x5ab0ef383d76 in codegen_body ../Python/codegen.c:911
    #15 0x5ab0ef38f034 in _PyCodegen_Module ../Python/codegen.c:874
    #16 0x5ab0ef390cb8 in compiler_codegen ../Python/compile.c:835
    #17 0x5ab0ef397421 in compiler_mod ../Python/compile.c:856
    #18 0x5ab0ef397421 in _PyAST_Compile ../Python/compile.c:1487
    #19 0x5ab0ef51305c in run_mod ../Python/pythonrun.c:1411
    #20 0x5ab0ef517bb7 in pyrun_file ../Python/pythonrun.c:1293
    #21 0x5ab0ef517bb7 in _PyRun_SimpleFileObject ../Python/pythonrun.c:521
    #22 0x5ab0ef5186dc in _PyRun_AnyFileObject ../Python/pythonrun.c:81
    #23 0x5ab0ef58bafc in pymain_run_file_obj ../Modules/main.c:410
    #24 0x5ab0ef58bafc in pymain_run_file ../Modules/main.c:429
    #25 0x5ab0ef58bafc in pymain_run_python ../Modules/main.c:691
    #26 0x5ab0ef58d3de in Py_RunMain ../Modules/main.c:772
    #27 0x5ab0ef58d3de in pymain_main ../Modules/main.c:802
    #28 0x5ab0ef58d3de in Py_BytesMain ../Modules/main.c:826
    #29 0x7ad7971861c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 282c2c16e7b6600b0b22ea0c99010d2795752b5f)
    #30 0x7ad79718628a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 282c2c16e7b6600b0b22ea0c99010d2795752b5f)
    #31 0x5ab0eeea7fa4 in _start (/home/fuzz/WorkSpace/flowfusion-cpython/cpython/build/python+0x21afa4) (BuildId: f28384d3eff6aa8d5f0c5730194edf28c0f6b3bd)

Indirect leak of 56 byte(s) in 1 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef3eb27e in _PyObject_MallocWithType ../Include/internal/pycore_object_alloc.h:46
    #2 0x5ab0ef3eb27e in gc_alloc ../Python/gc.c:2343
    #3 0x5ab0ef3eb27e in _PyObject_GC_NewVar ../Python/gc.c:2385
    #4 0x5ab0ef15acab in tuple_alloc ../Objects/tupleobject.c:57
    #5 0x5ab0ef15e1af in PyTuple_Pack ../Objects/tupleobject.c:185
    #6 0x5ab0ef1b12a5 in get_bases_tuple ../Objects/typeobject.c:5135
    #7 0x5ab0ef1b12a5 in PyType_FromMetaclass ../Objects/typeobject.c:5376
    #8 0x7ad7965e5b51 in hashlib_init_HASH_type ../Modules/_hashopenssl.c:2763
    #9 0x5ab0ef0e924d in PyModule_ExecDef ../Objects/moduleobject.c:555
    #10 0x5ab0ef4119ea in exec_builtin_or_dynamic ../Python/import.c:860
    #11 0x5ab0ef4119ea in _imp_exec_dynamic_impl ../Python/import.c:4753
    #12 0x5ab0ef4119ea in _imp_exec_dynamic ../Python/clinic/import.c.h:516
    #13 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #14 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #15 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #16 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #17 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #18 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #19 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #20 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #21 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #22 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #23 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #24 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #25 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #26 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #27 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #28 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #29 0x5ab0ef33e758 in builtin_exec_impl ../Python/bltinmodule.c:1180
    #30 0x5ab0ef33e758 in builtin_exec ../Python/clinic/bltinmodule.c.h:571
    #31 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #32 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #33 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #34 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #35 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #36 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #37 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #38 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #39 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #40 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #41 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #42 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #43 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #44 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #45 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #46 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #47 0x5ab0ef512f0e in run_eval_code_obj ../Python/pythonrun.c:1365
    #48 0x5ab0ef512f0e in run_mod ../Python/pythonrun.c:1459
    #49 0x5ab0ef517bb7 in pyrun_file ../Python/pythonrun.c:1293
    #50 0x5ab0ef517bb7 in _PyRun_SimpleFileObject ../Python/pythonrun.c:521
    #51 0x5ab0ef5186dc in _PyRun_AnyFileObject ../Python/pythonrun.c:81

Indirect leak of 51 byte(s) in 1 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef1e060e in PyUnicode_New ../Objects/unicodeobject.c:1358
    #2 0x5ab0ef24f0d3 in PyUnicode_New ../Objects/unicodeobject.c:1307
    #3 0x5ab0ef24f0d3 in unicode_decode_utf8 ../Objects/unicodeobject.c:5364
    #4 0x5ab0ef2750d3 in PyUnicode_DecodeUTF8Stateful ../Objects/unicodeobject.c:5474
    #5 0x5ab0ef2750d3 in PyUnicode_FromString ../Objects/unicodeobject.c:2118
    #6 0x5ab0ef2750d3 in PyUnicode_InternFromString ../Objects/unicodeobject.c:14993
    #7 0x5ab0ef000c70 in descr_new ../Objects/descrobject.c:915
    #8 0x5ab0ef000c70 in PyDescr_NewGetSet ../Objects/descrobject.c:1007
    #9 0x5ab0ef19e8e5 in type_add_getset ../Objects/typeobject.c:8413
    #10 0x5ab0ef19e8e5 in type_ready_fill_dict ../Objects/typeobject.c:8881
    #11 0x5ab0ef19e8e5 in type_ready ../Objects/typeobject.c:9239
    #12 0x5ab0ef1b192c in PyType_FromMetaclass ../Objects/typeobject.c:5591
    #13 0x7ad7965e5b51 in hashlib_init_HASH_type ../Modules/_hashopenssl.c:2763
    #14 0x5ab0ef0e924d in PyModule_ExecDef ../Objects/moduleobject.c:555
    #15 0x5ab0ef4119ea in exec_builtin_or_dynamic ../Python/import.c:860
    #16 0x5ab0ef4119ea in _imp_exec_dynamic_impl ../Python/import.c:4753
    #17 0x5ab0ef4119ea in _imp_exec_dynamic ../Python/clinic/import.c.h:516
    #18 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #19 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #20 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #21 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #22 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #23 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #24 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #25 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #26 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #27 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #28 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #29 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #30 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #31 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #32 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #33 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #34 0x5ab0ef33e758 in builtin_exec_impl ../Python/bltinmodule.c:1180
    #35 0x5ab0ef33e758 in builtin_exec ../Python/clinic/bltinmodule.c.h:571
    #36 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #37 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #38 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #39 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #40 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #41 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #42 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #43 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #44 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #45 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #46 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #47 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #48 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #49 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #50 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #51 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #52 0x5ab0ef512f0e in run_eval_code_obj ../Python/pythonrun.c:1365
    #53 0x5ab0ef512f0e in run_mod ../Python/pythonrun.c:1459

Indirect leak of 50 byte(s) in 1 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef1e060e in PyUnicode_New ../Objects/unicodeobject.c:1358
    #2 0x5ab0ef24f0d3 in PyUnicode_New ../Objects/unicodeobject.c:1307
    #3 0x5ab0ef24f0d3 in unicode_decode_utf8 ../Objects/unicodeobject.c:5364
    #4 0x5ab0ef2750d3 in PyUnicode_DecodeUTF8Stateful ../Objects/unicodeobject.c:5474
    #5 0x5ab0ef2750d3 in PyUnicode_FromString ../Objects/unicodeobject.c:2118
    #6 0x5ab0ef2750d3 in PyUnicode_InternFromString ../Objects/unicodeobject.c:14993
    #7 0x5ab0ef000684 in descr_new ../Objects/descrobject.c:915
    #8 0x5ab0ef000684 in PyDescr_NewMethod ../Objects/descrobject.c:963
    #9 0x5ab0ef19e69a in type_add_method ../Objects/typeobject.c:8318
    #10 0x5ab0ef19e69a in type_add_methods ../Objects/typeobject.c:8371
    #11 0x5ab0ef19e69a in type_ready_fill_dict ../Objects/typeobject.c:8875
    #12 0x5ab0ef19e69a in type_ready ../Objects/typeobject.c:9239
    #13 0x5ab0ef1b192c in PyType_FromMetaclass ../Objects/typeobject.c:5591
    #14 0x7ad7965e5b51 in hashlib_init_HASH_type ../Modules/_hashopenssl.c:2763
    #15 0x5ab0ef0e924d in PyModule_ExecDef ../Objects/moduleobject.c:555
    #16 0x5ab0ef4119ea in exec_builtin_or_dynamic ../Python/import.c:860
    #17 0x5ab0ef4119ea in _imp_exec_dynamic_impl ../Python/import.c:4753
    #18 0x5ab0ef4119ea in _imp_exec_dynamic ../Python/clinic/import.c.h:516
    #19 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #20 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #21 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #22 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #23 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #24 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #25 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #26 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #27 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #28 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #29 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #30 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #31 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #32 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #33 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #34 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #35 0x5ab0ef33e758 in builtin_exec_impl ../Python/bltinmodule.c:1180
    #36 0x5ab0ef33e758 in builtin_exec ../Python/clinic/bltinmodule.c.h:571
    #37 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #38 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #39 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #40 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #41 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #42 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #43 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #44 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #45 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #46 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #47 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #48 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #49 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #50 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #51 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #52 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #53 0x5ab0ef512f0e in run_eval_code_obj ../Python/pythonrun.c:1365
    #54 0x5ab0ef512f0e in run_mod ../Python/pythonrun.c:1459

Indirect leak of 49 byte(s) in 1 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef1e060e in PyUnicode_New ../Objects/unicodeobject.c:1358
    #2 0x5ab0ef24f0d3 in PyUnicode_New ../Objects/unicodeobject.c:1307
    #3 0x5ab0ef24f0d3 in unicode_decode_utf8 ../Objects/unicodeobject.c:5364
    #4 0x5ab0ef1b1b1e in PyType_FromMetaclass ../Objects/typeobject.c:5631
    #5 0x7ad7965e5b51 in hashlib_init_HASH_type ../Modules/_hashopenssl.c:2763
    #6 0x5ab0ef0e924d in PyModule_ExecDef ../Objects/moduleobject.c:555
    #7 0x5ab0ef4119ea in exec_builtin_or_dynamic ../Python/import.c:860
    #8 0x5ab0ef4119ea in _imp_exec_dynamic_impl ../Python/import.c:4753
    #9 0x5ab0ef4119ea in _imp_exec_dynamic ../Python/clinic/import.c.h:516
    #10 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #11 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #12 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #13 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #14 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #15 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #16 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #17 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #18 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #19 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #20 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #21 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #22 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #23 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #24 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #25 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #26 0x5ab0ef33e758 in builtin_exec_impl ../Python/bltinmodule.c:1180
    #27 0x5ab0ef33e758 in builtin_exec ../Python/clinic/bltinmodule.c.h:571
    #28 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #29 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #30 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #31 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #32 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #33 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #34 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #35 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #36 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #37 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #38 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #39 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #40 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #41 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #42 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #43 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #44 0x5ab0ef512f0e in run_eval_code_obj ../Python/pythonrun.c:1365
    #45 0x5ab0ef512f0e in run_mod ../Python/pythonrun.c:1459
    #46 0x5ab0ef517bb7 in pyrun_file ../Python/pythonrun.c:1293
    #47 0x5ab0ef517bb7 in _PyRun_SimpleFileObject ../Python/pythonrun.c:521
    #48 0x5ab0ef5186dc in _PyRun_AnyFileObject ../Python/pythonrun.c:81
    #49 0x5ab0ef58bafc in pymain_run_file_obj ../Modules/main.c:410
    #50 0x5ab0ef58bafc in pymain_run_file ../Modules/main.c:429
    #51 0x5ab0ef58bafc in pymain_run_python ../Modules/main.c:691

Indirect leak of 45 byte(s) in 1 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef1e060e in PyUnicode_New ../Objects/unicodeobject.c:1358
    #2 0x5ab0ef24f0d3 in PyUnicode_New ../Objects/unicodeobject.c:1307
    #3 0x5ab0ef24f0d3 in unicode_decode_utf8 ../Objects/unicodeobject.c:5364
    #4 0x5ab0ef1b0434 in PyType_FromMetaclass ../Objects/typeobject.c:5352
    #5 0x7ad7965e5b51 in hashlib_init_HASH_type ../Modules/_hashopenssl.c:2763
    #6 0x5ab0ef0e924d in PyModule_ExecDef ../Objects/moduleobject.c:555
    #7 0x5ab0ef4119ea in exec_builtin_or_dynamic ../Python/import.c:860
    #8 0x5ab0ef4119ea in _imp_exec_dynamic_impl ../Python/import.c:4753
    #9 0x5ab0ef4119ea in _imp_exec_dynamic ../Python/clinic/import.c.h:516
    #10 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #11 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #12 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #13 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #14 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #15 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #16 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #17 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #18 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #19 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #20 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #21 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #22 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #23 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #24 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #25 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #26 0x5ab0ef33e758 in builtin_exec_impl ../Python/bltinmodule.c:1180
    #27 0x5ab0ef33e758 in builtin_exec ../Python/clinic/bltinmodule.c.h:571
    #28 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #29 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #30 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #31 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #32 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #33 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #34 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #35 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #36 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #37 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #38 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #39 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #40 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #41 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #42 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #43 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #44 0x5ab0ef512f0e in run_eval_code_obj ../Python/pythonrun.c:1365
    #45 0x5ab0ef512f0e in run_mod ../Python/pythonrun.c:1459
    #46 0x5ab0ef517bb7 in pyrun_file ../Python/pythonrun.c:1293
    #47 0x5ab0ef517bb7 in _PyRun_SimpleFileObject ../Python/pythonrun.c:521
    #48 0x5ab0ef5186dc in _PyRun_AnyFileObject ../Python/pythonrun.c:81
    #49 0x5ab0ef58bafc in pymain_run_file_obj ../Modules/main.c:410
    #50 0x5ab0ef58bafc in pymain_run_file ../Modules/main.c:429
    #51 0x5ab0ef58bafc in pymain_run_python ../Modules/main.c:691

Indirect leak of 14 byte(s) in 1 object(s) allocated from:
    #0 0x7ad7975549c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5ab0ef1b0494 in PyType_FromMetaclass ../Objects/typeobject.c:5367
    #2 0x7ad7965e5b51 in hashlib_init_HASH_type ../Modules/_hashopenssl.c:2763
    #3 0x5ab0ef0e924d in PyModule_ExecDef ../Objects/moduleobject.c:555
    #4 0x5ab0ef4119ea in exec_builtin_or_dynamic ../Python/import.c:860
    #5 0x5ab0ef4119ea in _imp_exec_dynamic_impl ../Python/import.c:4753
    #6 0x5ab0ef4119ea in _imp_exec_dynamic ../Python/clinic/import.c.h:516
    #7 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #8 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #9 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #10 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #11 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #12 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #13 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #14 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #15 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #16 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #17 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #18 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #19 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #20 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #21 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #22 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #23 0x5ab0ef33e758 in builtin_exec_impl ../Python/bltinmodule.c:1180
    #24 0x5ab0ef33e758 in builtin_exec ../Python/clinic/bltinmodule.c.h:571
    #25 0x5ab0eefd4ffe in _PyVectorcall_Call ../Objects/call.c:273
    #26 0x5ab0eefd4ffe in _PyObject_Call ../Objects/call.c:348
    #27 0x5ab0eefd4ffe in PyObject_Call ../Objects/call.c:373
    #28 0x5ab0eee74eb7 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:2616
    #29 0x5ab0ef354b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #30 0x5ab0ef354b55 in _PyEval_Vector ../Python/ceval.c:2001
    #31 0x5ab0eefcf062 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169
    #32 0x5ab0eefcf062 in object_vacall ../Objects/call.c:819
    #33 0x5ab0eefd26b1 in PyObject_CallMethodObjArgs ../Objects/call.c:886
    #34 0x5ab0ef41d4d3 in import_find_and_load ../Python/import.c:3701
    #35 0x5ab0ef41d4d3 in PyImport_ImportModuleLevelObject ../Python/import.c:3783
    #36 0x5ab0ef34f795 in _PyEval_ImportName ../Python/ceval.c:3017
    #37 0x5ab0eee86a5e in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:6219
    #38 0x5ab0ef354386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121
    #39 0x5ab0ef354386 in _PyEval_Vector ../Python/ceval.c:2001
    #40 0x5ab0ef354386 in PyEval_EvalCode ../Python/ceval.c:884
    #41 0x5ab0ef512f0e in run_eval_code_obj ../Python/pythonrun.c:1365
    #42 0x5ab0ef512f0e in run_mod ../Python/pythonrun.c:1459
    #43 0x5ab0ef517bb7 in pyrun_file ../Python/pythonrun.c:1293
    #44 0x5ab0ef517bb7 in _PyRun_SimpleFileObject ../Python/pythonrun.c:521
    #45 0x5ab0ef5186dc in _PyRun_AnyFileObject ../Python/pythonrun.c:81
    #46 0x5ab0ef58bafc in pymain_run_file_obj ../Modules/main.c:410
    #47 0x5ab0ef58bafc in pymain_run_file ../Modules/main.c:429
    #48 0x5ab0ef58bafc in pymain_run_python ../Modules/main.c:691
    #49 0x5ab0ef58d3de in Py_RunMain ../Modules/main.c:772
    #50 0x5ab0ef58d3de in pymain_main ../Modules/main.c:802
    #51 0x5ab0ef58d3de in Py_BytesMain ../Modules/main.c:826
    #52 0x7ad7971861c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 282c2c16e7b6600b0b22ea0c99010d2795752b5f)

SUMMARY: AddressSanitizer: 3098 byte(s) leaked in 20 allocation(s).

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Activity

  1. ZeroIntensity commented on Oct 26, 2025

    @ZeroIntensity
    Member
  2. self-assigned this
    on Oct 26, 2025
  3. picnixz commented on Oct 26, 2025

    @picnixz
    Member

    Those are indirect leaks and I don't really know where it's leaking. Can you remove the dependency on audithook please?

  4. added
    pendingThe issue will be closed if no feedback is provided
    on Oct 26, 2025
  5. changed the title [-]memory leak hashlib[/-] [+]Indirect memory leak when instantiating hashlib types[/+] on Oct 26, 2025
  6. YuanchengJiang commented on Oct 26, 2025

    @YuanchengJiang
    Author

    interestingly, i have tried to remove the audit part (also the hashlib part), then it turns out each part has no leak but combination throws the leaks. i dont know why

  7. picnixz commented on Oct 26, 2025

    @picnixz
    Member

    As those are indirect leaks I don't think they are important actually. It could be a more general issue with instantiating types.

  8. picnixz commented on Oct 30, 2025

    @picnixz
    Member

    @YuanchengJiang I see that the code actually may raise a NameError because expected doesn't exist. Could it be because of that? And more generally, can you actually remove the unittest dependency and make them two simpler classes:

    test1 = HashlibTest()
    test1.test_method()
    
    test2 = AuditHookTest()
    test2.test_method()
  9. picnixz commented on Oct 31, 2025

    @picnixz
    Member

    I think this is a duplicate of #140860 then? @YuanchengJiang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

extension-modulesC modules in the Modules dirpendingThe issue will be closed if no feedback is providedtype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions