aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-09-29 22:12:56 +0200
committerRiccardo Spagni <ric@spagni.net>2018-09-29 22:12:56 +0200
commit559a0cfc928aa04a91cb5b3167bd81ddbe4c062a (patch)
tree37504544118f573b9498e5cf9bedf65958f3fa4f /README.md
parentMerge pull request #4427 (diff)
parentREADME: mention ASAN usage alongside valgrind (diff)
downloadmonero-559a0cfc928aa04a91cb5b3167bd81ddbe4c062a.tar.xz
Merge pull request #4434
89288863 README: mention ASAN usage alongside valgrind (moneromooo-monero)
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 12 insertions, 2 deletions
diff --git a/README.md b/README.md
index ac40f08d3..d16b21528 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