期刊文献+

一种基于谓词分层覆盖矩阵的缺陷定位方法 被引量:2

Fault localization method based on predicate hierarchical coverage matrix
在线阅读 下载PDF
导出
摘要 基于程序频谱的动态缺陷定位(spectrum based dynamic fault localization,SFL)可分为基于可执行语句覆盖的方法和基于谓词覆盖的方法。通过分析以上两类方法可以发现:a)基于可执行语句覆盖的方法未考虑谓词错误和执行结果之间的关联;b)基于谓词覆盖的方法只针对谓词进行插桩,最后只计算谓词的可疑度并对谓词进行排序,如果缺陷是非谓词,此类方法无法准确定位缺陷位置;c)忽略了基本块之间的关联和层次特性,将各个基本块看成相互独立的个体。为解决上述问题,首先,将谓词错误与执行结果之间的关联性这一有用信息加入到算法的设计中;其次,加入谓词分层覆盖与分析的思想,对覆盖矩阵中的基本块进行细分和分层;最后,将两者结合,提出一种基于谓词分层覆盖矩阵的缺陷定位方法,即谓词分层覆盖算法Phcm。将西门子程序集作为目标程序,通过与其他三种缺陷定位方法进行对比实验,验证了该方法在提高缺陷定位的精准度和减小代码检查率上的有效性。 Executable statement coverage and predicate coverage are two basic methods for spectrum based dynamic fault lo- calization. By analyzing the above two methods, it is found that: a) the method based on executable statements does not con- sider the association between the predicate error and the execution result; b) the method based on predicate coverage only does instrumentation on predicate, calculates the suspicious score of predicate and does sorting on predicate according to suspicious scores. If the fault is not from a predicate, the method will not locate the fault code statements accurately, c) Both methods ig- nore the correlation and hierarchical characteristics of the basic statements blocks and each block is treated as an independent entity. To solve the above problems, firstly, this paper added the relationship between predicate error and execution result to the algorithm. Secondly, by adding the idea of predicate hierarchical coverage and analysis, it subdivided and layered the basic blocks in the coverage matrix. Finally, by combining these two methods, this paper proposed a fault localization method based on predicate hierarchical coverage matrix, and provided a fauh localization algorithm Phem. It used the Siemens suite as the target program. By comparing with three other fault localization methods, the effectiveness of the proposed method is verified in improving the accuracy of 1:he fault localization and the code checking rate is also decreased.
出处 《计算机应用研究》 CSCD 北大核心 2016年第8期2375-2380,2395,共7页 Application Research of Computers
基金 国家质检公益性行业科研专项基金资助项目(201310032-3)
关键词 程序频谱 谓词错误 分层覆盖矩阵 缺陷定位 program spectrum predicate error hierarchical coverage matrix fault localization
作者简介 作者简介:朱润凝(1991-),女,江西景德镇人,硕士研究生,主要研究方向为软件工程(zhu_running@163.com); 赵逢禹(1963-),男,山东德州人,教授,博士,主要研究方向为软件工程.
  • 相关文献

参考文献19

  • 1赵磊,王丽娜,高东明,张震宇,熊作婷.基于关联挖掘的软件错误定位方法[J].计算机学报,2012,35(12):2528-2540. 被引量:9
  • 2丁晖,陈林,钱巨,许蕾,徐宝文.一种基于信息量的缺陷定位方法[J].软件学报,2013,24(7):1484-1494. 被引量:16
  • 3陈翔,鞠小林,文万志,顾庆.基于程序频谱的动态缺陷定位方法研究[J].软件学报,2015,26(2):390-412. 被引量:43
  • 4Naish L, Lee H J, Ramamohanarao K. A model for spectra-based software diagnosis[J]. ACM Trans on Software Engineering and Methodology, 2011,20 ( 3 ) : 1 - 32.
  • 5王新平,顾庆,陈翔,张鑫,陈道蓄.基于执行轨迹的软件缺陷定位方法研究[J].计算机科学,2009,36(10):168-171. 被引量:7
  • 6Jones J A, Harrold M J, Stasko J assist fault localization[ C]//Pruc ware Engineering. 2002:467-477.
  • 7Visualization of test informalion to of [ntemational Conference on Soft- Jones J A, Harrold M J. Empirical evaluation of the tarantula automatic fauh-localizalion technique [ C ]//Proc of International Conference on Automated Software Engineering. 2005:273-282.
  • 8Abreu R, Zoeteweij P, Gemund A J C V. An evaluation of similarity coefficients for software fault localization [ C ]//Proc of Pacific Rim In- ternational Symposium on Dependable Computing. 2006:39-46.
  • 9Abreu R, Zoeteweij P, Gemun,t A J C . On the accuracy of spec- trum-based fault localization [ C ]//Proc of Testing: Academic and In- dustrial Conference on Practice md Research Techniques. 2007:89-98.
  • 10Wong W E, Qi Yu, Zhao Lei, et al. Effective fault localization using code coverage [ C ]//Proc of Annual International Computer Software and Applications Conference. 2(107:449-456.

二级参考文献25

  • 1Agrawal H, Horgan J, London S, et al. Fault localization using execution slices and dataflow tests[C]//Proceedings of IEEE Software Reliability Engineering. Los Alamitos CA: IEEE Computer Society Press, 1995 : 143-151.
  • 2Renieris M,Reiss S P. Fault Localization with Nearest Neighbor Queries[C] //International Conference on Automated Software Engineering. Los Alamitos CA: IEEE Computer Society Press, 2003 : 30-39.
  • 3Jones J A, Harrold M J, Stasko J. Visualization of Test Information to Assist Fault Localization[C] //Proceedings of International Conference in Software Engineering. Los Alamitos CA: IEEE Computer Society Press, 2002 :467-477.
  • 4Stoerzer M. Finding Failure-Inducing Changes in Java Programs using Change Classification[C] //The 14th ACM Symposium on Foundations of Software Engineering. Oregon, USA, 2006.
  • 5Groce A D. Error Explanation and Localization with Distance Metrics[D]. Pittsburgh, PA: Carnegie Mellon University, 2005.
  • 6Hao Dan, Pan Ying. A Similarity-Aware Approach to Testing Based Fault Localization[C]// International Conference on Automated Software Engineering. California, USA, 2005.
  • 7Chen T Y,Cheung Y Y. On program dicing[J]. Software Maintenance: Research and Experience, 1997,9 (1) : 33-46.
  • 8Ren Xiaoxia,Chesley O C. Identifying Failure Causes in Java Programs: An Application of Change Impact Analysis[J]. IEEE transactions on software engineering, 2006,32(9) : 718-732.
  • 9Jones J A. Fault Localization using Visualization of Test Informarion[C]// International Conference in Software Engineering. Edinburgh, UK, 2004.
  • 10Cleve H. Locating Causes of Program Failures[C]//International Conference in Software Engineering. Missouri, USA, 2005.

共引文献64

同被引文献18

引证文献2

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部