IP Library Granted Patent US 11,675,651
Granted Patent B2
US 11,675,651 · App. 17/198,450 · Granted Jun 13, 2023

Critical problem exception handling

Inventors: Naijie Li (Beijing, CN); Bao Zhang (Beijing, CN); Jin Hong Fu (Beijing, CN); Jing Lu (Beijing, CN); Xiang Zu (Beijing, CN)
Assignee: International Business Machines Corporation
G06F11/0793G06F9/30065G06F9/3861G06F9/5016G06F11/0772
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,675,651
App. No.
17/198,450
Granted
Jun 13, 2023
Kind
B2
Abstract

Methods, apparatus, computer program products for handling critical problem exceptions during an execution of an application are provided. The method comprises: detecting, by one or more processing units, an occurrence of a certain type of critical problem exception during an execution of an application, the critical problem exception resulting in a termination of the application; instructing, by one or more processing units, to call a Super Handling Routine (SHR) corresponding to the type of the critical problem exception at a pre-configured address based on a pre-determined context registered by the application, the SHR being configured to handle critical problem exceptions; and handing, by one or more processing units, control to the SHR to handle the type of the critical problem exception.

Claims (59)

1. A computer-implemented method, comprising:

detecting, by one or more processing units, an occurrence of a certain type of critical problem exception during an execution of an application, the critical problem exception resulting in a termination of the application;

instructing, by one or more processing units, to call a Super Handling Routine (SHR) corresponding to the type of the critical problem exception at a pre-configured address based on a pre-determined context registered by the application, the SHR being configured to handle critical problem exceptions;

handling, by one or more processing units, control to the SHR to handle the type of the critical problem exception;

receiving, by one or more processing units, a result of handling the critical problem exception from the SHR, wherein the result indicates at least one action;

executing, by one or more processing units, the at least one action,

wherein the at least one action indicates a request for additional memory, and the execution of the at least one action comprising:

allocating, by one or more processing units, additional memory to the application from available memory; and

notifying, by one or more processing units, a failure of the SHR critical problem exception handling by issuing an alert.

2. The computer-implemented method of claim 1 , further comprising:

transferring, by one or more processing units, a context of the critical problem exception to the SHR.

3. The computer-implemented method of claim 1 , wherein the at least one action indicates a termination of an invoked application, and the execution of the at least one action comprising:

issuing, by one or more processing units, an instruction to drive the termination of the invoked application.

4. The computer-implemented method of claim 1 , wherein the at least one action indicates a return to a specific caller, and the execution of the at least one action comprising:

restoring, by one or more processing units, a context of the specific caller;

retrieving, by one or more processing units, an address of the specific caller; and

returning, by one or more processing units, the application to the address of the specific caller with a predefined value.

5. The computer-implemented method of claim 1 , wherein the critical problem exception being one of the following:

a new exception occurs during handling a previous exception;

an infinite exception loop caused by interactions between two applications during handling a previous exception; or

an out of memory exception occurs during handling a previous exception.

6. A computer-implemented apparatus, comprising:

a critical problem checker, configured to detect an occurrence of a certain type of critical problem exception during an execution of an application, the critical problem exception resulting in a termination of the application;

an exception super handling controller, responsive to the occurrence of the critical problem exception, configured to instruct to call a Super Handling Routine (SHR) corresponding to the type of the critical problem exception at a pre-configured address based on a pre-determined context registered by the application;

handling control to the SHR to handle the type of the critical problem exception, wherein the SHR is configured to handle critical problem exceptions;

receiving a result of handling the critical problem exception from the SHR, wherein the result indicates at least one action;

executing, by one or more processing units, the at least one action,

wherein the at least one action indicates a request for additional memory, and the execution of the at least one action comprising:

allocating, by one or more processing units, additional memory to the application from available memory; and

notifying, by one or more processing units, a failure of the SHR critical problem exception handling by issuing an alert.

7. The computer-implemented apparatus of claim 6 , wherein the exception super handling controller is further configured to:

transfer a context of the critical problem exception to the SHR.

8. The computer-implemented apparatus of claim 6 , wherein the at least one action indicates a termination of an invoked application, and the exception super handling controller is further configured to:

issue an instruction to drive the termination of the invoked application.

9. The computer-implemented apparatus of claim 6 , wherein the at least one action indicates a return to a specific caller, and the exception super handling controller is further configured to:

restore a context of the specific caller;

retrieve an address of the specific caller; and

return the application to the address of the specific caller with a predefined value.

10. The computer-implemented apparatus of claim 6 , wherein the critical problem exception being one of the following:

a new exception occurs during handling a previous exception;

an infinite exception loop caused by interactions between two applications during handling a previous exception; or

an out of memory exception occurs during handling a previous exception.

11. A computer program product, comprising a non-transitory computer readable storage having program codes embodied therewith, the program codes comprising:

program codes to detect an occurrence of a certain type of critical problem exception during an execution of an application, the critical problem exception resulting in a termination of the application;

program codes to responsive to the occurrence of the critical problem exception, instruct to call a Super Handling Routine (SHR) corresponding to the type of the critical problem exception at a pre-configured address based on a pre-determined context registered by the application, the SHR being configured to handle critical problem exceptions;

program codes to handling control to the SHR to handle the type of the critical problem exception;

program codes to receiving a result of handling the critical problem exception from the SHR, wherein the result indicates at least one action;

program codes to executing the at least one action,

wherein the at least one action indicates a request for additional memory, and the execution of the at least one action comprising:

program codes to allocating additional memory to the application from available memory; and

program codes to notifying a failure of the SHR critical problem exception handling by issuing an alert.

12. The computer program product of claim 11 , wherein the program codes further comprising:

program codes to transfer a context of the critical problem exception to the SHR.

13. The computer program product of claim 11 , wherein the at least one action indicates a termination of an invoked application, and the program codes further comprising:

program codes to issue an instruction to drive the termination of the invoked application.

14. The computer program product of claim 11 , wherein the at least one action indicates a return to a specific caller, and the program codes further comprising:

program codes to restore a context of the specific caller;

program codes to retrieve an address of the specific caller; and

program codes to return the application to the address of the specific caller with a predefined value.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 16, 2021
From: LI, NAIJIE; ZHANG, BAO; FU, JIN HONG; LU, JING; ZU, XIANG
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 055610/0241 →
Continuity (1)
Related Publication 20220291988A1 · Sep 15, 2022
Cited By (4)
US 12,306,996 US 12,417,294 US 12,499,263 US 12,541,617