Detecting resource deadlocks in multi-threaded programs by controlling scheduling in replay
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)
- 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 ↗
Cited By — Indexed Forward Citations (10 of 10 total)
References Cited — Backward Prior Art (47)
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.