Skip to content

Commit 84e2462

Browse files
contrib: Add Valgrind suppressions file
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 ```
1 parent e526ca6 commit 84e2462

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

contrib/valgrind.supp

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Valgrind suppressions file for Bitcoin.
2+
#
3+
# Includes known Valgrind warnings in our dependencies that cannot be fixed
4+
# in-tree.
5+
#
6+
# Example use:
7+
# $ valgrind --suppressions=contrib/valgrind.supp src/test/test_bitcoin
8+
# $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
9+
# --show-leak-kinds=all src/test/test_bitcoin --log_level=test_suite
10+
{
11+
Suppress libstdc++ warning - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65434
12+
Memcheck:Leak
13+
match-leak-kinds: reachable
14+
fun:malloc
15+
obj:*/libstdc++.*
16+
fun:call_init.part.0
17+
fun:call_init
18+
fun:_dl_init
19+
obj:*/ld-*.so
20+
}
21+
{
22+
Suppress libdb warning - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662917
23+
Memcheck:Cond
24+
obj:*/libdb_cxx-*.so
25+
fun:__log_put
26+
obj:*/libdb_cxx-*.so
27+
fun:__log_put_record
28+
}
29+
{
30+
Suppress leveldb warning (leveldb::InitModule()) - https://github.com/google/leveldb/issues/113
31+
Memcheck:Leak
32+
match-leak-kinds: reachable
33+
fun:_Znwm
34+
fun:_ZN7leveldbL10InitModuleEv
35+
}
36+
{
37+
Suppress leveldb warning (leveldb::Env::Default()) - https://github.com/google/leveldb/issues/113
38+
Memcheck:Leak
39+
match-leak-kinds: reachable
40+
fun:_Znwm
41+
...
42+
fun:_ZN7leveldbL14InitDefaultEnvEv
43+
}

0 commit comments

Comments
 (0)