基于锁增广分段图的多线程程序死锁检测  被引量:3

Deadlock Detection of Multithreaded Programs Based on Lock-augmented Segmentation Graph

在线阅读下载全文

作  者:鲁法明 郑佳静 包云霞 曾庆田 段华 王晓宇 LU Fa-Ming;ZHENG Jia-Jing;BAO Yun-Xia;ZENG Qing-Tian;DUAN Hua;WANG Xiao-Yu(College of Computer Science and Engineering,Shandong University of Science and Technology,Qingdao 266590,China;College of Mathematics and Systems Science,Shandong University of Science and Technology,Qingdao 266590,China)

机构地区:[1]山东科技大学计算机科学与工程学院,山东青岛266590 [2]山东科技大学数学与系统科学学院,山东青岛266590

出  处:《软件学报》2021年第6期1682-1700,共19页Journal of Software

基  金:国家自然科学基金(61602279,61472229);国家重点研发计划(2016YFC0801406);山东省泰山学者工程专项基金(ts20190936);山东省高等学校青创科技支持计划(2019KJN024);山东省自然科学基金智慧计算联合基金(ZL2019LZh001);山东省博士后创新专项基金(201603056);国家海洋局海洋遥测工程技术研究中心开放基金(2018002);山东科技大学领军人才与优秀科研创新团队项目(2015TDJH102)。

摘  要:死锁是并行程序常见的缺陷之一,动态死锁分析方法根据程序运行轨迹构建锁图、分段图等模型来检测死锁.然而,锁图及其现有的各种变型无法区分同一循环中锁授权语句的多次执行,扩展锁图中记录的锁集无法捕捉线程曾经持有而又随后释放的锁信息,分段图无法刻画锁的获取和释放操作与线程启动操作耦合而导致的段间依赖关系.上述问题导致了多种死锁的误报.为解决上述问题,对已有的锁图和分段图模型进行改进,在锁图基础上扩充语句的执行时序信息,在分段图的基础上扩充锁的获取和释放信息,对段进行更细粒度的划分以建模锁对象导致的段间依赖关系;最终,在上述锁增广分段图与时序增广锁图的基础上,提出一种新的死锁检测方法.所提方法能够有效消除前述各种误报,从而提高死锁检测的准确率.文中开发相应的原型系统,并结合多个程序实例对所提方法的有效性进行评估验证.Deadlocks are a common defect of parallel programs.To detect deadlocks,dynamic deadlock analysis methods build models such as lock graphs and segment graphs according to program running traces.However,a lock graph and its existing variants cannot distinguish different executions of one lock acquisition statement in a loop structure.The lock set used in extended lock graphs cannot capture those locks which were once held and then released.A segmentation graph cannot model the inter-segment dependencies caused by the coupling of lock release/acquisition operation and thread start operation.The above problems have led to a variety of false positives.To address this issue,existing lock graph and segment graph models are improved.Specifically,a lock graph is extended with statement execution order information.A segmentation graph is expanded with lock acquisition and release information.Furthermore,segments in a segmentation graph are more finely divided in the improved model to capture the inter-segment dependencies caused by lock objects.Eventually,based on the improved models,a new deadlock detection method is proposed.It can eliminate the aforementioned false alarms effectively and improve deadlock detection accuracy.A corresponding prototype system is developed for experimental evaluation.The validity of the proposed method is verified through experiments.

关 键 词:程序验证 死锁检测 锁图 分段图 动态死锁分析 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象