Hi,
I am having the same problem as Valgrind suppression file however I decided to open a new post.
So I am using a virtual machine with Scientific Linux 7 in a MacBook air with OSX 10.11.2, ROOT 6.02/08 and Valgrind 3.10.0.
I am using:
valgrind --tool=memcheck --log-file=log_valgrind --suppressions=$ROOTSYS/etc/valgrind-root.supp ../bin/Interpolate.exe
with and without linking against ROOT, however I am not using any ROOT class so far, therefore I can choose not to link against ROOT if I want to. I got the files I attached, you can see that without ROOT everything is ok. With ROOT I get memory leaks.
Then I try to do the same by using:
valgrind --leak-check=yes --log-file=log_valgrind --suppressions=$ROOTSYS/etc/valgrind-root.supp ../bin/Interpolate.exe
also with and without ROOT, I also attached the files. As you can see with ROOT and with the leak-check=yes option the output is ~10k lines long, without ROOT its really short and without any errors.
In valgrind.org/docs/manual/quick-start.html I can see:
[quote]The --leak-check option turns on the detailed memory leak detector.[/quote].
In valgrind.org/docs/manual/mc-manual.html I also read:
In the same page I read:
[quote]–leak-check=<no|summary|yes|full> [default: summary]
When enabled, search for memory leaks when the client program finishes. If set to summary, it says how many leaks occurred. If set to full or yes, each individual leak will be shown in detail and/or counted as an error, as specified by the options --show-leak-kinds and --errors-for-leak-kinds.[/quote]
However in Valgrind suppression file you say that it’s Valgrind’s issue because your code is well written.
So I am lead to think that:
-
Those memory leaks are interfering with my (and others) debugging process.
-
The suppression file is just suppressing the least detailed output, once you include --leak-check=yes (or “full” instead of the default “summary”) we get flooded with thousands of lines originating in ROOT.
Can you comment on this? Is there a way to suppress also the detailed output from what you claim are “false positives”? maybe expanding/modifying the suppression file?
Thanks.
no_root_leakcheck.txt (668 Bytes)
with_root_leakcheck.txt (1.24 MB)
with_root_memcheck.txt (1.29 KB)
no_root_memcheck.txt (1000 Bytes)