Improved bug localization based on code change histories and bug reports

被引:79
|
作者
Youm, Klaus Changsun [1 ,2 ]
Ahn, June [1 ]
Lee, Eunseok [1 ]
机构
[1] Sungkyunkwan Univ, Dept Informat & Commun Engn, Suwon, South Korea
[2] Samsung Elect, Mobile Commun & Business, Suwon, South Korea
基金
新加坡国家研究基金会;
关键词
Bug localization; Information retrieval; Bug reports; Stack traces; Code change history; Method analysis; CHANGE IMPACT ANALYSIS;
D O I
10.1016/j.infsof.2016.11.002
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context: Several issues or defects in released software during the maintenance phase are reported to the development team. It is costly and time-consuming for developers to precisely localize bugs. Bug reports and the code change history are frequently used and provide information for identifying fault locations during the software maintenance phase. Objective: It is difficult to standardize the style of bug reports written in natural languages to improve the accuracy of bug localization. The objective of this paper is to propose an effective information retrieval based bug localization method to find suspicious files and methods for resolving bugs. Method: In this paper, we propose a novel information retrieval-based bug localization approach, termed Bug Localization using Integrated Analysis (BLIA). Our proposed BLIA integrates analyzed data by utilizing texts, stack traces and comments in bug reports, structured information of source files, and the source code change history. We improved the granularity of bug localization from the file level to the method level by extending previous bug repository data. Results: We evaluated the effectiveness of our approach based on experiments using three open-source projects, namely AspectJ, SWT, and ZXing. In terms of the mean average precision, on average our approach improves the metric of BugLocator, BLUiR, BRTracer, AmaLgam and the preliminary version of BLIA by 54%, 42%, 30%, 25% and 15%, respectively, at the file level of bug localization. Conclusion: Compared with prior tools, the results showed that BLIA outperforms these other methods. We analyzed the influence of each score of BLIA from various combinations based on the analyzed information. Our proposed enhancement significantly improved the accuracy. To improve the granularity level of bug localization, a new approach at the method level is proposed and its potential is evaluated. (C) 2016 Elsevier B.V. All rights reserved.
引用
收藏
页码:177 / 192
页数:16
相关论文
共 50 条
  • [1] Bug Localization Based on Code Change Histories and Bug Reports
    Youm, Klaus Changsun
    Ahn, June
    Kim, Jeongho
    Lee, Eunseok
    2015 22ND ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2015), 2015, : 190 - 197
  • [2] On the Value of Bug Reports for Retrieval-based Bug Localization
    Lawrie, Dawn
    Binkley, Dave
    PROCEEDINGS 2018 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2018, : 524 - 528
  • [3] Exploring Metadata in Bug Reports for Bug Localization
    Zhang, Xiaofei
    Yao, Yuan
    Wang, Yaojing
    Xu, Feng
    Lu, Jian
    2017 24TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2017), 2017, : 328 - 337
  • [4] On the classification of bug reports to improve bug localization
    Fang, Fan
    Wu, John
    Li, Yanyan
    Ye, Xin
    Aljedaani, Wajdi
    Mkaouer, Mohamed Wiem
    SOFT COMPUTING, 2021, 25 (11) : 7307 - 7323
  • [5] On the classification of bug reports to improve bug localization
    Fan Fang
    John Wu
    Yanyan Li
    Xin Ye
    Wajdi Aljedaani
    Mohamed Wiem Mkaouer
    Soft Computing, 2021, 25 : 7307 - 7323
  • [6] Are Bug Reports Enough for Text Retrieval-based Bug Localization?
    Mills, Chris
    Pantiuchina, Jevgenija
    Parra, Esteban
    Bavota, Gabriele
    Haiduc, Sonia
    PROCEEDINGS 2018 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2018, : 381 - 392
  • [7] Source Code Retrieval for Bug Localization using Bug Report
    Swe, Kyaw Ei Ei
    Oo, Hnin Min
    2019 IEEE 15TH INTERNATIONAL CONFERENCE ON INTELLIGENT COMPUTER COMMUNICATION AND PROCESSING (ICCP 2019), 2019, : 241 - 247
  • [8] On the relationship between bug reports and queries for text retrieval-based bug localization
    Mills, Chris
    Parra, Esteban
    Pantiuchina, Jevgenija
    Bavota, Gabriele
    Haiduc, Sonia
    EMPIRICAL SOFTWARE ENGINEERING, 2020, 25 (05) : 3086 - 3127
  • [9] On the relationship between bug reports and queries for text retrieval-based bug localization
    Chris Mills
    Esteban Parra
    Jevgenija Pantiuchina
    Gabriele Bavota
    Sonia Haiduc
    Empirical Software Engineering, 2020, 25 : 3086 - 3127
  • [10] Using Co-Change Histories to Improve Bug Localization Performance
    Tantithamthavorn, Chakkrit
    Ihara, Akinori
    Matsumoto, Ken-ichi
    2013 14TH ACIS INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ARTIFICIAL INTELLIGENCE, NETWORKING AND PARALLEL/DISTRIBUTED COMPUTING (SNPD 2013), 2013, : 543 - 548