Method for debugging a hang condition in a process without affecting the process state
Abstract
Embodiments of the invention are associated with an application process that comprises multiple threads, wherein threads of the process are disposes to run on a data processing system, and each thread can have a user mode or a kernel mode machine state, or both, selectively, when it is running. An embodiment directed to a method comprises the steps of allocating a specified memory location for each of the threads, and responsive to a given thread entering a sleep state, selectively saving the kernel mode machine state of the given thread in the specified memory location for the given thread. The saved machine state comprises the state of the given thread immediately prior to the given thread entering the sleep state. In response to detecting a hang condition in the operation of the process, a debugger is attached to the process to access at least one of the saved user mode machine states. The method further includes analyzing information provided by the at least one accessed machine state to determine the cause of the hang condition, and restoring the original state upon detachment, so the debugger attachment is completely transparent to the target process.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 23 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In association with an application process that comprises multiple threads, wherein threads of the process are disposed to run on a data processing system, and each thread can have a user mode machine state or a kernel mode machine state, or both, selectively, when the thread is running, a method comprising the steps of: allocating a specified memory location for each of said threads; responsive to a given thread entering a kernel mode machine state, selectively saving the user mode machine state of the given thread, wherein said saved user mode machine state comprises the state of the given t
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (23)
Non-Patent Literature (2)
- Detlefs et al., "Simplify: A Theorem Prover for Program Checking", Journal of the ACM, vol. 52, No 3, May 2005, pp. 365-473.
- Yang et al., "Clairvoyant: A Comprehensive Source-Level Debugger for Wireless Sensor Networks", 2007, ACM, SenSys'07 Nov. 2007 Sydney Australia, pp. 189-203.