Lune

ICSE2021Top-tier venue

Fast and Precise On-the-fly Patch Validation for All

Lingchao Chen, Yicheng Ouyang, Lingming Zhang

Abstract

Generate-and-validate (G&V) automated program repair (APR) techniques have been extensively studied during the past decade. Meanwhile, such techniques can be extremely time-consuming due to manipulation of the program code to fabricate a large number of patches and also repeated executions of tests on patches to identify potential fixes. PraPR, a recent G&V APR technique, reduces these costs by modifying program code directly at the level of compiled bytecode, and further performing on-the-fly patching by allowing multiple patches to be tested within the same JVM session. However, PraPR is limited due to its pattern-based, bytecode-level nature and it is basically unsound/imprecise as it assumes that patch executions do not change global JVM state and affect later patch executions on the same JVM session. Inspired by the PraPR work, we propose a unified patch validation framework, named UniAPR, which aims to speed up the patch validation for both bytecode and source-code APR via on-the-fly patching; furthermore, UniAPR addresses the imprecise patch validation issue by resetting the JVM global state via runtime bytecode transformation. We have implemented UniAPR as a fully automated Maven Plugin. We have also performed the first study of on-the-fly patch validation for state-of-the-art sourcecode-level APR. Our experiments show the first empirical evidence that vanilla on-the-fly patch validation can be imprecise/unsound; in contrast, our UniAPR framework can speed up state-of-the-art APR by over an order of magnitude without incurring any imprecision in patch validation, enabling all existing APR techniques to explore a larger search space to fix more bugs in the near future. Furthermore, UniAPR directly enables hybrid source and bytecode APR to fix substantially more bugs than all state-of-the-art APR techniques (under the same time limit) in the near future.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

13 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Trust Enhancement Issues in Program Repair cites On the efficiency of test suite based program repair: A Systematic Assessment of 16 Automated Repair Systems for Java Programs
  • Boosting coverage-based fault localization via graph-based representation learning cites Can automated program repair refine fault localization? a unified debugging approach
  • Boosting coverage-based fault localization via graph-based representation learning cites On the Effectiveness of Unified Debugging: An Extensive Study on 16 Program Repair Systems
  • Less training, more repairing please: revisiting automated program repair via zero-shot learning cites Can automated program repair refine fault localization? a unified debugging approach
  • Less training, more repairing please: revisiting automated program repair via zero-shot learning cites On the Effectiveness of Unified Debugging: An Extensive Study on 16 Program Repair Systems
  • Learning to Construct Better Mutation Faults cites Less training, more repairing please: revisiting automated program repair via zero-shot learning
  • Learning to Construct Better Mutation Faults cites On the Effectiveness of Unified Debugging: An Extensive Study on 16 Program Repair Systems
  • On the Effectiveness of Unified Debugging: An Extensive Study on 16 Program Repair Systems cites On the efficiency of test suite based program repair: A Systematic Assessment of 16 Automated Repair Systems for Java Programs
  • On the Effectiveness of Unified Debugging: An Extensive Study on 16 Program Repair Systems cites Can automated program repair refine fault localization? a unified debugging approach
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers13

  1. Less training, more repairing please: revisiting automated program repair via zero-shot learningChunqiu Steven Xia, Lingming ZhangFSE 2022 · 223 citations
  2. Boosting coverage-based fault localization via graph-based representation learningYiling Lou, Qihao Zhu, Jinhao Dong, Xia Li et al.FSE 2021 · 157 citations
  3. Trust Enhancement Issues in Program RepairYannic Noller, Ridwan Shariffdeen, Xiang Gao, Abhik RoychoudhuryICSE 2022 · 51 citations
  4. Learning to Construct Better Mutation FaultsZhao Tian, Junjie Chen, Qihao Zhu, Junjie Yang et al.ASE 2022 · 35 citations
  5. On the Effectiveness of Unified Debugging: An Extensive Study on 16 Program Repair SystemsSamuel Benton, Xia Li, Yiling Lou, Lingming ZhangASE 2020 · 35 citations

Builds on2

  1. On the efficiency of test suite based program repair: A Systematic Assessment of 16 Automated Repair Systems for Java ProgramsKui Liu, Shangwen Wang, Anil Koyuncu, Kisub Kim et al.ICSE 2020 · 116 citations
  2. Can automated program repair refine fault localization? a unified debugging approachYiling Lou, Ali Ghanbari, Xia Li, Lingming Zhang et al.ISSTA 2020 · 99 citations

Related papers

  1. Towards Boosting Patch Execution On-the-FlySamuel Benton, Yuntong Xie, Lan Lu, Mengshi Zhang et al.ICSE 2022 · 10 citations
  2. A Large-Scale Empirical Review of Patch Correctness Checking ApproachesJun Yang, Yuehan Wang, Yiling Lou, Ming Wen et al.FSE 2023 · 11 citations
  3. A Bayesian Framework for Automated DebuggingSungmin Kang, Wonkeun Choi, Shin YooISSTA 2023 · 1 citation
  4. How Effective Are Neural Networks for Fixing Security VulnerabilitiesYi Wu, Nan Jiang, Hung Viet Pham, Thibaud Lutellier et al.ISSTA 2023 · 86 citations
  5. Benchmarking Automated Program Repair: An Extensive Study on Both Real-World and Artificial BugsYicheng Ouyang, Jun Yang, Lingming ZhangISSTA 2024 · 8 citations
Dusk over the sea between two cliffs drawn in fine vertical lines