期刊文献+

失效上下文统计分析的软件故障定位方法 被引量:1

Software fault localization approach by statistical analysis of failure context
下载PDF
导出
摘要 针对程序切片方法不提供语句的可疑程度描述,而覆盖分析方法不能充分分析程序元素间的相互影响等问题,提出上下文统计分析的软件故障定位方法。首先,将源程序转换为抽象语法树和程序依赖图;接下来,插桩程序,收集运行时信息;然后,根据失效点,执行按需的反向动态切片,确定失效产生的上下文;最后,对于反向动态切片中的节点,统计计算可疑度,输出带可疑度排序的动态程序切片。该方法不但描述了失效产生的上下文,还计算上下文中各个语句的可疑度。实验结果表明,所提方法与单一的覆盖分析方法相比,平均Expense降低了1.3%,与单一的切片方法相比,平均Expense降低了5.6%,所提方法可以有效辅助开发人员定位与修正软件缺陷。 The program slicing approach does not describe the suspiciousness of statements, while the coverage analysis based fault localization approach does not analyze the relationship between statements. To solve these problems, a software fault localization approach by statistical analysis of failure context was proposed. Firstly, source code was transformed to an abstract syntax tree and program dependence graphs. Then, instrumentation was performed based on the abstract syntax tree to collect execution information. Next, starting from the failure point, dynamic program slicing based on requirement was conducted in order to get the context of failure. Finally, suspiciousness of nodes in the reverse dynamic program slice was computed, and a dynamic program slice with suspiciousness ranking was output. The proposed approach could not only describe the failure context, but also gave the suspiciousness of the statements. The experimental results show that it has an average 1.3% and 5.6% expense decrease compared with the coverage based analysis approach and the slicing approach respectively, so that it can facilitate the localization and fixing of bugs.
出处 《计算机应用》 CSCD 北大核心 2015年第3期882-885,890,共5页 journal of Computer Applications
基金 哈尔滨学院青年基金资助项目(HUYF2014-007) 黑龙江省高教学会"十二五"重点规划课题(HGJXHA1110950) 黑龙江省教育科学规划青年专项课题(GJD1214038) 国家自然科学基金资助项目(61202092) 高等学校博士学科点专项科研基金资助项目(20112302120052) 哈尔滨科技创新人才研究专项资金资助项目(RC2013QN010001 2014RFQXJ062) 黑龙江省普通高校青年学术骨干项目 黑龙江省自然科学基金资助项目(F201127)
关键词 软件调试 故障定位 动态切片 覆盖分析 失效上下文 software debugging fault localization dynamic slicing coverage analysis failure context
  • 相关文献

参考文献12

  • 1虞凯,林梦香.自动化软件错误定位技术研究进展[J].计算机学报,2011,34(8):1411-1422. 被引量:43
  • 2JONES J A. Fault localization using visualization of test information[C]//Proceedings of the 26th IEEE International Conference on Software Engineering. Piscataway:IEEE, 2004:54-56.
  • 3WONG W E, WEI T, QI Y,et al. A crosstab-based statistical method for effective fault localization[C]//Proceedings of the 20081st International Conference on Software Testing, Verification, and Validation. Piscataway:IEEE, 2008:42-51.
  • 4NAISH L, LEE H J, RAMAMOHANARAO K. A model for spectra-based software diagnosis[J]. ACM Transactions on Software Engineering and Methodology, 2011,20(3):11.
  • 5SANTELICES R, JONES J A, YU Y,et al. Lightweight fault-localization using multiple coverage types[C]//Proceedings of the IEEE 31st International Conference on Software Engineering. Piscataway:IEEE, 2009:56-66.
  • 6AGRAWAL H, HORGAN J R. Dynamic program slicing[C]//Proceedings of the ACM Conference on Programming Language Design and Implementation. New York:ACM, 1990:246-256.
  • 7ALVES E, GLIGORIC M, JAGANNATH V,et al. Fault-localization using dynamic slicing and change impact analysis[C]//Proceedings of the 201126th IEEE/ACM International Conference on Automated Software Engineering. Washington, DC:IEEE Computer Society, 2011:520-523.
  • 8BAAH G K, PODGURSKI A, HARROLD M J. The probabilistic program dependence graph and its application to fault diagnosis[J]. IEEE Transactions on Software Engineering, 2010,36(4):528-545.
  • 9CHO C Y, D'SILVA V, SONG D. BLITZ:compositional bounded model checking for real-world programs[C]//Proceedings of the IEEE/ACM 28th International Conference on Automated Software Engineering. Piscataway:IEEE, 2013:136-146.
  • 10PAPADAKIS M, le TRAON Y. Metallaxis-FL:mutation-based fault localization[J]. Software Testing, Verification and Reliability, 2013. PAPADAKIS M, le TRAON Y. Metallaxis-FL:mutation-based fault localization[EB/OL].[2014-06-09]. http://onlinelibrary.wiley.com/doi/10.1002/stvr.1509/pdf.

二级参考文献78

  • 1Jeffrey D, Gupta N, Gupta R. Fault localization using value replacement//Proceedings of the 2008 International Symposium on Software Testing and Analysis (ISSTA ' 08). Seattle, WA, USA, 2008:167-178.
  • 2Zhang X, Gupta N, Gupta R. Locating faults through automated predicate switching//Proceedings of the 28th International Conference on Software Engineering (ICSE ' 06 ). Shanghai, China, 2006:272 -281.
  • 3Reps T, Ball T, Das M, Larus J. The use of program profiling for software maintenance with applications to the year 2000 problem//Proceedings of the 6th European Software Engineering Conference Held Jointly with the 5th ACM SIG- SOFT International Symposium on Foundations of Software Engineering(ESEC'97/FSE-5). Zurich, Switzerland, 1997.- 432 449.
  • 4Harrold M J, Rothermel G, Sayre K, Wu R, Yi L. An empirical investigation of the relationship between spectra differences and regression faults. Software Testing Verification and Reliability, 2000, 10(3): 171-194.
  • 5Jones J A, Harrold M J, Stasko J. Visualization of test information to assist fault localization//Proceedings of the 24th International Conference on Software Engineering (ICSE' 02). Orlando, Florida, 2002: 467-477.
  • 6Wong E, Wei T, Qi Y, Zhao L. A Crosstab-based statistical method for effective fault localization//Proceedings of the 2008 International Conference on Software Testing, Verification, and Validation (ICST'08). Lillehammer, Norway, 2008:42-51.
  • 7Hao D, Zhang L, Pan Y, Mei H, Sun J. On similarity- awareness in testing-based {ault localization. Automated Software Engineering, 2008, 15(2):07-249.
  • 8Naish L, Lee H, Ramamohanarao K. A model for spectra- based software diagnosis. ACM Transactions on Software Engineering and Methodology, 2011, 20(3): to appear.
  • 9Liblit B, Naik M, Zheng A X, Aiken A, Jordan M I. Scalable statistical bug isolation//Proceedings of the 2005 ACM SIGPLAN Conference on Programming Language Design and Implementation(PLDI'05). 2005:15-26.
  • 10Liu C, Fei L, Yan X, Han J, Midkiff S P. Statistical debugging; A hypothesis testing-based approach. IEEE Transactions on Software Engineering, 2006, 32(10): 831-848.

共引文献54

同被引文献4

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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