File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,21 @@ can be very difficult to track down. Compiling with -DDEBUG_LOCKORDER (configure
165
165
CXXFLAGS="-DDEBUG_LOCKORDER -g") inserts run-time checks to keep track of which locks
166
166
are held, and adds warnings to the debug.log file if inconsistencies are detected.
167
167
168
+ ** Valgrind suppressions file**
169
+
170
+ Valgrind is a programming tool for memory debugging, memory leak detection, and
171
+ profiling. The repo contains a Valgrind suppressions file
172
+ ([ ` valgrind.supp ` ] ( https://github.com/bitcoin/bitcoin/blob/master/contrib/valgrind.supp ) )
173
+ which includes known Valgrind warnings in our dependencies that cannot be fixed
174
+ in-tree. Example use:
175
+
176
+ ``` shell
177
+ $ valgrind --suppressions=contrib/valgrind.supp src/test/test_bitcoin
178
+ $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
179
+ --show-leak-kinds=all src/test/test_bitcoin --log_level=test_suite
180
+ $ valgrind -v --leak-check=full src/bitcoind -printtoconsole
181
+ ```
182
+
168
183
Locking/mutex usage notes
169
184
-------------------------
170
185
You can’t perform that action at this time.
0 commit comments