Boosting Automated Program Repair with Bug-Inducing Commits.

Ming Wen,Yepang Liu,Shing-Chi Cheung
DOI: https://doi.org/10.1145/3377816.3381743
2020-01-01
Abstract:The search space explosion problem is a long-standing challenge for search-based automated program repair (APR). The operation space , which defines how to select appropriate mutation operators, and the ingredient space , which defines how to select appropriate code elements as fixing ingredients, are two major factors that determine the search space. Conventional approaches mainly devise fixing strategies via learning from frequent fixing patterns based on substantial patches collected from open-source projects. In this paper, we propose a new direction for search-based APR, that is to repair a bug via learning from how the bug was introduced instead of learning from how other bugs are frequently fixed. Our empirical study reveals that substantial mutation operators and fixing ingredients required to fix a bug can be inferred from the commit that introduced the bug. Based on the findings of our empirical study, we devised a preliminary fixing strategy based on bug-inducing commits, which is able to repair 8 new bugs that cannot be repaired by the state-of-the-art techniques. Such results demonstrate that our proposed new idea for searched-based APR is promising.
What problem does this paper attempt to address?