Memory debugger
wikipedia Memory debugger
NOTE:
1、下面是目前我使用过的
AddressSanitizer
Compile-time instrumentation (available in Clang and GCC) and specialized library
Valgrind § Memcheck
NOTE:
AddressSanitizer
1、AddressSanitizer
参见:
clang AddressSanitizer
对于常见的memory error,它能够及时检查出来
gcc-10.3.0 3.12 Program Instrumentation Options