Title
Exploring and exploiting the correlations between bug-inducing and bug-fixing commits.
Abstract
Bug-inducing commits provide important information to understand when and how bugs were introduced. Therefore, they have been extensively investigated by existing studies and frequently leveraged to facilitate bug fixings in industrial practices. Due to the importance of bug-inducing commits in software debugging, we are motivated to conduct the first systematic empirical study to explore the correlations between bug-inducing and bug-fixing commits in terms of code elements and modifications. To facilitate the study, we collected the inducing and fixing commits for 333 bugs from seven large open-source projects. The empirical findings reveal important and significant correlations between a bug's inducing and fixing commits. We further exploit the usefulness of such correlation findings from two aspects. First, they explain why the SZZ algorithm, the most widely-adopted approach to collecting bug-inducing commits, is imprecise. In view of SZZ's imprecision, we revisited the findings of previous studies based on SZZ, and found that 8 out of 10 previous findings are significantly affected by SZZ's imprecision. Second, they shed lights on the design of automated debugging techniques. For demonstration, we designed approaches that exploit the correlations with respect to statements and change actions. Our experiments on Defects4J show that our approaches can boost the performance of fault localization significantly and also advance existing APR techniques.
Year
DOI
Venue
2019
10.1145/3338906.3338962
ESEC/SIGSOFT FSE
Keywords
Field
DocType
Empirical study,bug-inducing commits,fault localization and repair
Software engineering,Software debugging,Computer science,Exploit,Theoretical computer science,Empirical research,Debugging
Conference
ISBN
Citations 
PageRank 
978-1-4503-5572-8
5
0.40
References 
Authors
44
7
Name
Order
Citations
PageRank
Ming Wen113711.70
Rongxin Wu252819.69
Yepang Liu341524.58
Yongqiang Tian4121.48
Xuan Xie5117.24
S. C. Cheung62657162.89
Zhendong Su73397175.76