首页 | 本学科首页   官方微博 | 高级检索  
     

基于测试充分性准则的非死锁并发缺陷定位方法
引用本文:陈诚,郑征,王皓钦,乔禹.基于测试充分性准则的非死锁并发缺陷定位方法[J].计算机科学,2017,44(11):195-201.
作者姓名:陈诚  郑征  王皓钦  乔禹
作者单位:北京航空航天大学自动化科学与电气工程学院 北京100191,北京航空航天大学自动化科学与电气工程学院 北京100191,北京航空航天大学自动化科学与电气工程学院 北京100191,北京航空航天大学自动化科学与电气工程学院 北京100191
摘    要:并发程序的非确定性使得其调试工作异常困难。基于程序谱的软件缺陷定位方法虽然能够缓解该情况,但其定位结果依赖于调试信息。针对在此过程中难以获得调试信息及如何选择利用调试信息的问题,提出了一种基于测试充分性准则的缺陷定位方法,该方法包括3个部分:预测满足测试充分性准则的条件;制定相应的测试方案;将收集到的调试信息用于缺陷定位分析。依据此方法,用C#语言实现了缺陷定位工具——ConFinder。在含有实际并发缺陷的程序上进行实验,结果表明该方法可以有效找出引起程序失效的原因并且所得结果具有很好的稳定性。

关 键 词:并发程序  软件测试  软件缺陷定位
收稿时间:2016/10/10 0:00:00
修稿时间:2016/12/4 0:00:00

Non-deadlock Concurrency Fault Localization Approach Based on Adequate Test Criteria
CHEN Cheng,ZHENG Zheng,WANG Hao-qin and QIAO Yu.Non-deadlock Concurrency Fault Localization Approach Based on Adequate Test Criteria[J].Computer Science,2017,44(11):195-201.
Authors:CHEN Cheng  ZHENG Zheng  WANG Hao-qin and QIAO Yu
Affiliation:School of Automation Science and Electrical Engineering,Beihang University,Beijing 100191,China,School of Automation Science and Electrical Engineering,Beihang University,Beijing 100191,China,School of Automation Science and Electrical Engineering,Beihang University,Beijing 100191,China and School of Automation Science and Electrical Engineering,Beihang University,Beijing 100191,China
Abstract:Concurrency programs are difficult to debug due to their congenital nondeterminism.Fault localization approaches may alleviate such situation.However,their performance heavily depends on the debug information.To allevia-te this problem,we proposed a non-deadlock concurrency fault localization approach based on adequate test criteria.Our approach consists of three parts:a prediction of the conditions meeting an adequate test criteria,a scheme of a test plan satisfied with the criteria,and a fault localization analysis using the debug information.Besides,a prototype called ConFinder based on this approach was implemented in C#.Moreover,experiments on programs containing real concurrency bugs were carried out.The result shows that our approach can localize non-deadlock concurrency bugs effectively and has stable performance.
Keywords:Concurrency program  Software testing  Software fault localization
点击此处可从《计算机科学》浏览原始摘要信息
点击此处可从《计算机科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号