2020-06-03 16:52:44 +02:00
|
|
|
# This valgrind suppressions file includes known Valgrind warnings in our
|
|
|
|
# dependencies that cannot be fixed in-tree.
|
2017-08-12 17:15:49 +02:00
|
|
|
#
|
|
|
|
# Example use:
|
2024-08-28 16:57:14 +02:00
|
|
|
# $ valgrind --suppressions=contrib/valgrind.supp build/src/test/test_bitcoin
|
2017-08-12 17:15:49 +02:00
|
|
|
# $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
|
2024-08-28 16:57:14 +02:00
|
|
|
# --show-leak-kinds=all build/src/test/test_bitcoin
|
2019-11-12 17:25:57 +01:00
|
|
|
#
|
|
|
|
# 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 \
|
2024-08-28 16:57:14 +02:00
|
|
|
# --error-limit=no build/src/test/test_bitcoin
|
2019-11-12 17:25:57 +01:00
|
|
|
#
|
|
|
|
# Note that suppressions may depend on OS and/or library versions.
|
2020-06-03 16:52:44 +02:00
|
|
|
# Tested on:
|
2024-04-10 17:34:42 +02:00
|
|
|
# * aarch64 (Ubuntu Noble system libs, clang, without gui)
|
|
|
|
# * x86_64 (Ubuntu Noble system libs, clang, without gui)
|
2017-08-12 17:15:49 +02:00
|
|
|
{
|
|
|
|
Suppress libdb warning - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662917
|
|
|
|
Memcheck:Cond
|
|
|
|
obj:*/libdb_cxx-*.so
|
|
|
|
fun:__log_put
|
|
|
|
}
|
2019-11-12 17:25:57 +01:00
|
|
|
{
|
|
|
|
Suppress libdb warning
|
|
|
|
Memcheck:Param
|
|
|
|
pwrite64(buf)
|
|
|
|
fun:pwrite
|
|
|
|
fun:__os_io
|
2019-11-15 17:38:27 +01:00
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress libdb warning
|
|
|
|
Memcheck:Cond
|
|
|
|
fun:__log_putr.isra.1
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress libdb warning
|
|
|
|
Memcheck:Param
|
|
|
|
pwrite64(buf)
|
2020-06-03 16:52:44 +02:00
|
|
|
...
|
2019-11-15 17:38:27 +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-12 17:25:57 +01:00
|
|
|
obj:*/libdb_cxx-*.so
|
|
|
|
}
|
2019-11-15 17:38:27 +01:00
|
|
|
{
|
|
|
|
Suppress leaks on shutdown
|
|
|
|
Memcheck:Leak
|
|
|
|
...
|
|
|
|
fun:_Z8ShutdownR11NodeContext
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress leveldb leak
|
|
|
|
Memcheck:Leak
|
|
|
|
match-leak-kinds: reachable
|
|
|
|
fun:_Znwm
|
|
|
|
...
|
|
|
|
fun:_ZN7leveldb6DBImpl14BackgroundCallEv
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress leveldb leak
|
|
|
|
Memcheck:Leak
|
|
|
|
fun:_Znwm
|
|
|
|
...
|
|
|
|
fun:GetCoin
|
|
|
|
}
|
2019-11-12 17:25:57 +01:00
|
|
|
{
|
|
|
|
Suppress LogInstance still reachable memory warning
|
|
|
|
Memcheck:Leak
|
|
|
|
match-leak-kinds: reachable
|
|
|
|
fun:_Znwm
|
|
|
|
fun:_Z11LogInstancev
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Suppress BCLog::Logger::StartLogging() still reachable memory warning
|
|
|
|
Memcheck:Leak
|
|
|
|
match-leak-kinds: reachable
|
|
|
|
fun:malloc
|
|
|
|
...
|
|
|
|
fun:_ZN5BCLog6Logger12StartLoggingEv
|
|
|
|
}
|
2023-07-25 11:00:19 +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
|
|
|
|
}
|