Address/MemorySanitizer are also meant for this kind of problem. https://github.com/google/sanitizers/wiki/AddressSanitizer https://github.com/google/sanitizers/wiki/MemorySanitizer
Also valgrind, but I'm more familiar with the first two.
Also valgrind, but I'm more familiar with the first two.
I think plain gdb would have been sufficient if it's exiting with a segfault or terminating...