mirror of
https://github.com/ceph/ceph
synced 2025-02-04 01:14:24 +00:00
asan: add qa/lsan.supp for leak sanitizer suppressions
any executable that links against the heap_profiler leaks 8 bytes for a singleton: > ----------------------------------------------------- > Suppressions used: > count bytes template > 1 8 ^MallocExtension::Register > ----------------------------------------------------- the python script bin/ceph has a lot of leaks: > ----------------------------------------------------- > Suppressions used: > count bytes template > 205 294983 ^PyObject_Malloc > 10 6216 ^_PyObject_Realloc > 1 568 ^PyMem_Calloc > 2 2 ^PyMem_Malloc > 63 58935 ^PyUnicode_New > 10 7294 ^_PyBytes_FromSize > 166 149904 ^_PyObject_GC_Alloc > 5 3360 ^_PyObject_GC_Resize > ----------------------------------------------------- Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
3753469d1b
commit
8c099a5340
26
qa/lsan.supp
Normal file
26
qa/lsan.supp
Normal file
@ -0,0 +1,26 @@
|
||||
# leak suppressions needed to run vstart.sh with WITH_ASAN=ON
|
||||
# to enable, add this to the environment:
|
||||
# LSAN_OPTIONS="suppressions=../qa/lsan.supp"
|
||||
|
||||
# from perfglue/heap_profiler.cc
|
||||
# gperftools allocates a singleton and never frees it
|
||||
leak:^MallocExtension::Register
|
||||
|
||||
# from src/ceph.in
|
||||
# python3.6
|
||||
leak:^_PyObject_Alloc
|
||||
leak:^_PyObject_GC_Resize
|
||||
leak:^PyBytes_FromStringAndSize
|
||||
leak:^PyType_GenericAlloc
|
||||
leak:^set_table_resize
|
||||
# python3.7
|
||||
leak:^_PyObject_Realloc
|
||||
leak:^PyObject_Malloc
|
||||
# python3.8
|
||||
leak:^_PyBytes_FromSize
|
||||
leak:^_PyObject_GC_Alloc
|
||||
leak:^PyMem_Calloc
|
||||
leak:^PyUnicode_New
|
||||
# python3.9, 3.10, 3.11
|
||||
leak:^PyMem_Malloc
|
||||
# python3.12 doesn't leak anything
|
Loading…
Reference in New Issue
Block a user