Boosting Bug-Report-Oriented Fault Localization with Segmentation and Stack-Trace Analysis
Boosting Bug-Report-Oriented Fault Localization with Segmentation and Stack-Trace Analysis
复制标题
DOI:
10.1109/icsme.2014.40
复制
发表时间:
2014-09
期刊:
影响因子:
--
通讯作者:
Chu-Pan Wong;Yingfei Xiong;Hongyu Zhang;Dan Hao;Lu Zhang;Hong Mei
中科院分区:
文献类型:
--
作者:
Chu-Pan Wong;Yingfei Xiong;Hongyu Zhang;Dan Hao;Lu Zhang;Hong Mei
To deal with post-release bugs, many software projects set up public bug repositories for users all over the world to report bugs that they have encountered. Recently, researchers have proposed various information retrieval based approaches to localizing faults based on bug reports. In these approaches, source files are processed as single units, where noise in large files may affect the accuracy of fault localization. Furthermore, bug reports often contain stack-trace information, but existing approaches often treat this information as plain text. In this paper, we propose to use segmentation and stack-trace analysis to improve the performance of bug localization. Specifically, given a bug report, we divide each source code file into a series of segments and use the segment most similar to the bug report to represent the file. We also analyze the bug report to identify possible faulty files in a stack trace and favor these files in our retrieval. According to our empirical results, our approach is able to significantly improve Bug Locator, a representative fault localization approach, on all the three software projects (i.e., Eclipse, AspectJ, and SWT) used in our empirical evaluation. Furthermore, segmentation and stack-trace analysis are complementary to each other for boosting the performance of bug-report-oriented fault localization.