C++ On Sea 2024 Preview - Aleksei Veselovskii - LSAN and ASAN: tips, tricks and hacks
summary
Explains LSAN internals including the combined memory manager, interceptors and a garbage collector that deliberately does not collect garbage; demonstrates why LSAN refuses to work under gdb and how ASAN/LSAN expose a public interface for programmatic checks. Shows concrete ways to profile memory with ASAN/LSAN, extract object metadata and memory manager statistics, and use gdb-callable helpers. Presents a hack that uses the non public LSAN API to improve leak diagnostics and examples of results.
AI-written summary · about
related talks
41mDetect C++ Memory Leaks with ALSan: Attachable Leak Sanitizer
49mTeaching Containers and Allocators How to Sanitize Addresses
01h 00mSanitize for your Sanity: Sanitizers tools for Modern C++
40mAddressSanitizer, or How to Make C/C++ Programs More Reliable and Secure
36mCode Analysis: Empowering developers to write performant, reliable, and safe C++
44mDebugging memory corruptions in C++
59mSanitizing the Linux Kernel — On KASAN and other Dynamic Bug-finding Tools
43mEverything I learned about static analysis and program safety in C++
