Skip to content

Commit 3aef9fc

Browse files
authored
Merge pull request ceph#65408 from tchaikov/wip-suppress-asan-warnings
qa/{asan,lsan}.supp: suppress Python module and libstdc++ false positives Reviewed-by: Casey Bodley <[email protected]>
2 parents fd8723e + b3d0d73 commit 3aef9fc

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

cmake/modules/AddCephTest.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function(add_ceph_test test_name test_path)
3232
set_property(TEST ${test_name}
3333
APPEND
3434
PROPERTY ENVIRONMENT
35-
ASAN_OPTIONS=detect_odr_violation=0
35+
ASAN_OPTIONS=suppressions=${CMAKE_SOURCE_DIR}/qa/asan.supp,detect_odr_violation=0
3636
LSAN_OPTIONS=suppressions=${CMAKE_SOURCE_DIR}/qa/lsan.supp,print_suppressions=0)
3737
endif()
3838
set_property(TEST ${test_name}

qa/asan.supp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# ASan's interceptor is not able to find the real throw function because of
2+
# https://github.com/google/sanitizers/issues/934
3+
interceptor_via_fun:__interceptor___cxa_throw

qa/lsan.supp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ leak:^PyUnicode_New
2828
# python3.9, 3.10, 3.11
2929
leak:^PyMem_Malloc
3030
# python3.12 doesn't leak anything
31+
# python3.13
32+
leak:^PyModule_ExecDef
33+
34+
# following suppression mirrors qa/valgrind.supp
35+
# ignore ec plugin factory (FIXME SOMEDAY)
36+
leak:^ceph::ErasureCodePluginRegistry::load

0 commit comments

Comments
 (0)