]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/tools/CMakeLists: store-bench to use lsan_suppressions
authorMatan Breizman <mbreizma@redhat.com>
Mon, 11 Aug 2025 09:45:38 +0000 (09:45 +0000)
committerSamuel Just <sjust@redhat.com>
Thu, 21 Aug 2025 15:59:39 +0000 (08:59 -0700)
```
=================================================================
==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 <mbreizma@redhat.com>
src/crimson/tools/CMakeLists.txt

index fa1bd1fe25b9a2eb9ae03fa35aea3f5d50734b70..6898efa04a0870516b9e986a57c30dc193d9265f 100644 (file)
@@ -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)