diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-25 09:41:41 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-25 09:41:41 +0000 |
commit | 89288863a4d3f0c87845a8651ab590e348fe5fe6 (patch) | |
tree | 3b9ff6d0bfda224afb836c10644fdd97adbec1bf | |
parent | Merge pull request #4416 (diff) | |
download | monero-89288863a4d3f0c87845a8651ab590e348fe5fe6.tar.xz |
README: mention ASAN usage alongside valgrind
-rw-r--r-- | README.md | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -666,9 +666,19 @@ Type `run` to run monerod ### 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 |