System and method for providing a watchdog timer to enable collection of crash data
First Claim
Patent Images
1. A system comprising:
- a memory storing an application and a crash data structure;
a computer processor executing the application having a source thread and a watchdog thread, wherein the source thread initiates a predefined operation having an operating system timeout period, and wherein the watchdog thread enables the computer processor to;
determine, prior to completion of the predefined operation and prior to expiration of the operating system timeout period, that a predefined watchdog timeout period is expired, wherein the watchdog timeout period is less than the operation system timeout period;
invoke a crash function to collect state information relating to the application in response to determining that the predefined watchdog timeout period is expired; and
store the state information in a crash data structure.
3 Assignments
0 Petitions
Accused Products
Abstract
A system and method for providing a watchdog timer to enable collection of crash data is provided. Upon execution of certain operations, a source thread of an application initiates a watchdog thread that periodically sample state of data relating to the application. Should the operation not complete within a watchdog timeout period, the watchdog thread invokes a crash function to collect additional state data. At least a portion of the state data is stored for later analysis and debugging.
-
Citations
20 Claims
-
1. A system comprising:
-
a memory storing an application and a crash data structure; a computer processor executing the application having a source thread and a watchdog thread, wherein the source thread initiates a predefined operation having an operating system timeout period, and wherein the watchdog thread enables the computer processor to; determine, prior to completion of the predefined operation and prior to expiration of the operating system timeout period, that a predefined watchdog timeout period is expired, wherein the watchdog timeout period is less than the operation system timeout period; invoke a crash function to collect state information relating to the application in response to determining that the predefined watchdog timeout period is expired; and store the state information in a crash data structure. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method comprising:
-
initiating a source thread and a watchdog thread of an application; initiating a predefined operation of the application by the source thread, the predefined operation having an operating system timeout period; determining, by the watchdog thread executing on a computer processor, that a predefined watchdog timeout period is expired prior to expiration of the operating system timeout period, wherein the predefined watchdog timeout period is less than the operation system timeout period; invoking, by the watchdog thread executing on the computer processor, a crash function to collect state information relating to the application in response to the predefined operation not completing within the predefined watchdog timeout period; and storing the state information in a crash data structure. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A system comprising:
-
a computer processor; a source thread of an application configured to initiate a predefined operation having an operating system timeout period; a watchdog thread of the application and configured to execute on the computer processor to enable the computer processor to; periodically sample state information relating to the application; store at least a portion of the sampled state information; and an operating system configured to execute on the computer processor to enable the computer processor to terminate the application upon expiration of the operating system timeout period. - View Dependent Claims (18, 19, 20)
-
Specification