Using eBPF to Investigate Memory Leaks at Runtime: A Comparison with LeakSanitizer
This paper explains how eBPF supports runtime memory tracing in Linux applications and kernel components. It describes program compilation, verification, JIT translation, and kernel execution, including uprobes for user-space observation and kprobes or tracepoints for kernel observation. Using BCC memleak as an example, it compares outstanding-allocation tracking with LeakSanitizer’s separate reachability analysis and presents practical guidance on probe coverage, deployment, interpretation, and evaluation.
Authors
- Sanidhya Singh (ORCID: https://orcid.org/0009-0004-0132-9104)
- Nishant Singh
- Raj Kumar
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-27
- DOI
- https://doi.org/10.5281/zenodo.24573318
- Primary Topic
- Software Testing and Debugging Techniques
- Type
- preprint