Common Bug-fix Patterns: A Large-Scale Observational Study

被引:24
|
作者
Campos, Eduardo C. [1 ]
Maia, Marcelo A. [1 ]
机构
[1] Univ Fed Uberlandia, Fac Comp, Uberlandia, MG, Brazil
来源
11TH ACM/IEEE INTERNATIONAL SYMPOSIUM ON EMPIRICAL SOFTWARE ENGINEERING AND MEASUREMENT (ESEM 2017) | 2017年
关键词
REPAIR;
D O I
10.1109/ESEM.2017.55
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
[Background]: There are more bugs in real-world programs than human programmers can realistically address. Several approaches have been proposed to aid debugging. A recent research direction that has been increasingly gaining interest to address the reduction of costs associated with defect repair is automatic program repair. Recent work has shown that some kind of bugs are more suitable for automatic repair techniques. [Aim]: The detection and characterization of common bug-fix patterns in software repositories play an important role in advancing the field of automatic program repair. In this paper, we aim to characterize the occurrence of known bug-fix patterns in Java repositories at an unprecedented large scale. [Method]: The study was conducted for Java GitHub projects organized in two distinct data sets: the first one (i.e., Boa data set) contains more than 4 million bug-fix commits from 101,471 projects and the second one (i.e., Defects4J data set) contains 369 real bug fixes from five open-source projects. We used a domain-specific programming language called Boa in the first data set and conducted a manual analysis on the second data set in order to confront the results. [Results]: We characterized the prevalence of the five most common bug-fix patterns (identified in the work of Pan et al.) in those bug fixes. The combined results showed direct evidence that developers often forget to add IF preconditions in the code. Moreover, 76% of bug-fix commits associated with the IF-APC bug-fix pattern are isolated from the other four bug-fix patterns analyzed. [Conclusion]: Targeting on bugs that miss preconditions is a feasible alternative in automatic repair techniques that would produce a relevant payback.
引用
收藏
页码:404 / 413
页数:10
相关论文
共 50 条
  • [1] Discovering common bug-fix patterns: A large-scale observational study
    Campos, Eduardo C.
    Maia, Marcelo de A.
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2019, 31 (07)
  • [2] A study of common bug fix patterns in Rust
    Mohammad Robati Shirzad
    Patrick Lam
    Empirical Software Engineering, 2024, 29
  • [3] A study of common bug fix patterns in Rust
    Shirzad, Mohammad Robati
    Lam, Patrick
    EMPIRICAL SOFTWARE ENGINEERING, 2024, 29 (02)
  • [4] How Bugs Are Fixed: Exposing Bug-fix Patterns with Edits and Nesting Levels
    Islam, Md Rakibul
    Zibran, Minhaz F.
    PROCEEDINGS OF THE 35TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING (SAC'20), 2020, : 1523 - 1531
  • [5] Bug Characteristics in Blockchain Systems: A Large-Scale Empirical Study
    Wan, Zhiyuan
    Lo, David
    Xia, Xin
    Cai, Liang
    2017 IEEE/ACM 14TH INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR 2017), 2017, : 413 - 424
  • [6] An Investigation on Software Bug-Fix Prediction for Open Source Software Projects-A Case Study on the Eclipse Project
    Ihara, Akinori
    Kamei, Yasutaka
    Monden, Akito
    Ohira, Masao
    Keung, Jacky Wai
    Ubayashi, Naoyasu
    Matsumoto, Ken-ichi
    2012 19TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE WORKSHOPS (APSECW), VOL. 2, 2012, : 112 - 119
  • [7] INTERRELATIONSHIPS AMONG COMMON PREDICTORS OF CARDIOVASCULAR DISEASES IN PATIENTS OF OSA: A LARGE-SCALE OBSERVATIONAL STUDY
    Li, X.
    Qian, Y.
    Xu, H.
    Guan, J.
    Yin, S.
    SLEEP MEDICINE, 2019, 64 : S310 - S310
  • [8] Interrelationships among common predictors of cardiovascular diseases in patients of OSA: A large-scale observational study
    Li, Xinyi
    Wang, Fan
    Xu, Huajun
    Qian, Yingjun
    Zou, Jianyin
    Yang, Mingpo
    Zhu, Huaming
    Yi, Hongliang
    Guan, Jian
    Yin, Shankai
    NUTRITION METABOLISM AND CARDIOVASCULAR DISEASES, 2020, 30 (01) : 23 - 32
  • [9] Large-Scale Observational Study of Drivers' Cell Phone Use
    Wenners, Keith E.
    Knodler, Michael A., Jr.
    Kennedy, Jennifer R.
    Fitzpatrick, Cole D.
    TRANSPORTATION RESEARCH RECORD, 2013, (2365) : 49 - 57
  • [10] Introducing WASHOUT: A Large-scale Observational Study of Inpatient Haematuria
    Byrnes, Kevin G.
    Bhatt, Nikita R.
    Ippoliti, Simona
    Varma, Raghav
    Asif, Aqua
    Kerdegari, Nikki
    Ng, Alex
    Chow, Bing
    Mak, Quentin
    Nathan, Arjun
    Gallagher, Kevin
    Khadhouri, Sinan
    Kasivisvinathan, Veeru
    EUROPEAN UROLOGY FOCUS, 2024, 10 (02): : 303 - 305