~/talk

Detect C++ Memory Leaks with ALSan: Attachable Leak Sanitizer

Talkat C++Now 2024 · 2024-04-29..05-03· [security, c-and-cpp]
name:Bojun Seo
github:Bojun-Seo
slides:none on file

An attachable leak sanitizer built on eBPF uprobe and BCC hooks malloc/free in running Linux processes, saving allocation metadata in kernel space so processes do not need restarting. It runs periodic LSan-style reachability scans (can report every ~10s), reproduces original LSan traces when attached before the allocations, and finds real bugs in upstream projects like json. Limitations: needs root, requires kernel configs (works since ~Linux 5.4), cannot trace inlined/non-traceable functions, may miss register roots unless the process is suspended.

AI-written summary · about

  1. 0:00C++ memory leaks
  2. 2:02Limitations of existing tools
  3. 5:51The attachable solution
  4. 12:41How attachable LSAN works
  5. 15:23Demo and Q&A
  6. 19:45Detection algorithms
  7. 29:06Testing with long cases
  8. 33:20Real world applications
  9. 37:03Build guide and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.