Lune

FSE2024顶会

Detecting, Creating, Repairing, and Understanding Indivisible Multi-Hunk Bugs

Qi Xin, Haojun Wu, Jinran Tang, Xinyu Liu, Steven P. Reiss, Jifeng Xuan

摘要

This paper presents our approach proposed to detect and create indivisible multi-hunk bugs, an evaluation of existing repair techniques based on these bugs, and a study of the patches of these bugs constructed by the developers and existing tools. Multi-hunk bug repair aims to deal with complex bugs by fixing multiple locations of the program. Previous research on multi-hunk bug repair is severely misguided, as the evaluation of previous techniques is predominantly based on the Defects4J dataset containing a great deal of divisible multi-hunk bugs. A divisible multi-hunk bug is essentially a combination of multiple bugs triggering different failures and is uncommon while debugging, as the developer typically deals with one failure at a time. To address this problem and provide a better basis for multi-hunk bug repair, we propose an enumeration-based approach IBugFinder, which given a bug dataset can automatically detect divisible and indivisible bugs in the dataset and further isolate the divisible bugs into new indivisible bugs. We applied IBugFinder to 281 multi-hunk bugs from the Defects4J dataset. IBugFinder identified 139 divisible bugs and created 249 new bugs among which 105 are multi-hunk.

We evaluated existing repair techniques with the indivisible multi-hunk bugs detected and created by IBugFinder and found that these techniques repaired only a small number of bugs suggesting weak multi-hunk repair abilities. We further studied the patches of indivisible multi-hunk bugs constructed by the developers and the various tools with a focus on understanding the relationships of the partial patches made at different locations. The study has led to the identification of 8 partial patch relationships, which suggest different strategies for multi-hunk patch generation and provide important implication for multi-hunk bug repair.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Characterizing Multi-Hunk Patches: Divergence, Proximity, and LLM Repair Challenges 引用了 Less training, more repairing please: revisiting automated program repair via zero-shot learning
  • Characterizing Multi-Hunk Patches: Divergence, Proximity, and LLM Repair Challenges 引用了 Automated Repair of Programs from Large Language Models
  • Characterizing Multi-Hunk Patches: Divergence, Proximity, and LLM Repair Challenges 引用了 DLFix: context-based code transformation learning for automated program repair
  • Characterizing Multi-Hunk Patches: Divergence, Proximity, and LLM Repair Challenges 引用了 A syntax-guided edit decoder for neural program repair
  • TLR: Codebase-Level C Memory Management Error Repair with Large Language Models 引用了 Automated Program Repair in the Era of Large Pre-trained Language Models
  • Less training, more repairing please: revisiting automated program repair via zero-shot learning 引用了 DLFix: context-based code transformation learning for automated program repair
  • Less training, more repairing please: revisiting automated program repair via zero-shot learning 引用了 A syntax-guided edit decoder for neural program repair
  • Automated Repair of Programs from Large Language Models 引用了 DLFix: context-based code transformation learning for automated program repair
  • Automated Repair of Programs from Large Language Models 引用了 A syntax-guided edit decoder for neural program repair
  • Well Begun is Half Done: Location-Aware and Trace-Guided Iterative Automated Vulnerability Repair 引用了 Less training, more repairing please: revisiting automated program repair via zero-shot learning
  • Well Begun is Half Done: Location-Aware and Trace-Guided Iterative Automated Vulnerability Repair 引用了 DLFix: context-based code transformation learning for automated program repair
  • Well Begun is Half Done: Location-Aware and Trace-Guided Iterative Automated Vulnerability Repair 引用了 A syntax-guided edit decoder for neural program repair
  • A syntax-guided edit decoder for neural program repair 引用了 DLFix: context-based code transformation learning for automated program repair
  • Automated Program Repair in the Era of Large Pre-trained Language Models 引用了 Less training, more repairing please: revisiting automated program repair via zero-shot learning
  • Automated Program Repair in the Era of Large Pre-trained Language Models 引用了 DLFix: context-based code transformation learning for automated program repair
  • Automated Program Repair in the Era of Large Pre-trained Language Models 引用了 A syntax-guided edit decoder for neural program repair
  • From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debugging 引用了 DLFix: context-based code transformation learning for automated program repair
  • From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debugging 引用了 Automated Program Repair in the Era of Large Pre-trained Language Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical DebuggingYuling Shi, Songsong Wang, Chengcheng Wan, Min Wang 等ICSE 2026 · 4 次引用
  2. Characterizing Multi-Hunk Patches: Divergence, Proximity, and LLM Repair ChallengesNoor Nashid, Daniel Ding, Keheliya Gallaba, Ahmed E. Hassan 等ASE 2025 · 1 次引用
  3. TLR: Codebase-Level C Memory Management Error Repair with Large Language ModelsXiao Cheng, Zhihao Guo, Huan Huo, Yulei SuiFSE 2026 · 1 次引用
  4. Well Begun is Half Done: Location-Aware and Trace-Guided Iterative Automated Vulnerability RepairZhenlei Ye, Xiaobing Sun, Sicong Cao, Lili Bo 等ICSE 2026

它引用的 Paper16

  1. Automated Program Repair in the Era of Large Pre-trained Language ModelsChunqiu Steven Xia, Yuxiang Wei, Lingming ZhangICSE 2023 · 321 次引用
  2. Less training, more repairing please: revisiting automated program repair via zero-shot learningChunqiu Steven Xia, Lingming ZhangFSE 2022 · 223 次引用
  3. A syntax-guided edit decoder for neural program repairQihao Zhu, Zeyu Sun, Yuan-an Xiao, Wenjie Zhang 等FSE 2021 · 214 次引用
  4. Automated Repair of Programs from Large Language ModelsZhiyu Fan, Xiang Gao, Martin Mirchev, Abhik Roychoudhury 等ICSE 2023 · 213 次引用
  5. DLFix: context-based code transformation learning for automated program repairYi Li, Shaohua Wang, Tien N. NguyenICSE 2020 · 201 次引用

相关 Paper

  1. CascadeFix: Multi-Location Program Repair via Cascading Planning and GenerationHuan Zhang, Li Kuang, Yang Yang, Yilei Fang 等ACL Findings 2026
  2. DEAR: A Novel Deep Learning-based Approach for Automated Program RepairYi Li, Shaohua Wang, Tien N. NguyenICSE 2022 · 91 次引用
  3. Extracting Concise Bug-Fixing Patches from Human-Written Patches in Version Control SystemsYanjie Jiang, Hui Liu, Nan Niu, Lu Zhang 等ICSE 2021 · 38 次引用
  4. On the Effectiveness of Unified Debugging: An Extensive Study on 16 Program Repair SystemsSamuel Benton, Xia Li, Yiling Lou, Lingming ZhangASE 2020 · 35 次引用
  5. PReMM: LLM-Based Program Repair for Multi-method Bugs via Divide and ConquerLinna Xie, Zhong Li, Yu Pei, Zhongzhen Wen 等OOPSLA 2025 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖