Who is Debugging the Debuggers? Exposing Debug Information Bugs in Optimized Binaries
Giuseppe Antonio Di Luna, Davide Italiano, Luca Massarelli, Sebastian, Osterlund, Cristiano Giuffrida, Leonardo Querzoni

TL;DR
This paper introduces Debug$^{2}$, a framework that detects bugs in debug information of optimized binaries by differential analysis, revealing multiple bugs in popular compiler and debugger toolchains, some of which have been fixed.
Contribution
The paper presents a novel differential analysis framework, Debug$^{2}$, for identifying debug information bugs in modern toolchains, improving post-deployment debugging reliability.
Findings
Discovered 23 bugs in LLVM toolchain
Found 8 bugs in GNU toolchain
Identified 3 bugs in Rust toolchain
Abstract
Despite the advancements in software testing, bugs still plague deployed software and result in crashes in production. When debugging issues -- sometimes caused by "heisenbugs" -- there is the need to interpret core dumps and reproduce the issue offline on the same binary deployed. This requires the entire toolchain (compiler, linker, debugger) to correctly generate and use debug information. Little attention has been devoted to checking that such information is correctly preserved by modern toolchains' optimization stages. This is particularly important as managing debug information in optimized production binaries is non-trivial, often leading to toolchain bugs that may hinder post-deployment debugging efforts. In this paper, we present Debug, a framework to find debug information bugs in modern toolchains. Our framework feeds random source programs to the target toolchain and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Software Engineering Research · Security and Verification in Computing
