通信学报 ›› 2015, Vol. 36 ›› Issue (4): 138-145.doi: 10.11959/j.issn.1000-436x.2015095

• 学术论文 • 上一篇    下一篇

基于参数−值替换的错误定位方法

王兴亚1,姜淑娟1,鞠小林1,2,曹鹤玲1   

  1. 1 中国矿业大学 计算机科学与技术学院,江苏 徐州 221116
    2 南通大学 计算机科学与技术学院,江苏 南通 226019
  • 出版日期:2015-04-25 发布日期:2015-04-15
  • 基金资助:
    国家自然科学基金资助项目;国家自然科学基金资助项目;江苏省333工程基金资助项目;江苏省高校自然科学研究基金资助项目;江苏省研究生培养创新工程基金资助项目;江苏省研究生培养创新工程基金资助项目;南通市应用研究计划基金资助项目;南通市应用研究计划基金资助项目

Effective fault localization technique using parameter-value replacement

Xing-ya WANG1,Shu-juan JIANG1,Xiao-lin JU1,2,He-ling CAO1   

  1. 1 School of Computer Science and Technology,China University of Mining and Technology,Xuzhou 221116,China
    2 School of Computer Science and Technology,Nantong University,Nantong 226019,China
  • Online:2015-04-25 Published:2015-04-15
  • Supported by:
    The National Natural Science Foundation;The National Natural Science Foundation;The 333 Project of Jiangsu Province;The University Natural Science Research Project of Jiangsu Province;The Nantong Application Research Plan

摘要:

现有错误定位方法难以检测程序遗漏错误,提出一种方法层次的基于参数?值替换的错误定位方法。首先将出现在失败执行中的方法作为可疑方法候选集,计算该集合中元素对程序执行结果的影响度,再利用值替换技术计算高影响度方法的兴趣参数?值映射对,然后依据方法是否包含兴趣参数?值映射对对候选集中方法进行分类,并依据其影响度分别进行排序,最后生成一个可疑方法序列进行错误定位。实验结果表明该方法较其他错误定位方法具有更好的定位效果。

关键词: 错误定位, 遗漏错误, 值替换, 兴趣参数?值映射对

Abstract:

Statistic-based fault localization and slice-based fault localization cannot locate the omission faults effectively.A method-level fault localization approach based on parameter-value replacement was proposed.Those methods appearing in failed executions were treated as the fault methods candidate set (FMCS).For each element contained in FMCS,its impact to the execution result was measured and then the FMCS elements based on the impact were classified.For each method with high impact,its interesting parameter value mapping pair (IPVMP) was searched by using parameter-value replacement.According to the impact and IPVMP,a method list of FMCS elements was finally provided to debuggers.Empirical results show that the proposed approach performs better than other fault localization approaches.

Key words: fault localization, omission error, value replacement, interesting parameter-value mapping pair

No Suggested Reading articles found!