This PR de-dupes the current suppressions, then reduces the additional ones currently generated down to the minimal entries needed to run valgrind 3.16.0 with --exit-on-first-error=yes
. Tested on Debian 4.19 x86/64. Feedback welcome.
These suppressions allow running valgrind without errors on current master for…
test_bitcoin:
0 valgrind --leak-check=full --show-leak-kinds=all --show-reachable=yes \
1 --gen-suppressions=all --error-limit=no -s \
2 --suppressions=contrib/valgrind.supp \
3 src/test/test_bitcoin --log_level=test_suite
bench_bitcoin:
0 valgrind --leak-check=full --show-leak-kinds=all --show-reachable=yes \
1 --gen-suppressions=all --error-limit=no -s \
2 --suppressions=contrib/valgrind.supp \
3 src/bench/bench_bitcoin -evals=1
test_bitcoin-qt:
0 valgrind --leak-check=full --show-leak-kinds=all --show-reachable=yes \
1 --gen-suppressions=all --error-limit=no -s \
2 --suppressions=contrib/valgrind.supp \
3 src/qt/test/test_bitcoin-qt --log_level=test_suite
and with make check-valgrind
in PR #17639 which runs them all.