# US 2016/0259678 A1 · Technology for stall detection

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0259678 A1
- Document ID: US20160259678A1
- Status: Published application
- Kind: A1
- Application number: 15/156,550
- Filed: 2016-05-17
- Published: 2016-09-08
- Earliest claimed: 2014-07-07
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: JEREMY R. GEDDES; HUGH E. HOCKETT; AARON J. QUIRK; KRISTIN R. WHETSTONE
- Web page: https://patentgrep.com/patent/US20160259678A1

## CPC

- G06F 11/079: {Root cause analysis, i.e. error or fault diagnosis (in a hardware test environment G06F11/22; in a software test environment G06F11/36)}
- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06F 11/0715: {in a system implementing multitasking (multitasking per se G06F9/46)}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/0757: {by exceeding a time limit, i.e. time-out, e.g. watchdogs}
- G06F 11/3017: {where the computing system is implementing multitasking (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- G06F 11/302: {where the computing system component is a software system}
- G06F 11/3495: {for systems}
- G06F 2209/481: Exception handling
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Detecting stalling of a software process in a computer system includes receiving identification of a work process thread group, including a work process thread, for a task. The task is marked as running responsive to detecting whether there is a state change for the work process thread and is marked as stalled responsive to detecting an absence of the state change for a first predefined amount of time. The work process is marked as stalled responsive to detecting an absence of a predetermined signal from the work process for a second predefined amount of time. An API gets stack traces for the work process thread via calls. Instances of a hash are calculated for each of the stack traces. Respective instances of the hash calculated at least the first amount of time apart are compared for detecting whether there is a state change for the work process thread.

## Claims

### Claim 1

A method for detecting stalling comprising:
receiving identification of a work process thread group for a task executing in a work process executing on a computer system, wherein the work process thread group includes a work process thread and the receiving includes receiving identification of the work process thread by a control process executing on the computer system;
detecting whether there is a state change for the work process thread;
marking the task as running responsive to detecting the state change for the work process thread;
marking the task as stalled responsive to detecting an absence of the state change for the work process thread for at least a first predefined amount of time;
marking the work process as stalled responsive to detecting an absence of a predetermined signal from the work process for at least a second predefined amount of time;
getting stack traces for the work process thread via calls of an application programming interface; and
calculating instances of a hash at respective times for each of the stack traces, and wherein the detecting of whether there is a state change for the work process thread comprises:
comparing respective instances of the hash calculated at least the first predetermined amount of time apart.

### Claim 2 (depends on 1)

The method of claim 1 wherein the work process thread is a predetermined work process thread of the work process thread group and the detecting whether there is a state change for the work process thread comprises:
detecting whether there is a state change for the predetermined work process thread of the work process thread group.

### Claim 3 (depends on 1)

The method of claim 1 wherein the work process thread is one of a plurality of work process threads of the work process thread group and the detecting whether there is a state change for the work process thread comprises:
detecting whether there is a state change for a predetermined set of the plurality of work process threads of the work process thread group.

### Claim 4 (depends on 1)

The method of claim 1 wherein the work process thread is one of a plurality of work process threads of the work process thread group and the detecting whether there is a state change for the work process thread comprises:
detecting whether there is a state change for all the plurality of work process threads of the work process thread group.

### Claim 5 (depends on 1)

The method of claim 1 wherein the work process thread is a predetermined one of a plurality of work process threads of the work process thread group and the detecting whether there is a state change for the work process thread is selected from the group consisting of:
detecting whether there is a state change for the predetermined work process thread of the work process thread group; and
detecting whether there is a state change for a predetermined set of the plurality of work process threads of the work process thread group.

### Claim 6 (depends on 1)

The method of claim 1 wherein the work process thread is a predetermined one of a plurality of work process threads of the work process thread group and the detecting whether there is a state change for the work process thread is selected from the group consisting of:
detecting whether there is a state change for the predetermined work process thread of the work process thread group; and
detecting whether there is a state change for all the plurality of work process threads of the work process thread group.

### Claim 7 (depends on 1)

The method of claim 1 wherein the work process thread is one of a plurality of work process threads of the work process thread group and the detecting whether there is a state change for the work process thread is selected from the group consisting of:
detecting whether there is a state change for a predetermined set of the plurality of work process threads of the work process thread group; and
detecting whether there is a state change for all the plurality of work process threads of the work process thread group.

### Claim 8

A system for detecting stalling, comprising:
a processor; and
computer readable storage media having instructions stored thereon for execution by the processor, wherein the instructions executed by the processor cause the processor to perform operations comprising:
receiving identification of a work process thread group for a task executing in a work process executing on a computer system, wherein the work process thread group includes a work process thread and the receiving includes receiving identification of the work process thread by a control process executing on the computer system;
detecting whether there is a state change for the work process thread;
marking the task as running responsive to detecting the state change for the work process thread;
marking the task as stalled responsive to detecting an absence of the state change for the work process thread for at least a first predefined amount of time;
marking the work process as stalled responsive to detecting an absence of a predetermined signal from the work process for at least a second predefined amount of time;
getting stack traces for the work process thread via calls of an application programming interface; and
calculating instances of a hash at respective times for each of the stack traces, and wherein the detecting of whether there is a state change for the work process thread comprises:
comparing respective instances of the hash calculated at least the first predetermined amount of time apart.

### Claim 9 (depends on 8)

The system of claim 8 wherein the work process thread is a predetermined work process thread of the work process thread group and the detecting whether there is a state change for the work process thread comprises:
detecting whether there is a state change for the predetermined work process thread of the work process thread group.

### Claim 10 (depends on 8)

The system of claim 8 wherein the work process thread is one of a plurality of work process threads of the work process thread group and the detecting whether there is a state change for the work process thread comprises:
detecting whether there is a state change for a predetermined set of the plurality of work process threads of the work process thread group.

### Claim 11 (depends on 8)

The system of claim 8 wherein the work process thread is one of a plurality of work process threads of the work process thread group and the detecting whether there is a state change for the work process thread comprises:
detecting whether there is a state change for all the plurality of work process threads of the work process thread group.

### Claim 12 (depends on 8)

The system of claim 8 wherein the work process thread is a predetermined one of a plurality of work process threads of the work process thread group and the detecting whether there is a state change for the work process thread is selected from the group consisting of:
detecting whether there is a state change for the predetermined work process thread of the work process thread group; and
detecting whether there is a state change for a predetermined set of the plurality of work process threads of the work process thread group.

### Claim 13 (depends on 8)

The system of claim 8 wherein the work process thread is a predetermined one of a plurality of work process threads of the work process thread group and the detecting whether there is a state change for the work process thread is selected from the group consisting of:
detecting whether there is a state change for the predetermined work process thread of the work process thread group; and
detecting whether there is a state change for all the plurality of work process threads of the work process thread group.

### Claim 14 (depends on 8)

The system of claim 8 wherein the work process thread is one of a plurality of work process threads of the work process thread group and the detecting whether there is a state change for the work process thread is selected from the group consisting of:
detecting whether there is a state change for a predetermined set of the plurality of work process threads of the work process thread group; and
detecting whether there is a state change for all the plurality of work process threads of the work process thread group.

### Claim 15

A computer program product for detecting stalling, including a computer readable storage medium having instructions stored thereon for execution by a computer, wherein the instructions, when executed by the computer, cause the computer to perform operations comprising:
receiving identification of a work process thread group for a task executing in a work process executing on a computer system, wherein the work process thread group includes a work process thread and the receiving includes receiving identification of the work process thread by a control process executing on the computer system;
detecting whether there is a state change for the work process thread;
marking the task as running responsive to detecting the state change for the work process thread;
marking the task as stalled responsive to detecting an absence of the state change for the work process thread for at least a first predefined amount of time;
marking the work process as stalled responsive to detecting an absence of a predetermined signal from the work process for at least a second predefined amount of time;
getting stack traces for the work process thread via calls of an application programming interface; and
calculating instances of a hash at respective times for each of the stack traces, and wherein the detecting of whether there is a state change for the work process thread comprises:
comparing respective instances of the hash calculated at least the first predetermined amount of time apart.

### Claim 16 (depends on 15)

The computer program product of claim 15 wherein the work process thread is a predetermined work process thread of the work process thread group and the detecting whether there is a state change for the work process thread comprises:
detecting whether there is a state change for the predetermined work process thread of the work process thread group.

### Claim 17 (depends on 15)

The computer program product of claim 15 wherein the work process thread is one of a plurality of work process threads of the work process thread group and the detecting whether there is a state change for the work process thread comprises:
detecting whether there is a state change for a predetermined set of the plurality of work process threads of the work process thread group.

### Claim 18 (depends on 15)

The computer program product of claim 15 wherein the work process thread is one of a plurality of work process threads of the work process thread group and the detecting whether there is a state change for the work process thread comprises:
detecting whether there is a state change for all the plurality of work process threads of the work process thread group.

### Claim 19 (depends on 15)

The computer program product of claim 15 wherein the work process thread is a predetermined one of a plurality of work process threads of the work process thread group and the detecting whether there is a state change for the work process thread is selected from the group consisting of:
detecting whether there is a state change for the predetermined work process thread of the work process thread group; and
detecting whether there is a state change for a predetermined set of the plurality of work process threads of the work process thread group.

### Claim 20 (depends on 15)

The computer program product of claim 15 wherein the work process thread is a predetermined one of a plurality of work process threads of the work process thread group and the detecting whether there is a state change for the work process thread is selected from the group consisting of:
detecting whether there is a state change for the predetermined work process thread of the work process thread group; and
detecting whether there is a state change for all the plurality of work process threads of the work process thread group.
