4 ms·
I’d say address sanitizer is a better starting point, and likely to show memory issues faster than this
by meisel 2y ago
I’d say address sanitizer is a better starting point, and likely to show memory issues faster than this
- tempodox 2y agoYep, ASAN to find use-after-free, and valgrind memcheck to find forgotten-to-free.
- manwe150 2y agoASAN also checks for memory leaks like valgrind, the main difference with the tools is whether you can recompile all of libraries to get the compiler support for detection or whether binary instrumentation is better (https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer https://github.com/google/sanitizers/wiki/AddressSanitizerLe...)
- tempodox 2y agoThanks, I didn't know the `ASAN_OPTIONS` part for macOS.