From: Matan Breizman Date: Mon, 11 Aug 2025 09:45:38 +0000 (+0000) Subject: crimson/tools/CMakeLists: store-bench to use lsan_suppressions X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9aa5cec78bcc7449feef84099d74e41172210047;p=ceph.git crimson/tools/CMakeLists: store-bench to use lsan_suppressions ``` ================================================================= ==598386==ERROR: LeakSanitizer: detected memory leaks Direct leak of 8 byte(s) in 1 object(s) allocated from: #0 0x7fc37fefd578 in operator new(unsigned long) (/lib64/libasan.so.8+0xfd578) (BuildId: 8843146064a37d00e17ca27fd774b31ebc6d40e2) #1 0x7fc37fa2fb71 in MallocExtension::Register(MallocExtension*) (/lib64/libtcmalloc.so.4+0x2fb71) (BuildId: 5fec9a5a81e329ba0c333f14020599650d07af6f) SUMMARY: AddressSanitizer: 8 byte(s) leaked in 1 allocation(s). ``` Signed-off-by: Matan Breizman --- diff --git a/src/crimson/tools/CMakeLists.txt b/src/crimson/tools/CMakeLists.txt index fa1bd1fe25b9a..6898efa04a087 100644 --- a/src/crimson/tools/CMakeLists.txt +++ b/src/crimson/tools/CMakeLists.txt @@ -9,8 +9,9 @@ target_link_libraries(crimson-store-nbd install(TARGETS crimson-store-nbd DESTINATION bin) add_executable(crimson-store-bench - store_bench/store-bench.cc - ) + store_bench/store-bench.cc + ${PROJECT_SOURCE_DIR}/src/crimson/osd/lsan_suppressions.cc) + target_link_libraries(crimson-store-bench crimson-os) install(TARGETS crimson-store-bench DESTINATION bin)