Tools for testing and debugging memory issues (part 1)
This lesson contains approximately 35 minutes of video content.
Memory safety
Toolchain
AddressSanitizer (ASan)
Clang-14 and debugging symbols
When compiling by hand, you'd include -g to have the compiler write debugging symbols. For
the version of clang++ that we're using (v. 14.0.5), DWARFv5 debug format is used by default.
Unfortunately, some of our tools will not properly read the DWARF5 generated by
clang-14. Therefore, instead of using the -g flag, use -gdwarf-4.