Changeset View
Changeset View
Standalone View
Standalone View
doc/developer-notes.md
Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | |||||
The `-DCMAKE_BUILD_TYPE=Debug` cmake option adds `-DDEBUG_LOCKORDER` to the | The `-DCMAKE_BUILD_TYPE=Debug` cmake option adds `-DDEBUG_LOCKORDER` to the | ||||
compiler flags. This inserts run-time checks to keep track of which locks are | compiler flags. This inserts run-time checks to keep track of which locks are | ||||
held, and adds warnings to the debug.log file if inconsistencies are detected. | held, and adds warnings to the debug.log file if inconsistencies are detected. | ||||
### Valgrind suppressions file | ### Valgrind suppressions file | ||||
Valgrind is a programming tool for memory debugging, memory leak detection, and | Valgrind is a programming tool for memory debugging, memory leak detection, and | ||||
profiling. The repo contains a Valgrind suppressions file | profiling. The repo contains a Valgrind suppressions file | ||||
([`valgrind.supp`](contrib/valgrind.supp)) | ([`valgrind.supp`](/contrib/valgrind.supp)) | ||||
which includes known Valgrind warnings in our dependencies that cannot be fixed | which includes known Valgrind warnings in our dependencies that cannot be fixed | ||||
in-tree. Example use: | in-tree. Example use: | ||||
```shell | ```shell | ||||
$ valgrind --suppressions=contrib/valgrind.supp src/test/test_bitcoin | $ valgrind --suppressions=contrib/valgrind.supp src/test/test_bitcoin | ||||
$ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \ | $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \ | ||||
--show-leak-kinds=all src/test/test_bitcoin --log_level=test_suite | --show-leak-kinds=all src/test/test_bitcoin --log_level=test_suite | ||||
$ valgrind -v --leak-check=full src/bitcoind -printtoconsole | $ valgrind -v --leak-check=full src/bitcoind -printtoconsole | ||||
▲ Show 20 Lines • Show All 754 Lines • Show Last 20 Lines |