首页 | 官方网站   微博 | 高级检索  
     

GC-MCR:有向图约束指导的并发缺陷检测方法
引用本文:李硕川,王赞,马明旭,陈翔,赵英全,王海弛,王昊宇.GC-MCR:有向图约束指导的并发缺陷检测方法[J].软件学报,2023,34(8):3485-3506.
作者姓名:李硕川  王赞  马明旭  陈翔  赵英全  王海弛  王昊宇
作者单位:天津大学 智能与计算学部, 天津 300350;南通大学 信息科学技术学院, 江苏 南通 226019
基金项目:国家自然科学基金(61872263);天津市智能制造专项资金项目(20201180)
摘    要:约束求解应用到程序分析的多个领域,在并发程序分析方面也得到了深入的应用.并发程序随着多核处理器的快速发展而得到广泛使用,然而并发缺陷对并发程序的安全性和可靠性造成了严重的影响,因此,针对并发缺陷的检测尤为重要.并发程序线程运行的不确定性导致的线程交织爆炸问题,给并发缺陷的检测带来了一定挑战.已有并发缺陷检测算法通过约减无效线程交织,以降低在并发程序状态空间内的探索开销.比如,最大因果模型算法把并发程序状态空间的探索问题转换成约束求解问题.然而,其在约束构建过程中会产生大量冗余和冲突的约束,大幅度增加了约束求解的时间以及约束求解器的调用次数,降低了并发程序状态空间的探索效率.针对上述问题,提出了一种有向图约束指导的并发缺陷检测方法 GC-MCR (directed graph constraint-guided maximal causalityreduction).该方法旨在通过使用有向图对约束进行过滤和约减,从而提高约束求解速度,并进一步提高并发程序状态空间的探索效率.实验结果表明:GC-MCR方法构建的有向图可以有效优化约束的表达式,从而提高约束求解器的求解速度并减少求解器的调用次...

关 键 词:并发程序  最大因果约减  约束求解  有向图  冲突约束过滤
收稿时间:2022/9/4 0:00:00
修稿时间:2022/10/13 0:00:00

GC-MCR: Directed Graph Constraint-guided Concurrent Bug Detection Method
LI Shuo-Chuan,WANG Zan,MA Ming-Xu,CHEN Xiang,ZHAO Ying-Quan,WANG Hai-Chi,WANG Hao-Yu.GC-MCR: Directed Graph Constraint-guided Concurrent Bug Detection Method[J].Journal of Software,2023,34(8):3485-3506.
Authors:LI Shuo-Chuan  WANG Zan  MA Ming-Xu  CHEN Xiang  ZHAO Ying-Quan  WANG Hai-Chi  WANG Hao-Yu
Affiliation:College of Intelligence and Computing, Tianjin University, Tianjin 300350, China;School of Computer Science and Technology, Nantong University, Nantong 226019, China
Abstract:Constraint solving has been applied to many domains of program analysis, and deeply applied in concurrent program analysis. Concurrent programs are specific domain software that has been widely used with the rapid development of multi-core processors. However, concurrent defects threaten the security and robustness of concurrent programs, thus it is of great importance to test concurrent programs. Due to the non-deterministic thread scheduling, one of the key challenges for concurrent program testing is how to reduce the thread interleaving space with exponential growth. The state-of-the-art approaches (i.e., J-MCR) tackle the challenge through constraint solving. However, we found that there exist conflicts and redundancies inside constraints (i.e., the conflict of constraint clauses makes constraints unsatisfiable), solving those unsatisfiable constraints results in low efficiency. Thus, we propose a directed graph constraint-guided method called GC-MCR (Directed Graph Constraint-guided Maximal Causality Reduction). By removing conflictive constraints and simplify redundant constraints, we reduce the times of constraint solving thereby further improving the efficiency. Comparing with state-of-the-art approach J-MCR, GC-MCR reduces the times of constraint solving by 19.36% on average and reduces the testing time on average by 34.01% on 38 concurrent programs.
Keywords:concurrent program  maximum causality reduction  constraint solving  directed graph  conflict constraint filtering
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号