[issue32343] Leak Sanitizer reports memory leaks while building using ASAN

2022-01-23 Thread Irit Katriel


Irit Katriel  added the comment:

Python 3.7 is not longer maintained, so it is unlikely that anyone will look at 
these. Please create a new issue if you are seeing this problem on a current 
version.

--
nosy: +iritkatriel
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32343] Leak Sanitizer reports memory leaks while building using ASAN

2019-12-16 Thread https403


https403  added the comment:

I got similar errors while playing around configure opts, but seems come from 
different places.

Configure opts: --enable-optimizations --with-address-sanitizer 
--with-undefined-behavior-sanitizer --with-pymalloc

Build environment: DigitalOcean $5 w/ Ubuntu 18.04 LTS

=
==26611==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 80 byte(s) in 1 object(s) allocated from:
#0 0x4f5ac0 in malloc 
(/tmp/python-build.20191217041116.18861/Python-3.7.5/python+0x4f5ac0)
#1 0xaf2362 in _PyObject_GC_Alloc 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Modules/gcmodule.c:1696:26
#2 0xaf285a in _PyObject_GC_Malloc 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Modules/gcmodule.c:1718:12
#3 0xaf285a in _PyObject_GC_New 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Modules/gcmodule.c:1730
#4 0x64b03f in new_dict 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Objects/dictobject.c:584:14
#5 0xa7964a in ste_new 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/symtable.c:85:24
#6 0xa7964a in symtable_enter_block 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/symtable.c:943
#7 0xa7fd35 in symtable_visit_stmt 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/symtable.c:1131:14
#8 0xa7f90b in symtable_visit_stmt 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/symtable.c:1153:9
#9 0xa77bac in PySymtable_BuildObject 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/symtable.c:293:18
#10 0x95fbc5 in PyAST_CompileObject 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/compile.c:342:14
#11 0xa6ca51 in Py_CompileStringObject 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/pythonrun.c:1102:10
#12 0x8f9d61 in builtin_compile_impl 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/bltinmodule.c:878:14 
   #13 0x8f9d61 in builtin_compile 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/clinic/bltinmodule.c.h:177
#14 0x58c722 in _PyMethodDef_RawFastCallDict 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Objects/call.c:544:18
#15 0x58784c in _PyCFunction_FastCallDict 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Objects/call.c:586:14
#16 0x9193df in do_call_core 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/ceval.c:4641:9
#17 0x9193df in _PyEval_EvalFrameDefault 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/ceval.c:3191
#18 0x953711 in _PyEval_EvalCodeWithName 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/ceval.c:3930:14
#19 0x588f5e in _PyFunction_FastCallKeywords 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Objects/call.c:433:12
#20 0x94e195 in call_function 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/ceval.c:4616:17
#21 0x91670e in _PyEval_EvalFrameDefault 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/ceval.c:3139:19
#22 0x953711 in _PyEval_EvalCodeWithName 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/ceval.c:3930:14
#23 0x588f5e in _PyFunction_FastCallKeywords 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Objects/call.c:433:12
#24 0x94e195 in call_function 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/ceval.c:4616:17
#25 0x91e6eb in _PyEval_EvalFrameDefault 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/ceval.c:3110:23
#26 0x58b839 in function_code_fastcall 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Objects/call.c:283:14
#27 0x94e195 in call_function 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/ceval.c:4616:17
#28 0x91e6eb in _PyEval_EvalFrameDefault 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/ceval.c:3110:23
#29 0x58b839 in function_code_fastcall 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Objects/call.c:283:14
#30 0x94e195 in call_function 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/ceval.c:4616:17
#31 0x91e6eb in _PyEval_EvalFrameDefault 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/ceval.c:3110:23
#32 0x58b839 in function_code_fastcall 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Objects/call.c:283:14
#33 0x94e195 in call_function 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Python/ceval.c:4616:17

Direct leak of 64 byte(s) in 1 object(s) allocated from:
#0 0x4f5ac0 in malloc 
(/tmp/python-build.20191217041116.18861/Python-3.7.5/python+0x4f5ac0)
#1 0xaf2362 in _PyObject_GC_Alloc 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Modules/gcmodule.c:1696:26
#2 0xaf2a4b in _PyObject_GC_Malloc 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Modules/gcmodule.c:1718:12
#3 0xaf2a4b in _PyObject_GC_NewVar 
/tmp/python-build.20191217041116.18861/Python-3.7.5/Modules/gcmodule.c:1747
#4 0x70ff55 in PyTuple_New 
/tmp/python-bu

[issue32343] Leak Sanitizer reports memory leaks while building using ASAN

2017-12-15 Thread Kirit Sankar Gupta

New submission from Kirit Sankar Gupta :

./python -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi

=
==12061==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 287665 byte(s) in 116 object(s) allocated from:
#0 0x4ef9b0 in malloc (/home/ksg/cpython/python+0x4ef9b0)
#1 0x6411a9 in PyMem_RawMalloc /home/ksg/cpython/Objects/obmalloc.c:503:12
#2 0x6411a9 in _PyObject_Malloc /home/ksg/cpython/Objects/obmalloc.c:1560
#3 0x6462c7 in PyObject_Malloc /home/ksg/cpython/Objects/obmalloc.c:616:12

Direct leak of 5096 byte(s) in 9 object(s) allocated from:
#0 0x4ef9b0 in malloc (/home/ksg/cpython/python+0x4ef9b0)
#1 0x6411a9 in PyMem_RawMalloc /home/ksg/cpython/Objects/obmalloc.c:503:12
#2 0x6411a9 in _PyObject_Malloc /home/ksg/cpython/Objects/obmalloc.c:1560
#3 0x6462c7 in PyObject_Malloc /home/ksg/cpython/Objects/obmalloc.c:616:12
#4 0x9786dd in _PyObject_GC_Malloc 
/home/ksg/cpython/Modules/gcmodule.c:1713:12
#5 0x9786dd in _PyObject_GC_NewVar /home/ksg/cpython/Modules/gcmodule.c:1742

Direct leak of 2746 byte(s) in 3 object(s) allocated from:
#0 0x4efdd5 in realloc (/home/ksg/cpython/python+0x4efdd5)
#1 0x641828 in PyMem_RawRealloc /home/ksg/cpython/Objects/obmalloc.c:521:12
#2 0x641828 in _PyObject_Realloc /home/ksg/cpython/Objects/obmalloc.c:1905
#3 0x6463fd in PyObject_Realloc /home/ksg/cpython/Objects/obmalloc.c:634:12

Direct leak of 591 byte(s) in 1 object(s) allocated from:
#0 0x4ef9b0 in malloc (/home/ksg/cpython/python+0x4ef9b0)
#1 0x6411a9 in PyMem_RawMalloc /home/ksg/cpython/Objects/obmalloc.c:503:12
#2 0x6411a9 in _PyObject_Malloc /home/ksg/cpython/Objects/obmalloc.c:1560
#3 0x6462c7 in PyObject_Malloc /home/ksg/cpython/Objects/obmalloc.c:616:12
#4 0x8dace5 in r_object /home/ksg/cpython/Python/marshal.c:1392:20
#5 0x8d8780 in r_object /home/ksg/cpython/Python/marshal.c:1224:18
#6 0x8dad1c in r_object /home/ksg/cpython/Python/marshal.c:1395:22
#7 0x8d8780 in r_object /home/ksg/cpython/Python/marshal.c:1224:18
#8 0x8dad1c in r_object /home/ksg/cpython/Python/marshal.c:1395:22
#9 0x8d3e1d in PyMarshal_ReadObjectFromString 
/home/ksg/cpython/Python/marshal.c:1598:14
#10 0x8bffa6 in get_frozen_object /home/ksg/cpython/Python/import.c:1258:12
#11 0x8bffa6 in _imp_get_frozen_object_impl 
/home/ksg/cpython/Python/import.c:2018
#12 0x8bffa6 in _imp_get_frozen_object 
/home/ksg/cpython/Python/clinic/import.c.h:176
#13 0x568e15 in _PyMethodDef_RawFastCallDict 
/home/ksg/cpython/Objects/call.c:497:18
#14 0x56772b in _PyCFunction_FastCallDict 
/home/ksg/cpython/Objects/call.c:582:14
#15 0x56772b in PyCFunction_Call /home/ksg/cpython/Objects/call.c:787

Direct leak of 560 byte(s) in 1 object(s) allocated from:
#0 0x4ef9b0 in malloc (/home/ksg/cpython/python+0x4ef9b0)
#1 0x641900 in PyMem_RawMalloc /home/ksg/cpython/Objects/obmalloc.c:503:12
#2 0x641900 in _PyObject_Malloc /home/ksg/cpython/Objects/obmalloc.c:1560
#3 0x641900 in pymalloc_realloc /home/ksg/cpython/Objects/obmalloc.c:1882
#4 0x641900 in _PyObject_Realloc /home/ksg/cpython/Objects/obmalloc.c:1901
#5 0x6463fd in PyObject_Realloc /home/ksg/cpython/Objects/obmalloc.c:634:12

Direct leak of 2 byte(s) in 2 object(s) allocated from:
#0 0x4ef9b0 in malloc (/home/ksg/cpython/python+0x4ef9b0)
#1 0x6411a9 in PyMem_RawMalloc /home/ksg/cpython/Objects/obmalloc.c:503:12
#2 0x6411a9 in _PyObject_Malloc /home/ksg/cpython/Objects/obmalloc.c:1560
#3 0x645e07 in PyMem_Malloc /home/ksg/cpython/Objects/obmalloc.c:536:12

Indirect leak of 28768 byte(s) in 31 object(s) allocated from:
#0 0x4ef9b0 in malloc (/home/ksg/cpython/python+0x4ef9b0)
#1 0x6411a9 in PyMem_RawMalloc /home/ksg/cpython/Objects/obmalloc.c:503:12
#2 0x6411a9 in _PyObject_Malloc /home/ksg/cpython/Objects/obmalloc.c:1560
#3 0x6462c7 in PyObject_Malloc /home/ksg/cpython/Objects/obmalloc.c:616:12
#4 0x67ab2a in PyType_GenericAlloc 
/home/ksg/cpython/Objects/typeobject.c:969:15

Indirect leak of 8028 byte(s) in 8 object(s) allocated from:
#0 0x4ef9b0 in malloc (/home/ksg/cpython/python+0x4ef9b0)
#1 0x6411a9 in PyMem_RawMalloc /home/ksg/cpython/Objects/obmalloc.c:503:12
#2 0x6411a9 in _PyObject_Malloc /home/ksg/cpython/Objects/obmalloc.c:1560
#3 0x6462c7 in PyObject_Malloc /home/ksg/cpython/Objects/obmalloc.c:616:12

Indirect leak of 2571 byte(s) in 2 object(s) allocated from:
#0 0x4ef9b0 in malloc (/home/ksg/cpython/python+0x4ef9b0)
#1 0x6411a9 in PyMem_RawMalloc /home/ksg/cpython/Objects/obmalloc.c:503:12
#2 0x6411a9 in _PyObject_Malloc /home/ksg/cpython/Objects/obmalloc.c:1560
#3 0x6462c7 in PyObject_Malloc /home/ksg/cpython/Objects/obmalloc.c:616:12
#4 0x68d0b6 in type_call /home/ksg/cpython/Objects/