2020-06-04 04:45:21 +02:00
|
|
|
# This valgrind suppressions file includes known Valgrind warnings in our
|
|
|
|
# dependencies that cannot be fixed in-tree.
|
2017-11-13 14:59:29 +01:00
|
|
|
#
|
|
|
|
# Example use:
|
2020-01-30 14:37:50 +01:00
|
|
|
# $ valgrind --suppressions=contrib/valgrind.supp src/test/test_dash
|
2017-11-13 14:59:29 +01:00
|
|
|
# $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
|
2019-11-15 20:43:43 +01:00
|
|
|
# --show-leak-kinds=all src/test/test_dash
|
|
|
|
#
|
|
|
|
# To create suppressions for found issues, use the --gen-suppressions=all option:
|
|
|
|
# $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
|
|
|
|
# --show-leak-kinds=all --gen-suppressions=all --show-reachable=yes \
|
|
|
|
# --error-limit=no src/test/test_dash
|
|
|
|
#
|
|
|
|
# Note that suppressions may depend on OS and/or library versions.
|
2020-06-04 04:45:21 +02:00
|
|
|
# Tested on:
|
|
|
|
# * aarch64 (Ubuntu 20.04 system libs, without gui)
|
|
|
|
# * x86_64 (Ubuntu 18.04 system libs, without gui)
|
2017-11-13 14:59:29 +01:00
|
|
|
{
|
|
|
|
Suppress libstdc++ warning - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65434
|
|
|
|
Memcheck:Leak
|
|
|
|
match-leak-kinds: reachable
|
|
|
|
fun:malloc
|
|
|
|
obj:*/libstdc++.*
|
|
|
|
fun:call_init.part.0
|
|
|
|
fun:call_init
|
|
|
|
fun:_dl_init
|
|
|
|
obj:*/ld-*.so
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress libdb warning - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662917
|
|
|
|
Memcheck:Cond
|
|
|
|
obj:*/libdb_cxx-*.so
|
|
|
|
fun:__log_put
|
|
|
|
}
|
2019-11-15 20:43:43 +01:00
|
|
|
{
|
|
|
|
Suppress libdb warning
|
|
|
|
Memcheck:Param
|
|
|
|
pwrite64(buf)
|
|
|
|
fun:pwrite
|
|
|
|
fun:__os_io
|
2019-12-17 17:46:08 +01:00
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress libdb warning
|
|
|
|
Memcheck:Cond
|
|
|
|
fun:__log_putr.isra.1
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress libdb warning
|
|
|
|
Memcheck:Param
|
|
|
|
pwrite64(buf)
|
2020-06-04 04:45:21 +02:00
|
|
|
...
|
2019-12-17 17:46:08 +01:00
|
|
|
obj:*/libdb_cxx-*.so
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress uninitialized bytes warning in compat code
|
|
|
|
Memcheck:Param
|
|
|
|
ioctl(TCSET{S,SW,SF})
|
|
|
|
fun:tcsetattr
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress libdb warning
|
|
|
|
Memcheck:Leak
|
|
|
|
fun:malloc
|
|
|
|
...
|
2019-11-15 20:43:43 +01:00
|
|
|
obj:*/libdb_cxx-*.so
|
|
|
|
}
|
2019-12-17 17:46:08 +01:00
|
|
|
{
|
|
|
|
Suppress leaks on init
|
|
|
|
Memcheck:Leak
|
|
|
|
...
|
|
|
|
fun:_Z11AppInitMainR11NodeContext
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress leaks on shutdown
|
|
|
|
Memcheck:Leak
|
|
|
|
...
|
|
|
|
fun:_Z8ShutdownR11NodeContext
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Ignore GUI warning
|
|
|
|
Memcheck:Leak
|
|
|
|
...
|
|
|
|
obj:/usr/lib64/libgdk-3.so.0.2404.7
|
|
|
|
}
|
2017-11-13 14:59:29 +01:00
|
|
|
{
|
|
|
|
Suppress leveldb warning (leveldb::InitModule()) - https://github.com/google/leveldb/issues/113
|
|
|
|
Memcheck:Leak
|
|
|
|
match-leak-kinds: reachable
|
|
|
|
fun:_Znwm
|
|
|
|
fun:_ZN7leveldbL10InitModuleEv
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress leveldb warning (leveldb::Env::Default()) - https://github.com/google/leveldb/issues/113
|
|
|
|
Memcheck:Leak
|
|
|
|
match-leak-kinds: reachable
|
|
|
|
fun:_Znwm
|
|
|
|
...
|
|
|
|
fun:_ZN7leveldbL14InitDefaultEnvEv
|
|
|
|
}
|
2019-12-17 17:46:08 +01:00
|
|
|
{
|
|
|
|
Suppress leveldb leak
|
|
|
|
Memcheck:Leak
|
|
|
|
match-leak-kinds: reachable
|
|
|
|
fun:_Znwm
|
|
|
|
...
|
|
|
|
fun:_ZN7leveldb6DBImpl14BackgroundCallEv
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress leveldb leak
|
|
|
|
Memcheck:Leak
|
|
|
|
fun:_Znwm
|
|
|
|
...
|
|
|
|
fun:GetCoin
|
|
|
|
}
|
2019-11-15 20:43:43 +01:00
|
|
|
{
|
|
|
|
Suppress wcsnrtombs glibc SSE4 warning (could be related: https://stroika.atlassian.net/browse/STK-626)
|
|
|
|
Memcheck:Addr16
|
|
|
|
fun:__wcsnlen_sse4_1
|
|
|
|
fun:wcsnrtombs
|
|
|
|
}
|
2019-12-17 17:46:08 +01:00
|
|
|
{
|
|
|
|
Suppress boost warning
|
|
|
|
Memcheck:Leak
|
|
|
|
fun:_Znwm
|
|
|
|
...
|
|
|
|
fun:_ZN5boost9unit_test9framework5state17execute_test_treeEmjPKNS2_23random_generator_helperE
|
|
|
|
fun:_ZN5boost9unit_test9framework3runEmb
|
|
|
|
fun:_ZN5boost9unit_test14unit_test_mainEPFbvEiPPc
|
|
|
|
fun:main
|
|
|
|
}
|
2019-11-15 20:43:43 +01:00
|
|
|
{
|
|
|
|
Suppress boost still reachable memory warning
|
|
|
|
Memcheck:Leak
|
|
|
|
match-leak-kinds: reachable
|
|
|
|
fun:_Znwm
|
|
|
|
...
|
|
|
|
fun:_M_construct_aux<char*>
|
|
|
|
fun:_M_construct<char*>
|
|
|
|
fun:basic_string
|
|
|
|
fun:path
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress LogInstance still reachable memory warning
|
|
|
|
Memcheck:Leak
|
|
|
|
match-leak-kinds: reachable
|
|
|
|
fun:_Znwm
|
|
|
|
fun:_Z11LogInstancev
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress secp256k1_context_create still reachable memory warning
|
|
|
|
Memcheck:Leak
|
|
|
|
match-leak-kinds: reachable
|
|
|
|
fun:malloc
|
|
|
|
...
|
|
|
|
fun:secp256k1_context_create
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress BCLog::Logger::StartLogging() still reachable memory warning
|
|
|
|
Memcheck:Leak
|
|
|
|
match-leak-kinds: reachable
|
|
|
|
fun:malloc
|
|
|
|
...
|
|
|
|
fun:_ZN5BCLog6Logger12StartLoggingEv
|
|
|
|
}
|
2023-07-26 10:36:15 +02:00
|
|
|
{
|
|
|
|
Suppress https://bugs.kde.org/show_bug.cgi?id=472219 - fixed in Valgrind 3.22.
|
|
|
|
Memcheck:Param
|
|
|
|
ppoll(ufds.events)
|
|
|
|
obj:/lib/ld-musl-aarch64.so.1
|
|
|
|
}
|