HomePhabricator

[contrib] Add Valgrind suppressions file

Description

[contrib] Add Valgrind suppressions file

Summary:

Includes known Valgrind warnings in our dependencies that cannot be
fixed in-tree.

Example use:

$ valgrind --suppressions=contrib/valgrind.supp src/test/test_bitcoin
$ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
      --show-leak-kinds=all src/test/test_bitcoin --log_level=test_suite

Backport of core PR11035
https://github.com/bitcoin/bitcoin/pull/11035/files

Test Plan:
Build with debug enabled.

valgrind --suppressions=contrib/valgrind.supp src/test/test_bitcoin

Result on my machine:

==24741== HEAP SUMMARY:
==24741==     in use at exit: 1,050,552 bytes in 15 blocks
==24741==   total heap usage: 47,594,831 allocs, 47,594,816 frees,
5,662,452,623 bytes allocated
==24741==
==24741== LEAK SUMMARY:
==24741==    definitely lost: 0 bytes in 0 blocks
==24741==    indirectly lost: 0 bytes in 0 blocks
==24741==      possibly lost: 0 bytes in 0 blocks
==24741==    still reachable: 1,049,592 bytes in 11 blocks
==24741==         suppressed: 960 bytes in 4 blocks

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D3943

Details

Provenance
practicalswift <practicalswift@users.noreply.github.com>Authored on Aug 12 2017, 15:15
FabienCommitted on Aug 27 2019, 15:28
FabienPushed on Aug 27 2019, 16:08
Reviewer
Restricted Project
Differential Revision
D3943: [contrib] Add Valgrind suppressions file
Parents
rSTAGING8cd5e4ccde0c: Merge #12747: Fix typos
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/10973, tag: phabricator/base/10969