3 ms·
You want to make ASAN builds (simply build with clang or gcc > 4.8 with -fsanitize=address on the command line). Then you can break in a debugger, and do some
by padenot 11y ago
You want to make ASAN builds (simply build with clang or gcc > 4.8 with -fsanitize=address on the command line).
Then you can break in a debugger, and do some tricks, explained in this page: https://code.google.com/p/address-sanitizer/wiki/AddressSanitizerAndDebugger https://code.google.com/p/address-sanitizer/wiki/AddressSani....
This will also detect any memory trashing or the like, while being quite fast (compared to valgrind, of course). Then if things are really weird, you can use valgrind.