Patents
US 7,996,722 B2#22375849 Most CitedActiveUnited States (USPTO)Utility

Method for debugging a hang condition in a process without affecting the process state

5Forward Citations (#22375849 Global)
0.3/yrCitation Velocity (#23326437 Global)
1.15Citation PageRank (#34214086 Global)
23Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

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)

  1. 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 ↗

References Cited — Backward Prior Art (23)

PatentTitleYearCitations
US 5,715,386 AApparatus and methods for software rejuvenation1998132
US 5,748,882 AApparatus and method for fault-tolerant computing1998226
US 5,889,988 ADebugger for debugging tasks in an operating system virtual device driver1999114
US 6,044,475 ACheckpoint and restoration systems for execution control2000138
US 6,249,755 B1Apparatus and method for event correlation and problem reporting2001331
US 6,418,542 B1Critical signal thread200263
US 2003046464 A1Mechanism for interrupt handling in computer systems that support concurrent execution of multiple threads—64
US 2004054861 A1Method and tool for determining ownership of a multiple owner lock in multithreading environments—37
US 6,745,321 B1Method and apparatus for harvesting problematic code sections aggravating hardware design flaws in a microprocessor200437
US 2004221271 A1Initiating and debugging a process in a high assurance execution environment—24
US 2005120273 A1Automatic root cause analysis and diagnostics engine—174
US 2005132376 A1Method and apparatus for processing an event occurrence within a multithreaded processor—31
US 2006200702 A1Method and system for recovering data from a hung application—47
US 2007061791 A1Method, apparatus and computer program product enabling full pre-emptive scheduling of green threads on a virtual machine—17
US 7,222,268 B2System resource availability manager200734
US 7,391,312 B2Method and system for an incidental feedback platform200813
US 2008183930 A1Profiling collector for computer system—4
US 2008295077 A1Method and system for remotely debugging a hung or crashed computing system—29
US 2008307267 A1Techniques for automatic software error diagnostics—57
US 7,516,361 B2Method for automatic checkpoint of system and application software200924
US 2009164976 A1Multi-threaded debugger support—24
US 2010049955 A1Debug instruction for use in a multi-threaded data processing system—6
US 7,793,153 B2Checkpointing and restoring user space data structures used by an application20107

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.