3 ms·
asan and valgrind are complimentary tools; AddressSanitizer catches memory errors and is fast enough that you can keep it turned on and kind of forget about it,
by haldean 11y ago
asan and valgrind are complimentary tools; AddressSanitizer catches memory errors and is fast enough that you can keep it turned on and kind of forget about it, but it doesn't catch leaked memory. Valgrind has been indispensable for leak finding for me, and asan hasn't replaced it.
- slavik81 11y agoThere is a LeakSanitizer which is enabled by default when you use AddressSanitizer under x86_64 Linux, though it's not supported on other platforms. http://clang.llvm.org/docs/AddressSanitizer.html#memory-leak-detection http://clang.llvm.org/docs/AddressSanitizer.html#memory-leak...