From 89288863a4d3f0c87845a8651ab590e348fe5fe6 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 25 Sep 2018 09:41:41 +0000 Subject: [PATCH] README: mention ASAN usage alongside valgrind --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ded4eb51..c1abe625d 100644 --- a/README.md +++ b/README.md @@ -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