期刊文献+

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

Deadlock Detection of Multithreaded Programs Based on Lock-augmented Segmentation Graph
在线阅读 下载PDF
导出
摘要 死锁是并行程序常见的缺陷之一,动态死锁分析方法根据程序运行轨迹构建锁图、分段图等模型来检测死锁.然而,锁图及其现有的各种变型无法区分同一循环中锁授权语句的多次执行,扩展锁图中记录的锁集无法捕捉线程曾经持有而又随后释放的锁信息,分段图无法刻画锁的获取和释放操作与线程启动操作耦合而导致的段间依赖关系.上述问题导致了多种死锁的误报.为解决上述问题,对已有的锁图和分段图模型进行改进,在锁图基础上扩充语句的执行时序信息,在分段图的基础上扩充锁的获取和释放信息,对段进行更细粒度的划分以建模锁对象导致的段间依赖关系;最终,在上述锁增广分段图与时序增广锁图的基础上,提出一种新的死锁检测方法.所提方法能够有效消除前述各种误报,从而提高死锁检测的准确率.文中开发相应的原型系统,并结合多个程序实例对所提方法的有效性进行评估验证. 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.
作者 鲁法明 郑佳静 包云霞 曾庆田 段华 王晓宇 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)
出处 《软件学报》 EI CSCD 北大核心 2021年第6期1682-1700,共19页 Journal of Software
基金 国家自然科学基金(61602279,61472229) 国家重点研发计划(2016YFC0801406) 山东省泰山学者工程专项基金(ts20190936) 山东省高等学校青创科技支持计划(2019KJN024) 山东省自然科学基金智慧计算联合基金(ZL2019LZh001) 山东省博士后创新专项基金(201603056) 国家海洋局海洋遥测工程技术研究中心开放基金(2018002) 山东科技大学领军人才与优秀科研创新团队项目(2015TDJH102)。
关键词 程序验证 死锁检测 锁图 分段图 动态死锁分析 program verification deadlock detection lock graph segmentation graph dynamic deadlock analysis
  • 相关文献

参考文献5

二级参考文献131

  • 1熊德琰.关于生成有向图的全部有向回路的回路向量空间法[J].电子科学学刊,1989,11(1):21-27. 被引量:2
  • 2袁亚华,1991年
  • 3袁来华,西北工业大学学报,1989年,7卷,4期,475页
  • 4熊德琰,电子学报,1986年,14卷,6期,42页
  • 5居悌,有源网络计算机辅助设计,1986年
  • 6Chen W K,1983年
  • 7匿名著者,图论及其应用,1981年
  • 8Gochman S, Mendelson A, Naveh A, et al. Introduction to lntel core duo processor architecture. Intel Technology Journal, 2006, 10(2): 89-97.
  • 9Sutter H. The free lunch is over: A fundamental turn toward concurrency in software. Dr. Dobb's Journal, 2005, 30(3): 202-210.
  • 10Musuvathi M~ Qadeer S. Iterative context bounding for systematic testing of multithreaded programs. ACM SIGPLAN Notices, 2007, 42(6): 446-455.

共引文献91

同被引文献23

引证文献5

二级引证文献5

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部