Improving Software Fault Localization by Combining Spectrum and Mutation

被引:19
作者
Cui, Zhanqi [1 ]
Jia, Minghua [1 ,2 ]
Chen, Xiang [3 ]
Zheng, Liwei [1 ]
Liu, Xiulei [1 ]
机构
[1] Beijing Informat Sci & Technol Univ, Comp Sch, Beijing 100101, Peoples R China
[2] Cent Univ Finance & Econ, Sch Informat, Beijing 100081, Peoples R China
[3] Nantong Univ, Sch Informat Sci & Technol, Nantong 226019, Peoples R China
基金
中国国家自然科学基金;
关键词
Software debugging; fault localization; program spectrum; mutation testing;
D O I
10.1109/ACCESS.2020.3025460
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The performance of software fault localization techniques is critical to software debugging and the reliability of software. Spectrum-based fault localization (SBFL) and mutation-based fault localization (MBFL) are the two most popular fault localization methods. However, the accuracies of the two methods are still limited. For example, only 10.63% of faults can be detected by inspecting the top 3 suspicious elements reported by Ochiai, which is a famous SBFL technique. Unfortunately, programmers only examine the first few suspicious elements before losing patience. Since the information used in SBFL and MBFL are quite different and complementary, this paper proposes a novel approach by combining spectrum and mutation to improve the fault localization accuracy. First, the faulty program is evaluated by using SBFL, and the potential faulty statements are ranked according to their suspiciousness. Then, mutants of the program are generated and executed by MBFL. Finally, the statements that are ranked in the top tied n by SBFL are evaluated and reranked according to their mutation scores. Experiments are carried on the Defects4J benchmark and the results reveal that the accuracy of the proposed approach outperforms those of the SBFL and MBFL techniques. In terms of the faults located by inspecting the top 1 suspicious elements, the SMFL techniques detect at least 2.36 times more faults than two SBFL techniques (DStar and Ochiai) and detect at least 1.86 times more faults than two MBFL techniques (MUSE and Metallaxis).
引用
收藏
页码:172296 / 172307
页数:12
相关论文
共 40 条
[1]   On the accuracy of spectrum-based fault localization [J].
Abreu, Rui ;
Zoeteweij, Peter ;
van Gemund, Arjan J. C. .
TAIC PART 2007 - TESTING: ACADEMIC AND INDUSTRIAL CONFERENCE - PRACTICE AND RESEARCH TECHNIQUES, PROCEEDINGS: CO-LOCATED WITH MUTATION 2007, 2007, :89-+
[2]  
Agrawal H, 1995, SIXTH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING, PROCEEDINGS, P143, DOI 10.1109/ISSRE.1995.497652
[3]  
[Anonymous], 2011, P ACM SIGSOFT S EURO
[4]  
[Anonymous], 2005, P 20 IEEE ACM INT C, DOI DOI 10.1145/1101908.1101949
[5]  
[Anonymous], 2011, Acm T. Intel. Syst. Tec., DOI DOI 10.1145/1961189.1961199
[6]  
Baum TC, 2017, 2017 11TH INTERNATIONAL CONGRESS ON ENGINEERED MATERIALS PLATFORMS FOR NOVEL WAVE PHENOMENA (METAMATERIALS), P400, DOI 10.1109/MetaMaterials.2017.8107827
[7]  
Cleve H, 2005, PROC INT CONF SOFTW, P342
[8]  
Cousins L., 1986, P IEEE NAT COMP C
[9]   Combining mutation and fault localization for automated program debugging [J].
Debroy, Vidroha ;
Wong, W. Eric .
JOURNAL OF SYSTEMS AND SOFTWARE, 2014, 90 :45-60
[10]  
Harrold MJ, 2000, SOFTW TEST VERIF REL, V10, P171, DOI 10.1002/1099-1689(200009)10:3<171::AID-STVR209>3.0.CO