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 条
  • [31] A Preliminary Study on Using Code Smells to Improve Bug Localization
    Takahashi, Aoi
    Sae-Lim, Natthawute
    Hayashi, Shinpei
    Saeki, Motoshi
    2018 IEEE/ACM 26TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC 2018), 2018, : 324 - 327
  • [32] Compositional Vector Space Models for Improved Bug Localization
    Wang, Shaowei
    Lo, David
    Lawall, Julia
    2014 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2014, : 171 - 180
  • [33] Code Complexity and Version History for Enhancing Hybrid Bug Localization
    Seyam, Ahmed Ali
    Hamdy, Abeer
    Farhan, Marwa Salah
    IEEE ACCESS, 2021, 9 : 61101 - 61113
  • [34] Assisting Code Search with Automatic Query Reformulation for Bug Localization
    Sisman, Bunyamin
    Kak, Avinash C.
    2013 10TH IEEE WORKING CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR), 2013, : 309 - 318
  • [35] Enhancing Bug Localization through Bug Report Summarization
    Zhang, Xia
    Zhu, Ziye
    Li, Yun
    23RD IEEE INTERNATIONAL CONFERENCE ON DATA MINING, ICDM 2023, 2023, : 1541 - 1546
  • [36] Augmented Bug Localization Using Past Bug Information
    Nichols, Brent D.
    PROCEEDINGS OF THE 48TH ANNUAL SOUTHEAST REGIONAL CONFERENCE (ACM SE 10), 2010, : 306 - 311
  • [37] Improving Bug Localization by Mining Crash Reports: An Industrial Study
    Medeiros, Marcos
    Kulesza, Uira
    Bonifacio, Rodrigo
    Adachi, Eiji
    Coelho, Roberta
    2020 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2020), 2020, : 766 - 775
  • [38] Will this localization tool be effective for this bug? Mitigating the impact of unreliability of information retrieval based bug localization tools
    Le, Tien-Duy B.
    Thung, Ferdian
    Lo, David
    EMPIRICAL SOFTWARE ENGINEERING, 2017, 22 (04) : 2237 - 2279
  • [39] Will this localization tool be effective for this bug? Mitigating the impact of unreliability of information retrieval based bug localization tools
    Tien-Duy B. Le
    Ferdian Thung
    David Lo
    Empirical Software Engineering, 2017, 22 : 2237 - 2279
  • [40] Knowledge-Augmented Mutation-Based Bug Localization for Hardware Design Code
    Wu, Jiang
    Zhang, Zhuo
    Yang, Deheng
    Xu, Jianjun
    He, Jiayu
    Mao, Xiaoguang
    ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2024, 21 (03)