Includes known Valgrind warnings in our dependencies that cannot be fixed in-tree.
Example use:
0$ valgrind --suppressions=contrib/valgrind.supp src/test/test_bitcoin
1$ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
2 --show-leak-kinds=all src/test/test_bitcoin --log_level=test_suite
Running with the suppressions file under Ubuntu 16.04:
0$ valgrind --suppressions=contrib/valgrind.supp --leak-check=full --show-leak-kinds=all src/test/test_bitcoin --log_level=test_suite --run_test=wallet_crypto
1…
2==10769== LEAK SUMMARY:
3==10769== definitely lost: 0 bytes in 0 blocks
4==10769== indirectly lost: 0 bytes in 0 blocks
5==10769== possibly lost: 0 bytes in 0 blocks
6==10769== still reachable: 0 bytes in 0 blocks
7==10769== suppressed: 72,704 bytes in 1 blocks
Running without the suppressions file under Ubuntu 16.04:
0$ valgrind --leak-check=full --show-leak-kinds=all src/test/test_bitcoin --log_level=test_suite --run_test=wallet_crypto
1…
2==10724== 72,704 bytes in 1 blocks are still reachable in loss record 1 of 1
3==10724== at 0x4C2DBF6: malloc (vg_replace_malloc.c:299)
4==10724== by 0x6F74EFF: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
5==10724== by 0x40106B9: call_init.part.0 (dl-init.c:72)
6==10724== by 0x40107CA: call_init (dl-init.c:30)
7==10724== by 0x40107CA: _dl_init (dl-init.c:120)
8==10724== by 0x4000C69: ??? (in /lib/x86_64-linux-gnu/ld-2.23.so)
9==10724== by 0x2: ???
10==10724== by 0x1FFF0006D2: ???
11==10724== by 0x1FFF0006E8: ???
12==10724== by 0x1FFF0006FF: ???
13==10724==
14==10724== LEAK SUMMARY:
15==10724== definitely lost: 0 bytes in 0 blocks
16==10724== indirectly lost: 0 bytes in 0 blocks
17==10724== possibly lost: 0 bytes in 0 blocks
18==10724== still reachable: 72,704 bytes in 1 blocks
19==10724== suppressed: 0 bytes in 0 blocks