期刊文献+

一种基于层次切片的软件错误定位方法 被引量:6

Software fault localization based on hierarchical slicing
下载PDF
导出
摘要 提出了一种基于层次切片模型适合面向对象语言的错误定位方法.首先分别在包层、类层、方法层删去通过测试的包、类和方法,缩小软件错误存在的范围;其次,在语句层将删减后的程序按抽象语法树划分成若干模块,统计模块内变量使用的数目;通过动态分析,选取一组测试用例计算其执行历史;根据模块内使用变量数目的规模,采用逐步求精算法,计算产生错误测试用例的程序执行历史与静态分析过程中所产生模块的交集及交集的后向切片,直至实现错误定位.实验数据表明:该方法能够查出前期定位程序中绝大部分错误的位置,尤其适用在方法调用比较少的程序中.在方法调用比较频繁的程序中,由于在调用语句处迭代调用逐步求精算法,效率会降低. A novel HSM(hierarchical slicing model)-based fault localization technique is proposed for object-oriented programs.Firstly,the scope of fault localization is reduced by deleting packages,classes and methods which have passed the tests,then the reduced program will be partitioned into some modules based on AST(abstract syntax tree) by analyzing statements,and further,the number of variables within each module are computed independently.Then,execution history is computed based on a set of test cases.Finally,according to the size of the variables used in the modules,the intersection of each module and its backward slice are iteratively calculated using the SSA(stepwise slicing algorithm) until faults are eventually localized.Experimental results show that: the method can locate the most faults early,especially in the program with less method calling relationship.The SSA is called iteratively in the program where the method is called more frequently.Thus,the efficiency is reduced.
出处 《东南大学学报(自然科学版)》 EI CAS CSCD 北大核心 2010年第4期692-698,共7页 Journal of Southeast University:Natural Science Edition
基金 国家自然科学基金资助项目(60773105) 国家高技术研究发展计划(863计划)资助项目(2007AA01Z141) 教育部新世纪优秀人才支持计划资助项目(NCET-06-0466)
关键词 层次切片模型 抽象语法树 执行历史 逐步求精 hierarchical slicing model abstract syntax tree execution history stepwise refinement
  • 相关文献

参考文献10

  • 1Korel B,Laski J.Algorithmic software fault localization[C]//Proceedings of the Twenty-Fourth Annual Hawaii International Conference on System Sciences.Hawaii,USA,1991:246-252.
  • 2Weiser M.Program slicing[C]//Proceedings of the 5th International Conference on Software Engineering.San Diego,CA,USA,1981:439-449.
  • 3Korel B,Laski J.Dynamic program slicing[J].Information Processing Letters,1988,29(3):155-163.
  • 4Zeller A.Yesterday,my program worked.Today,it does not.Why?[C]//Proceedings of the 7th European Software Engineering Conference.Toulouse,France,1999:253-267.
  • 5Zhang X,Gupta N.Locating faulty code by multiple points slicing[J].Software-Practice & Experience,2007,37(9):935-961.
  • 6Wong W E,Qi Y.Effective program debugging based on execution slices and inter-block data dependency[J].Journal of Systems and Software,2006,79(7):891-903.
  • 7Sun J,Li Zh,Ni J.Software fault localization based on testing requirement and program slice[C]//International Conference on Networking,Architecture,and Storage.Guilin,China,2007:168-176.
  • 8李必信,刘小东,郑滔,李宣东,郑国梁.一种面向对象程序的分层切片方法[J].软件学报,2001,12(12):1810-1817. 被引量:8
  • 9Harrold M J,Rothermel G.Syntax-directed construction of program dependence graphs,OH 43210-1277[R].Columbus,OH,USA:Ohio State University,1996.
  • 10Kit E.Software testing in the real world:improving the process[M].New York:ACM Press/Addison-Wesley,1995:110-116.

二级参考文献6

共引文献7

同被引文献68

  • 1周小勇,叶银忠.小波分析在故障诊断中的应用[J].控制工程,2006,13(1):70-73. 被引量:47
  • 2Jones J A, Harrold M J. Empirical evaluation of the tarantula automatic fault-localization technique [C]//Proceedings of the 20th IEEE/ACM international Conference on Automated soft- ware engineering. New York, USA= ACM, 2005 : 273-282.
  • 3Weiser M. Program slicing[J]. IEEE Transactions on Software Engineering, 1984,10(5) : 498-509.
  • 4Renieris M, Reiss S P. Fault localization with nearest neighbor queries[C]//Proceedings of the 18th IEEE International Con ference on Automated Software Engineering. USA: IEEE Com- puter Society, 2003 : 30 -39.
  • 5Jones J A, Harrold M J, Stasko J. Visualization of test informa- tion to assist fault loealization[C]//Proeeedings of the 24th In- ternational Conference on Software Engineering. USA: ACM, 2002 : 467-477.
  • 6Chen M Y, Kiciman E, Fratkin E, et al. Pinpoint:problem deter- mi- nation in large, dynamic internet services[C]//Proceedings of the 2002 International Conference on Dependable Systems and Networks. USA: IEEE Computer Society, 2002 : 595-604.
  • 7Abreu R, Zoeteweij P, van Gemund A J C: On the accuracy of spectrum based fault localization[C]//Proceedings of Testing: Academic and Industrial Conference, Practice and Research Techniques. Washington, DC, USA: IEEE Computer Society, 2007:89-98.
  • 8Liu Chao, Yan Xi-feng, Fei Long, et al. SOBER = statistical mod- el-based bug localization [J]. ACM SIGSOFT Software Engi- neering Notes, 2005,30(5) : 286-295.
  • 9Wong W E, Wei Ting-ting, Qi Yu, et al. A crosstab-based statis- tical method for effective fault localization[C]//Proceedings of the 1st International Conference on Software Testing, Verifica- tion, and Validation. Lillehammer, Washington, DC, USA: IEEEComputer Society, 2008 : 42-51.
  • 10Wong W E, Debroy V, Xu Dian-xiang. Towards better fault lo- calization: a crosstab-based statistical approach [J].IEEE Transactions on Systems, Man, and Cybernetics, Part C: Appli- cations and Reviews,2012,42(3) :378-396.

引证文献6

二级引证文献24

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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