arrow
Return

Accelerating Patch Validation for Program Repair With Interception-Based Execution Scheduling

delete2024-03-01
delete1
delete
OA
AI
Y
Yuan-an Xiao
C
Chenyang Yang
B
Bo Wang
Yingfei Xiong cover
Yingfei Xiong (Yingfei Xiong) *
DOI:10.1109/TSE.2024.3359969delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Long patch validation time is a limiting factor for automated program repair (APR). Though the duality between patch validation and mutation testing is recognized, so far there exists no study of systematically adapting mutation testing techniques to general-purpose patch validation. To address this gap, we investigate existing mutation testing techniques and identify five classes of acceleration techniques that are suitable for general-purpose patch validation. Among them, mutant schemata and mutant deduplication have not been adapted to general-purpose patch validation due to the arbitrary changes that third-party APR approaches may introduce. This presents two problems for adaption: 1) the difficulty of implementing the static equivalence analysis required by the state-of-the-art mutant deduplication approach; 2) the difficulty of capturing the changes of patches to the system state at runtime. To overcome these problems, we propose two novel approaches: 1) execution scheduling, which detects the equivalence between patches online, avoiding the static equivalence analysis and its imprecision; 2) interception-based instrumentation, which intercepts the changes of patches to the system state, avoiding a full interpreter and its overhead. Based on the contributions above, we implement ExpressAPR, a general-purpose patch validator for Java that integrates all recognized classes of techniques suitable for patch validation. Our large-scale evaluation with four APR approaches shows that ExpressAPR accelerates patch validation by 137.1x over plain validation or 8.8x over the state-of-the-art approach, making patch validation no longer the time bottleneck of APR. Patch validation time for a single bug can be reduced to within a few minutes on mainstream CPUs.
Keywords:
Testing
Maintenance engineering
Life estimation
Computer bugs
Runtime
Instruments
Codes
Automated program repair
patch validation
Identifying Incorrect Patches in Program Repair Based on Meaning of Source Code
err2022-01-01
err5
errOAAI
errQuang-Ngoc Phung; Kim, Misoo; Lee, Eunseok
errShare
errSave
Improving Patch Optimization With Buggy Block for Complex Program Repair
err2025-01-01
err0
errOAAI
errKim, Jisung; Abdinabiev, Aslan Safarovich; Lee, Byungjeong
errShare
errSave
SOSRepair: Expressive Semantic Search for Real-World Program Repair
err2021-10-01
err20
errOAAI
errAfzal, Afsoon; Motwani, Manish; Stolee, Kathryn T.; Brun, Yuriy; Le Goues, Claire
errShare
errSave
A comprehensive study of code-removal patches in automated program repair
err2022-05-05
err3
errOAAI
errGinelli, Davide; Martinez, Matias; Mariani, Leonardo; Monperrus, Martin
errShare
errSave
Evaluating Automatic Program Repair Capabilities to Repair API Misuses
err2022-07-01
err18
errOAAI
errKechagia, Maria; Mechtaev, Sergey; Sarro, Federica; Harman, Mark
errShare
errSave

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
3.0K
Citations:
1.3W

Organization

Peking University cover
Peking University
Scholars:
9.2K
Papers: 2.8K
Citations: 7.1W
Beijing Jiaotong University cover
Beijing Jiaotong University
Scholars:
2.9K
Papers: 963
Citations: 1.2W
Cited Papers

Cited Papers

Geopolitics and discourse
err1992-03-01
err0
PREAI
errGearóid Ó Tuathail; John Agnew
errShare
errSave
Boids in a loop: Self-propelled particles within a flexible boundary
err2020-05-27
err0
errOAAI
errA. C. Quillen; J. P. Smucker; A. Peshkov
errShare
errSave
Structure and function of negative-strand RNA virus polymerase complexes
err2021-01-01
err0
PREAI
errJesse D. Pyle; Sean P.J. Whelan; Louis-Marie Bloyet
errShare
errSave
Ultra-low-temperature cooling of two-dimensional electron gas
err2000-05-01
err0
PREAI
errJ.S Xia; E.D Adams; V Shvarts; W Pan; H.L Stormer; D.C Tsui
errShare
errSave
Autophagy protects against PI3K/Akt/mTOR-mediated apoptosis of spinal cord neurons after mechanical injury
err2017-08-01
err0
PREAI
errZhenYu Wang; LinQuan Zhou; XiaoTing Zheng; Gang Chen; RongFeng Pan; JinHuang Li; WenGe Liu
errShare
errSave
Ureteral quadruplication: The fourth case report
err1994-12-01
err0
PREAI
errS. Sourtzis; N. Damry; F. Janssen; N. Perlmutter
errShare
errSave
researcher View more