吉林大学学报(信息科学版) ›› 2014, Vol. 32 ›› Issue (5): 528-533.

• 论文 • 上一篇    下一篇

基于程序执行轨迹与动态切片的错误定位研究

孙士明1, 侯秀萍1, 高灿2, 孙琳琳1   

  1. 1. 长春工业大学 计算机科学与工程学院, 长春 130012; 2. 苏州大学 附属第一医院, 江苏 苏州 215006
  • 收稿日期:2014-01-14 出版日期:2014-09-26 发布日期:2014-12-26
  • 作者简介:孙士明(1986—), 男, 山东莱芜人, 长春工业大学硕士研究生, 主要从事软件工程研究,(Tel)86-13756116537(E-mail)sunshiming0634@qq.com;通讯作者:侯秀萍(1964—), 女, 长春人, 长春工业大学教授, 硕士生导师, 主要从事软件工程研究, (Tel)86-18643194774(E-mail)houxiuping@mail.ccut.edu.cn。
  • 基金资助:

    国家科技部863高技术基金资助项目(2011AA040602)

Research on Fault Localization Based on Execution Trace and Dynamic Slicing

SUN Shiming1, HOU Xiuping1, GAO Can2, SUN Linlin1   

  1. 1. School of Computer Science and Engineering, Changchun University of Technology, Changchun 130012, China;2. The First Affiliated Hospital, Soochow University, Suzhou 215006, China
  • Received:2014-01-14 Online:2014-09-26 Published:2014-12-26

摘要:

为解决程序调试过程中的错误定位问题, 将程序执行轨迹和动态切片技术应用于错误定位。程序执行轨迹中包含与错误无关语句, 影响错误定位的准确度。在执行轨迹的基础上, 通过使用动态切片技术降低不相关语句在错误定位时的影响。建立基于程序执行轨迹和动态切片的语句怀疑度计算模型, 使用该模型计算每条语句的怀疑度, 并根据怀疑度对每条语句进行排序, 给出查错的推荐方案。通过实验对比其他算法, 证明了基于程序执行轨迹与动态切片的错误定位方法是有效的。

关键词: 执行轨迹, 动态切片, 怀疑度

Abstract:

The problem of faulty localization during program debugging is studied, and execution trace and dynamic slicing are applied to faulty localization. Irrelevant statements of fault localization are included in execution trace, accuracy of fault localization is affected by these statements. The influence of irrelevant tatements is reduced by dynamic slicing technology based on execution trace. The model of suspicious degrees computing based on execution trace and dynamic slicing had been established, and suspicious degree of each statements could be computed by this model. After sorting these statements by their suspicious degrees, recommendation of fault localization would be reached. The experimental results are compared with other algorithms, and the method of faulty localization based on execution trace and dynamic slicing is proved effective.

Key words: execution trace, dynamic slicing, suspicious degrees

中图分类号: 

  • TP311