Repository navigation
qa/valgrind: generalize suppressions for gcc-14 MismatchedFree - #68289
Conversation
the rgw suite is showing a handful of these false positives, and i really don't want to micromanage suppressions for every little thing that shows up here so i chose to generalize the existing suppressions from https://tracker.ceph.com/issues/74604 so that a single suppression would cover this entire class of MismatchedFree warnings Fixes: https://tracker.ceph.com/issues/75945 Signed-off-by: Casey Bodley <[email protected]>
|
the rgw suite baseline yesterday showed 5 https://pulpito.ceph.com/cbodley-2026-04-09_15:42:21-rgw-main-distro-default-trial/ is a --rerun of those failures using this --suite-branch, showing 5 new passes and no valgrind errors |
|
This LGTM. And I got to learn about the leak suppression system! |
| rocky10_gcc14_mismatch_delete_map_erase | ||
| rocky10_gcc14_mismatch_delete | ||
| Memcheck:Free | ||
| fun:_Zda*align_val_t* |
There was a problem hiding this comment.
Between
{
<allthefrees, so we can behave with tcmalloc>
Memcheck:Free
fun:free
...
}
which suppresses all free() instances,
{
co_compose bug manifesting under Ubuntu only
Memcheck:Free
fun:_ZdaPvm
...
}
which suppresses all operator delete[](void*, unsigned long) instances and this one which suppresses all operator delete[] instances with align_val_t in the parameter list, is there anything meaningful left? Plain delete?
There was a problem hiding this comment.
is there anything meaningful left? Plain delete?
i suppose not. according to @NitzanMordhai from #67230, we don't even have a separate symbol for aligned delete anymore:
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.
if we're getting false positives just from using standard library containers, i don't want to keep adding more suppressions every time this shows up under a new call stack
by turning this into a blanket suppression, we unfortunately lose the ability to catch real MismatchedFree issues in our code. that's why i tagged everyone for review
There was a problem hiding this comment.
Yeah, Valgrind recommends building tcmalloc with -DTCMALLOC_NO_ALIASES and disabling identical code folding when linking for test builds.
What I was getting at is perhaps all of those suppressions could be merged into a single one, simply ignoring all Memcheck:Free reports? I suppose it would be equivalent to invoking Valgrind with --show-mismatched-frees=no option.
There was a problem hiding this comment.
this updated suppression failed qa with
==00:00:00:00.084 19744== FATAL: in suppressions file "/home/ubuntu/cephtest/valgrind.supp" near line 6:
==00:00:00:00.084 19744== suppression must contain at least one location line which is not "..."
i think this means we'll still need separate suppressions for fun:free fun:_ZdaPvm and fun:_Zda*align_val_t*
There was a problem hiding this comment.
I think _Zda and _Zda*align_val_t* can be merged into _Zda* -- both are variants of operator delete[], but it's a really minor nit. I didn't realize Valgrind is this
suppression must contain at least one location line which is not "..."
picky.
There was a problem hiding this comment.
thanks, simplified to fun:free and fun:_Zda*
|
in rocky10.1 runs i see a lot of these failures: should these also be supressed? |
@yuvalif yes, this pr suppresses that MismatchedFree error tracked in https://tracker.ceph.com/issues/75945. in the meantime, feel free to include this commit in your qa runs |
|
jenkins test api |
combine the various MismatchedFree suppressions into unconditional ones for each function Signed-off-by: Casey Bodley <[email protected]>
|
fyi @NitzanMordhai i did a tentacle backport of this and two of your prs in #68431 |
the rgw suite is showing a handful of these false positives, and i really don't want to micromanage suppressions for every little thing that shows up here
so i chose to generalize the existing suppressions from https://tracker.ceph.com/issues/74604 so that a single suppression would cover this entire class of MismatchedFree warnings
Fixes: https://tracker.ceph.com/issues/75945
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.