README: mention ASAN usage alongside valgrind

This commit is contained in:
moneromooo-monero 2018-09-25 09:41:41 +00:00
parent 8a61f669a9
commit 89288863a4
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -666,9 +666,19 @@ Type `run` to run monerod
### Analysing memory corruption ### Analysing memory corruption
We use the tool `valgrind` for this. There are two tools available:
Run with `valgrind /path/to/monerod`. It will be slow. * ASAN
Configure Monero with the -D SANITIZE=ON cmake flag, eg:
cd build/debug && cmake -D SANITIZE=ON -D CMAKE_BUILD_TYPE=Debug ../..
You can then run the monero tools normally. Performance will typically halve.
* valgrind
Install valgrind and run as `valgrind /path/to/monerod`. It will be very slow.
### LMDB ### LMDB