HSFal: Effective fault localization using hybrid spectrum of full slices and execution slices

被引:52
作者
Ju, Xiaolin [1 ,2 ]
Jiang, Shujuan [1 ]
Chen, Xiang [2 ,3 ]
Wang, Xingya [1 ]
Zhang, Yanmei [1 ]
Cao, Heling [1 ]
机构
[1] China Univ Min & Technol, Sch Comp Sci & Technol, Xuzhou, Peoples R China
[2] Nantong Univ, Sch Comp Sci & Technol, Nantong, Peoples R China
[3] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing 210008, Jiangsu, Peoples R China
关键词
Dynamic slicing; Execute slicing; Fault localization; DYNAMIC SLICES; EFFICIENT;
D O I
10.1016/j.jss.2013.11.1109
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Most of the existing fault localization approaches use execution coverage of test cases to isolate the suspicious codes that likely contain faults. Program slicing can extract the dependencies of program entities with respect to a specific criterion. Therefore this technique is expected to have a beneficial effect on fault localization. In this paper, we propose a novel approach using a hybrid spectrum of full slices and execution slices to improve the effectiveness of fault localization. In particular, our approach firstly computes full slices of failed test cases and execution slices of passed test cases respectively. Secondly it constructs the hybrid spectrum by intersecting full slices and execution slices. Finally it computes the suspiciousness of each statement in the hybrid slice spectrum and generates a fault location report with descending suspiciousness of each statement. We also implement our proposed approach in our prototype tool HSFal by Java programming language. To verify the effectiveness of our approach, we performed an empirical study by the prototype on several widely used open source programs. Our approach is compared with eight representative coverage-based and slice-based fault localization approaches. Final experimental results show that our proposed approach is more effective in fault localization than other compared approaches, and can reduce almost 2.98-31.79% of the average cost of examined code significantly. (C) 2013 Elsevier Inc. All rights reserved.
引用
收藏
页码:3 / 17
页数:15
相关论文
共 40 条
[1]  
Abreu R, 2006, 12TH PACIFIC RIM INTERNATIONAL SYMPOSIUM ON DEPENDABLE COMPUTING, PROCEEDINGS, P39
[2]   Spectrum-based Multiple Fault Localization [J].
Abreu, Rui ;
Zoeteweij, Peter ;
van Gemund, Arjan J. C. .
2009 IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, PROCEEDINGS, 2009, :88-99
[3]   A practical evaluation of spectrum-based fault localization [J].
Abreu, Rui ;
Zoeteweij, Peter ;
Golsteijn, Rob ;
van Gemund, Arjan J. C. .
JOURNAL OF SYSTEMS AND SOFTWARE, 2009, 82 (11) :1780-1792
[4]  
Agrawal H, 1995, SIXTH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING, PROCEEDINGS, P143, DOI 10.1109/ISSRE.1995.497652
[5]  
AGRAWAL H, 1990, SIGPLAN NOTICES, V25, P246, DOI 10.1145/93548.93576
[6]   The efficiency of critical slicing in fault localization [J].
Al-Khanjari, ZA ;
Woodward, MR ;
Ramadhan, H ;
Kutti, NS .
SOFTWARE QUALITY JOURNAL, 2005, 13 (02) :129-153
[7]   Evaluating the Accuracy of Fault Localization Techniques [J].
Ali, Shaimaa ;
Andrews, James H. ;
Dhandapani, Tamilselvi ;
Wang, Wantao .
2009 IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, PROCEEDINGS, 2009, :76-87
[8]  
[Anonymous], 2005, P 6 INT S AUTOMATED
[9]   Pinpoint: Problem determination in large, dynamic Internet services [J].
Chen, MY ;
Kiciman, E ;
Fratkin, E ;
Fox, A ;
Brewer, E .
INTERNATIONAL CONFERENCE ON DEPENDABLE SYSTEMS AND NETWORKS, PROCEEDINGS, 2002, :595-604
[10]  
Chen TY, 1997, J SOFTW MAINT-RES PR, V9, P33, DOI 10.1002/(SICI)1096-908X(199701)9:1<33::AID-SMR143>3.0.CO