On the Feasibility of Deduplicating Compiler Bugs with Bisection
Authors:
- Xintong ZhouXZXintong Zhou
- Zhenyang XuZXZhenyang Xu
- Chengnian SunCSChengnian Sun
Preprint
Abstract
Random testing has proven to be an effective technique for compiler validation. However, the debugging of bugs identified through random testing presents a significant challenge due to the frequent occurrence of duplicate test programs that expose identical compiler bugs. The process to identify duplicates is a practical research problem known as bug deduplication. Prior methodologies for compiler bug deduplication primarily rely on program analysis to extract bug-related features for duplicate identification, which can result in substantial computational overhead and limited generalizability. This paper investigates the feasibility of employing bisection, a standard debugging procedure largely overlooked in prior research on compiler bug deduplication, for this purpose. Our study demonstrates that the utilization of bisection to locate failure-inducing commits provides a valuable criterion for deduplication, albeit one that requires supplementary techniques for more accurate identification. Building on these results, we introduce BugLens, a novel deduplication method that primarily uses bisection, enhanced by the identification of bug-triggering optimizations to minimize false negatives. Empirical evaluations conducted on four real-world datasets demonstrate that BugLens significantly outperforms the state-of-the-art analysis-based methodologies Tamer and D3 by saving an average of 26.98% and 9.64% human effort to identify the same number of distinct bugs. Given the inherent simplicity and generalizability of bisection, it presents a highly practical solution for compiler bug deduplication in real-world applications.Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- Enhancing Bug-Inducing Commit Identification: A Fine-Grained Semantic Analysis ApproachIEEE Transactions on Software Engineering, 2024
- On Refining the SZZ Algorithm with Bug Discussion DataEmpirical Software Engineering, 2024
- Boosting Compiler Testing by Injecting Real-World CodeProceedings of the ACM on Programming Languages, 2024
- Fuzzing Loop Optimizations in Compilers for C++ and Data-Parallel LanguagesProceedings of the ACM on Programming Languages, 2023
- A comprehensive evaluation of SZZ Variants through a developer-informed oracleJournal of Systems and Software, 2023
- Exploring Better Black-Box Test Case Prioritization via Log AnalysisACM Transactions on Software Engineering and Methodology, 2023
- Boosting Compiler Testing via Compiler Optimization ExplorationACM Transactions on Software Engineering and Methodology, 2022
- Random testing for C and C++ compilers with YARPGenProceedings of the ACM on Programming Languages, 2020
- Enhancements for duplication detection in bug reports with manifold correlation featuresJournal of Systems and Software, 2016
- Automated Duplicate Bug Report Detection Using Multi-Factor AnalysisIEICE Transactions on Information and Systems, 2016