Patents
US 9,052,967 B2#10849897 Most CitedActiveUnited States (USPTO)Utility

Detecting resource deadlocks in multi-threaded programs by controlling scheduling in replay

10Forward Citations (#10849897 Global)
0.9/yrCitation Velocity (#7896448 Global)
1.52Citation PageRank (#22515597 Global)
47Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A method and system for determining potential deadlock conditions in a target multi-threaded software application. The target application is first run in a virtual machine and the events within the application are recorded. The recorded events are replayed and analyzed to identify potential lock acquisition conflicts occurring between threads of the application. The potential lock acquisition conflicts are identified by analyzing the order in which resource locks are obtained and pairs of resources that have respective locks obtained in different orders are analyzed. These analyzed pairs are used to define a different order of events in the target application that, when the target application is re-run with the second order of events, may trigger a deadlock condition. The target application is then re-run with the different order of events in an attempt to trigger and then identify potential deadlock situations.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 47 · Forward citations: 10.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method of identifying potential deadlock conditions in a target multithreaded software application running within a virtual machine in a virtualized computer system, the method comprising: recording an execution of the software application in the virtual machine, wherein the software application includes a code block that is skipped during the recording; identifying all thread creation and thread termination events that occur in the executed software application and a first order in which the identified events occur during the execution of the software application; identifying all resource l

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (47)

PatentTitleYearCitations
US 4,189,771 AMethod and means for the detection of deadlock among waiting tasks in a multiprocessing, multiprogramming CPU environment198044
US 5,263,155 ASystem for selectively registering and blocking requests initiated by optimistic and pessimistic transactions respectively for shared objects based upon associated locks1993162
US 5,440,743 ADeadlock detecting system1995102
US 5,440,726 AProgressive retry method and apparatus having reusable software modules for software failure recovery in multi-process message-passing applications1995194
US 5,459,871 ADetection and resolution of resource deadlocks in a distributed data processing system1995155
US 5,530,802 AInput sequence reordering method for software failure recovery1996104
US 5,590,277 AProgressive retry method and apparatus for software failure recovery in multi-process message-passing applications1996180
US 5,664,088 AMethod for deadlock recovery using consistent global checkpoints199745
US 5,682,537 AObject lock management system with improved local lock management and global deadlock detection in a parallel data processing system1997218
US 5,835,766 ASystem for detecting global deadlocks using wait-for graphs and identifiers of transactions related to the deadlocks in a distributed transaction processing system and a method of use therefore1998123
US 5,845,117 ADeadlock detecting device199873
US 5,905,855 AMethod and apparatus for correcting errors in computer systems1999101
US 6,101,524 ADeterministic replay of multithreaded applications2000202
US 6,343,371 B1System and method for statically detecting potential race conditions in multi-threaded computer programs200292
US 6,593,940 B1Method for finding errors in multithreaded applications2003121
US 6,615,373 B2Method, system and program products for resolving potential deadlocks200334
US 2004002974 A1Thread based lock manager—86
US 6,704,841 B2Method and apparatus for facilitating speculative stores in a multiprocessor system200431
US 6,832,367 B1Method and system for recording and replaying the execution of distributed java programs2004164
US 6,854,108 B1Method and apparatus for deterministic replay of java multithreaded programs on multiprocessors2005136

Non-Patent Literature (5)

  • Agarwal, Rahul et al., Run-Time Detection of Potential Deadlocks for Programs with Locks, Semaphores and Condition Variables, ACM, PADTAD-IV,Jul. 17, 2006.
  • Alpern, Bowen et al., DejaVu: Deterministic Java Replay Debuger for Jalapeno Java Virtual Machine ACM, OOPSLA, 2000.
  • Bensalem, Saddek et al., Confirmation of Deadlock Potentials Detected by Runtime Analysis ACM, PADTAD-IV, Jul. 17-20, 2006.
  • Bensalem, Saddek et al., Scalable Dynamic Deadlock Analysis of Multi-Threaded Programs Parallel and Distributed Systems: Testing and Debugging, PADTAD-3, 2005.
  • Bruening, Derek L., Systematic Testing of Multithreaded Java Programs Massachusetts Institute of Technology, May 21, 1999.