电子学报 ›› 2016, Vol. 44 ›› Issue (12): 3026-3031.DOI: 10.3969/j.issn.0372-2112.2016.12.030

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

面向有效错误定位的偶然正确性识别方法

曹鹤玲1,2,3, 姜淑娟1, 王兴亚1, 薛猛1, 钱俊彦3   

  1. 1. 中国矿业大学计算机科学与技术学院, 江苏徐州 221116;
    2. 河南工业大学信息科学与工程学院, 河南郑州 450001;
    3. 桂林电子科技大学广西可信软件重点实验室, 广西桂林 541004
  • 收稿日期:2015-03-19 修回日期:2015-08-19 出版日期:2016-12-25
    • 通讯作者:
    • 姜淑娟
    • 作者简介:
    • 曹鹤玲,女,1980年5月出生于河南南阳.中国矿业大学博士生,CCF会员.主要研究领域为软件分析与测试、数据挖掘.E-mail:caohl410@cumt.edu.cn
    • 基金资助:
    • 国家自然科学基金 (No.61202006,No.61340037,No.61502497,No.61562015,No.61602154); 广西可信软件重点实验室研究课题资助 (No.kx201616,No.kx201532); 河南省高等学校重点科研项目计划资助 (No.16A520005)

Identifying Coincidental Correctness for Effective Fault Localization

CAO He-ling1,2,3, JIANG Shu-juan1, WANG Xing-ya1, XUE Meng1, QIAN Jun-yan3   

  1. 1. School of Computer Science and Technology, China University of Mining and Technology, Xuzhou, Jiangshu 221116, China;
    2. College of Information Science and Engineering, Henan University of Technology, Zhengzhou, Henan 450001, China;
    3. Guangxi Key Laboratory of Trusted Software, Guilin University of Electronic Technology, Guilin, Guangxi 541004, China
  • Received:2015-03-19 Revised:2015-08-19 Online:2016-12-25 Published:2016-12-25
    • Supported by:
    • National Natural Science Foundation of China (No.61202006, No.61340037, No.61502497, No.61562015, No.61602154); Research Project of Guangxi Key Laboratory of Trusted Software (No.kx201616, No.kx201532); Key Scientific Research Programs of colleges and universities of Henan Province (No.16A520005)

摘要:

错误定位是软件调试中耗时费力的活动之一.针对偶然正确性影响错误定位效率的问题,提出面向错误定位的偶然正确性识别方法.该方法首先识别偶然正确性元素;然后,挑选“偶然正确性特征元素”,使用该特征元素约简程序执行轨迹;在此基础上,建立基于模糊c均值聚类的偶然正确性识别模型,将其结果应用于错误定位.为验证该方法的有效性,基于3组测试程序开展偶然正确性识别,并将其结果应用于Tarantula等4种错误定位方法.实验结果表明,与基于k-means聚类的偶然正确性识别方法相比,该方法在偶然正确性识别方面具有较低的误报率和漏报率,并且更能提高错误定位的效率.

关键词: 软件调试, 错误定位, 偶然正确性, 聚类分析

Abstract:

Fault localization is one of the most time-consuming activities in software debugging.An identifying coincidental correctness approach for effective fault localization is proposed to decrease the effect of coincidental correctness on the effectiveness of fault localization.First,the elements of coincidental correctness are computed.Second,the higher suspicious coincidental correctness elements are selected as feature elements of coincidental correctness,and then program execution traces are reduced in terms of feature elements.Finally,fuzzy c-means based coincidental correctness identification model is created based on the reduced execution traces to locate faults.It was applied to analyze three groups of programs,and test cases removing coincidental correctness were used as input for four popular fault localization approaches,such as Tarantula.The experimental results show that our approach had low false positives and false negatives,and performed well in terms of the effectiveness.

Key words: software debugging, fault localization, coincidental correctness, clustering

中图分类号: