diff options
| author | Riccardo Spagni <ric@spagni.net> | 2018-09-29 22:12:56 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2018-09-29 22:20:03 +0200 |
| commit | 365a9d0c09684e13da7dd36e1258ecd65e964c4c (patch) | |
| tree | 625d9671a142d7bc9be6fe9568290943ba9890ca | |
| parent | 54d883d826fd345e3636bf2b781b91e6d07782b1 (diff) | |
| download | monzero-core-365a9d0c09684e13da7dd36e1258ecd65e964c4c.tar.gz monzero-core-365a9d0c09684e13da7dd36e1258ecd65e964c4c.tar.xz monzero-core-365a9d0c09684e13da7dd36e1258ecd65e964c4c.zip | |
Merge pull request #4434
89288863 README: mention ASAN usage alongside valgrind (moneromooo-monero)
| -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 |
