paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Fast and Precise On-the-Fly Patch Validation for All

面向所有技术的快速且精确的即时补丁验证
ICSE 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE)2021匹配度 2/10 · 该论文聚焦自动化程序修复(APR)中的即时补丁验证与JVM字节码变换,属于软件工程/测试修复方向,并不涉及用户核心关注的LLM/Agent与静态分析交叉、浮点程序分析或贝叶斯程序分析。虽与程序分析工具链有微弱关联,但研究问题和方法均不在画像核心范围内。引用 40 inbox
Lingchao Chen, Yicheng Ouyang, Lingming Zhang
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 UniAPR,通过运行时字节码变换重置 JVM 全局状态,实现快速且精确的即时补丁验证。

生成-验证式自动程序修复需要构造大量补丁并反复执行测试,验证过程极其耗时;同时,现有即时补丁验证可能因 JVM 全局状态残留而不精确甚至不健全。本文提出 UniAPR,支持对所有源码级自动程序修复技术进行即时补丁验证,并通过运行时字节码变换重置 JVM 全局状态,以缓解不精确/不健全问题。作者将其实现为全自动 Maven 插件,并开展实证评估。结果表明,即时补丁验证通常能让最先进的源码级自动程序修复加速一个数量级以上,使现有修复技术能探索更大搜索空间以修复更多缺陷;同时首次给出现有即时验证可能不精确/不健全的实证证据,而带 JVM 重置的 UniAPR 能以可忽略开销缓解该问题。

问题
生成-验证式自动程序修复需反复执行大量补丁测试而极其耗时,且普通即时补丁验证可能受 JVM 全局状态残留影响而不精确/不健全。
方法
提出 UniAPR,通过运行时字节码变换重置 JVM 全局状态,并实现为全自动 Maven 插件,为所有源码级自动程序修复提供快速且精确的即时补丁验证。
评估
在最先进的源码级自动程序修复技术上进行实证评估,显示通常可获得一个数量级以上的加速,且 JVM 重置以可忽略开销缓解不精确/不健全问题。
原文摘要(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 the manipulation of program code to fabricate a large number of patches and also the repeated test executions on patches to identify potential fixes. PraPR, a recentG furthermore, UniAPR addresses the imprecise patch validation issue by resetting the JVM global state via runtime bytecode transformation. We have implemented UniAPR as a publicly available fully automated Maven Plugin. Our study demonstrates for the first time that on-the-fly patch validation can often speed up state-of-the-art source-code-level APR by over an order of magnitude, enabling all existing APR techniques to explore a larger search space to fix more bugs in the near future. Furthermore, our study shows the first empirical evidence that vanilla on-the-fly patch validation can be imprecise/unsound, while UniAPR with JVM reset is able to mitigate such issues with negligible overhead.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{abs-2007-11449,
  title = {Fast and Precise On-the-Fly Patch Validation for All},
  author = {Lingchao Chen and Yicheng Ouyang and Lingming Zhang},
  booktitle = {ICSE},
  year = {2021},
  doi = {10.1109/icse43902.2021.00104}
}