mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
50cac39d9d
fa5288cf5c50d014f046b7741f6da69529037933 contrib: Fixup valgrind suppressions file (MarcoFalke) Pull request description: I am observing this one on bionic with system boost::fs: ``` { <insert_a_suppression_name_here> Memcheck:Cond fun:__wcsnlen_avx2 fun:wcsnrtombs fun:_ZNKSt7codecvtIwc11__mbstate_tE6do_outERS0_PKwS4_RS4_PcS6_RS6_ fun:_ZN5boost10filesystem11path_traits7convertEPKwS3_RNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt7codecvtIwc11__mbstate_tE fun:_ZN5boost10filesystem6detail11unique_pathERKNS0_4pathEPNS_6system10error_codeE ... ACKs for top commit: practicalswift: ACK fa5288cf5c50d014f046b7741f6da69529037933 -- patch looks correct Tree-SHA512: 067e10e932a7f5b13e516134e0cfd3030265c1b582cdfde1cea97042e31399aa40c4590710a39429854c68ad703a0ae9f0b06e9af4cdd81e3cacb042939a84b6
186 lines
4.4 KiB
Plaintext
186 lines
4.4 KiB
Plaintext
# This 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_dash
|
|
# $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
|
|
# --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.
|
|
# Tested on:
|
|
# * aarch64 (Ubuntu 20.04 system libs, without gui)
|
|
# * x86_64 (Ubuntu 18.04 system libs, without gui)
|
|
{
|
|
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
|
|
}
|
|
{
|
|
Suppress libdb warning
|
|
Memcheck:Param
|
|
pwrite64(buf)
|
|
fun:pwrite
|
|
fun:__os_io
|
|
}
|
|
{
|
|
Suppress libdb warning
|
|
Memcheck:Cond
|
|
fun:__log_putr.isra.1
|
|
}
|
|
{
|
|
Suppress libdb warning
|
|
Memcheck:Param
|
|
pwrite64(buf)
|
|
...
|
|
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
|
|
...
|
|
obj:*/libdb_cxx-*.so
|
|
}
|
|
{
|
|
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
|
|
}
|
|
{
|
|
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
|
|
}
|
|
{
|
|
Suppress leveldb leak
|
|
Memcheck:Leak
|
|
match-leak-kinds: reachable
|
|
fun:_Znwm
|
|
...
|
|
fun:_ZN7leveldb6DBImpl14BackgroundCallEv
|
|
}
|
|
{
|
|
Suppress leveldb leak
|
|
Memcheck:Leak
|
|
fun:_Znwm
|
|
...
|
|
fun:GetCoin
|
|
}
|
|
{
|
|
Suppress wcsnrtombs glibc SSE4 warning (could be related: https://stroika.atlassian.net/browse/STK-626)
|
|
Memcheck:Addr16
|
|
fun:__wcsnlen_sse4_1
|
|
fun:wcsnrtombs
|
|
}
|
|
{
|
|
Suppress wcsnrtombs warning (remove after removing boost::fs)
|
|
Memcheck:Cond
|
|
...
|
|
fun:_ZN5boost10filesystem6detail11unique_pathERKNS0_4pathEPNS_6system10error_codeE
|
|
}
|
|
{
|
|
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
|
|
}
|
|
{
|
|
Suppress boost::filesystem warning (fixed in boost 1.70: https://github.com/boostorg/filesystem/commit/bbe9d1771e5d679b3f10c42a58fc81f7e8c024a9)
|
|
Memcheck:Cond
|
|
fun:_ZN5boost10filesystem6detail28directory_iterator_incrementERNS0_18directory_iteratorEPNS_6system10error_codeE
|
|
...
|
|
obj:*/libboost_filesystem.so.*
|
|
}
|
|
{
|
|
Suppress boost::filesystem warning (could be related: https://stackoverflow.com/questions/9830182/function-boostfilesystemcomplete-being-reported-as-possible-memory-leak-by-v)
|
|
Memcheck:Leak
|
|
match-leak-kinds: reachable
|
|
fun:_Znwm
|
|
...
|
|
fun:_ZN5boost10filesystem8absoluteERKNS0_4pathES3_
|
|
}
|
|
{
|
|
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
|
|
}
|