]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: suppress false positive delete map mismatch errors 67230/head
authorNitzanMordhai <nmordech@ibm.com>
Thu, 5 Feb 2026 11:48:39 +0000 (11:48 +0000)
committerNitzan Mordechai <nmordech@ibm.com>
Sun, 8 Mar 2026 09:15:54 +0000 (09:15 +0000)
Valgrind reports "Mismatched free() / delete / delete []" errors during
OSD startup.

Standard library containers (like std::map) correctly call delete, but
Valgrind falsely interprets this as a call to delete[] because GCC 14
folds the identical aligned delete operators into a single symbol. This
causes Valgrind to flag a mismatch against the non-array allocation.

Fixes: https://tracker.ceph.com/issues/74604
Signed-off-by: Nitzan Mordechai <nmordech@ibm.com>
qa/valgrind.supp

index 3a6a9c38cd53c9ea461423beb7710c66cd7f1977..50644f4931f01fa0e989cf66974e3f05693447cf 100644 (file)
    fun:*ProtocolV2*
    ...
 }
-
+{
+   rocky10_gcc14_mismatch_delete_map_erase
+   Memcheck:Free
+   fun:_Zda*align_val_t*
+   ...
+   fun:*global_init_prefork*
+}
+{
+   rocky10_gcc14_mismatch_delete_map_erase
+   Memcheck:Free
+   fun:_Zda*align_val_t*
+   ...
+   fun:*ceph6common11CephContext*
+}
+{
+   rocky10_gcc14_mismatch_delete_map_erase
+   Memcheck:Free
+   fun:_Zda*align_val_t*
+   ...
+   fun:exit
+}