|
6 | 6 | # Example use:
|
7 | 7 | # $ valgrind --suppressions=contrib/valgrind.supp src/test/test_bitcoin
|
8 | 8 | # $ 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. |
10 | 17 | {
|
11 | 18 | Suppress libstdc++ warning - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65434
|
12 | 19 | Memcheck:Leak
|
|
26 | 33 | obj:*/libdb_cxx-*.so
|
27 | 34 | fun:__log_put_record
|
28 | 35 | }
|
| 36 | +{ |
| 37 | + Suppress libdb warning |
| 38 | + Memcheck:Param |
| 39 | + pwrite64(buf) |
| 40 | + fun:pwrite |
| 41 | + fun:__os_io |
| 42 | + obj:*/libdb_cxx-*.so |
| 43 | +} |
29 | 44 | {
|
30 | 45 | Suppress leveldb warning (leveldb::InitModule()) - https://github.com/google/leveldb/issues/113
|
31 | 46 | Memcheck:Leak
|
|
41 | 56 | ...
|
42 | 57 | fun:_ZN7leveldbL14InitDefaultEnvEv
|
43 | 58 | }
|
| 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