From a256a4c4253faaa2ecf6036ca905dd6eb665e9a3 Mon Sep 17 00:00:00 2001 From: NitzanMordhai Date: Thu, 5 Feb 2026 11:48:39 +0000 Subject: [PATCH] qa: suppress false positive delete map mismatch errors 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 (cherry picked from commit ae9ae0353e68543b4d6beace2767fb7ba046aa1b) --- qa/valgrind.supp | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/qa/valgrind.supp b/qa/valgrind.supp index 3a6a9c38cd53..50644f4931f0 100644 --- a/qa/valgrind.supp +++ b/qa/valgrind.supp @@ -932,4 +932,24 @@ 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 +} -- 2.47.3