AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
PDF (2.2 MB)
Collect
Submit Manuscript AI Chat Paper
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Research Article | Open Access | Online First

Deadlock Detection and Replay of Multi-Thread Programs Based on Refined Segmentation and Lock Graphs

College of Computer Science and Engineering, Shandong University of Science and Technology, Qingdao 266590, China
College of Mathematics and System Science, Shandong University of Science and Technology, Qingdao 266590, China
Show Author Information

Abstract

Dynamic deadlock detection methods build segmentation graphs and lock graphs by extracting program behavior information from its running traces. However, existing segmentation graphs cannot model causal dependence caused by coupling of lock acquisition and thread fork operations. Lock sets in existing lock graphs cannot capture the information that a lock is held first and released soon. Both problems lead to false positives. In this work, segments in segmentation graphs are divided into fine-grained ones by identifying more causal dependence implied in a running trace. Segmentation graphs and lock graphs are extended with detailed lock acquisition and release information, based on which a deadlock detection method is proposed. To ensure authenticity of detected potential deadlocks, a deterministic scheduling scheme for deadlock replay is derived. In experiments, the proposed methods are implemented in CalFuzzer and its performance is better than PNULock and SegLock in terms of detection accuracy as well as time and memory overhead on eight Java multi-thread program examples.

References

【1】
【1】
 
 
Tsinghua Science and Technology

{{item.num}}

Comments on this article

Go to comment

< Back to all reports

Review Status: {{reviewData.commendedNum}} Commended , {{reviewData.revisionRequiredNum}} Revision Required , {{reviewData.notCommendedNum}} Not Commended Under Peer Review

Review Comment

Close
Close
Cite this article:
Lu F, Wang X, Yuan G, et al. Deadlock Detection and Replay of Multi-Thread Programs Based on Refined Segmentation and Lock Graphs. Tsinghua Science and Technology, 2026, https://doi.org/10.26599/TST.2025.9010085

510

Views

31

Downloads

0

Crossref

0

Web of Science

0

Scopus

0

CSCD

Received: 30 December 2024
Revised: 22 March 2025
Accepted: 18 April 2025
Published: 17 June 2026
© The author(s) 2026.

The articles published in this open access journal are distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/).