You are here

How To Suppress Understood Valgrind False Positives?

Valgrind is an instrumentation framework for building dynamic analysis tools. It can happen that some Valgrind tools like Helgrind or Memcheck report false positives: the framework provides a mechanism to suppress these reports and is described here.

When profiling an application which uses ROOT libraries or even ROOT itself, Valgrind tools like Helgrind or Memcheck report false positives. For these reason, suppression files are provided in the $ROOTSYS/etc directory and have the .supp extension. The syntax to use them is the following:

valgrind --tool=memcheck --suppressions=$ROOTSYS/etc/valgrind-root.supp --log-file=log --leak-check=full ./myProgram
valgrind --tool=helgrind --suppressions=$ROOTSYS/etc/helgrind-root.supp ./myMultithreadedProgram