Skip to content

Commit 1ed3e07

Browse files
author
MarcoFalke
committed
Merge #17455: tests: Update valgrind suppressions
d604b4c tests: Update valgrind suppressions (practicalswift) Pull request description: Update `valgrind` suppressions. To test this PR: ``` $ valgrind --suppressions=contrib/valgrind.supp src/test/test_bitcoin $ valgrind --suppressions=contrib/valgrind.supp src/bench/bench_bitcoin -evals=1 \ -scaling=0.0 ``` Top commit has no ACKs. Tree-SHA512: 79cb318b5b9171e74d0bd0b89cc688ad4531b134182b06c2942c46058c19b45723c391b781e8ccd157a14fbf6a14588764c7728c5506c73ae237dde9f44db2f6
2 parents f92e750 + d604b4c commit 1ed3e07

File tree

1 file changed

+70
-1
lines changed

1 file changed

+70
-1
lines changed

contrib/valgrind.supp

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@
66
# Example use:
77
# $ valgrind --suppressions=contrib/valgrind.supp src/test/test_bitcoin
88
# $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
9-
# --show-leak-kinds=all src/test/test_bitcoin --log_level=test_suite
9+
# --show-leak-kinds=all src/test/test_bitcoin
10+
#
11+
# To create suppressions for found issues, use the --gen-suppressions=all option:
12+
# $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
13+
# --show-leak-kinds=all --gen-suppressions=all --show-reachable=yes \
14+
# --error-limit=no src/test/test_bitcoin
15+
#
16+
# Note that suppressions may depend on OS and/or library versions.
1017
{
1118
Suppress libstdc++ warning - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65434
1219
Memcheck:Leak
@@ -26,6 +33,14 @@
2633
obj:*/libdb_cxx-*.so
2734
fun:__log_put_record
2835
}
36+
{
37+
Suppress libdb warning
38+
Memcheck:Param
39+
pwrite64(buf)
40+
fun:pwrite
41+
fun:__os_io
42+
obj:*/libdb_cxx-*.so
43+
}
2944
{
3045
Suppress leveldb warning (leveldb::InitModule()) - https://github.com/google/leveldb/issues/113
3146
Memcheck:Leak
@@ -41,3 +56,57 @@
4156
...
4257
fun:_ZN7leveldbL14InitDefaultEnvEv
4358
}
59+
{
60+
Suppress wcsnrtombs glibc SSE4 warning (could be related: https://stroika.atlassian.net/browse/STK-626)
61+
Memcheck:Addr16
62+
fun:__wcsnlen_sse4_1
63+
fun:wcsnrtombs
64+
}
65+
{
66+
Suppress boost::filesystem warning (fixed in boost 1.70: https://github.com/boostorg/filesystem/commit/bbe9d1771e5d679b3f10c42a58fc81f7e8c024a9)
67+
Memcheck:Cond
68+
fun:_ZN5boost10filesystem6detail28directory_iterator_incrementERNS0_18directory_iteratorEPNS_6system10error_codeE
69+
fun:_ZN5boost10filesystem6detail28directory_iterator_constructERNS0_18directory_iteratorERKNS0_4pathEPNS_6system10error_codeE
70+
obj:*/libboost_filesystem.so.*
71+
}
72+
{
73+
Suppress boost::filesystem warning (could be related: https://stackoverflow.com/questions/9830182/function-boostfilesystemcomplete-being-reported-as-possible-memory-leak-by-v)
74+
Memcheck:Leak
75+
match-leak-kinds: reachable
76+
fun:_Znwm
77+
fun:_ZN5boost10filesystem8absoluteERKNS0_4pathES3_
78+
}
79+
{
80+
Suppress boost still reachable memory warning
81+
Memcheck:Leak
82+
match-leak-kinds: reachable
83+
fun:_Znwm
84+
...
85+
fun:_M_construct_aux<char*>
86+
fun:_M_construct<char*>
87+
fun:basic_string
88+
fun:path
89+
}
90+
{
91+
Suppress LogInstance still reachable memory warning
92+
Memcheck:Leak
93+
match-leak-kinds: reachable
94+
fun:_Znwm
95+
fun:_Z11LogInstancev
96+
}
97+
{
98+
Suppress secp256k1_context_create still reachable memory warning
99+
Memcheck:Leak
100+
match-leak-kinds: reachable
101+
fun:malloc
102+
...
103+
fun:secp256k1_context_create
104+
}
105+
{
106+
Suppress BCLog::Logger::StartLogging() still reachable memory warning
107+
Memcheck:Leak
108+
match-leak-kinds: reachable
109+
fun:malloc
110+
...
111+
fun:_ZN5BCLog6Logger12StartLoggingEv
112+
}

0 commit comments

Comments
 (0)