I need to maintain a Valgrind suppression file for a large project. We filter unfixable errors from a tool we link to. It's likely that this file will need to be updated over time as new releases of the tool are released.
Here is an example of a rule we're suppressing:
{
<insert_a_suppression_name_here>
Memcheck:Cond
fun:Wredxor
obj:/tmp/*/vcs_sim_exe*
...
fun:SNPSle_*
...
fun:VCS_MAIN
obj:/tmp/*/vcs_sim_exe*
...
fun:main
}
I'd like to add something like the following line before (or inside the rule):
// Rule added for release 2019.X.Y.Z release.
I have not been able to find a reference to comments in the Valgrind documentation.
Comments in a suppression file are starting with a # character. https://www.valgrind.org/docs/manual/manual-core.html#manual-core.suppress should mention that (and will soon :)).
I would also recommend that you use something unique and explanatory for the <insert_a_suppression_name_here>
string. In particular if you want to use the suppression file with a test suite, this will allow you to track which suppressions are being used (via either the -v or -s options).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With