# US 2008/0307267 A1 · Techniques for automatic software error diagnostics

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

- Number: US 2008/0307267 A1
- Document ID: US20080307267A1
- Status: Published application
- Kind: A1
- Application number: 12/116,158
- Filed: 2008-05-06
- Published: 2008-12-11
- Earliest claimed: 2004-09-24
- Assignees: Oracle International Corporation
- Inventors: Sashikanth Chandrasekaran
- Web page: https://patentgrep.com/patent/US20080307267A1

## CPC

- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are provided for automatically diagnosing errors in a software system. The software system automatically determines whether conditions associated with the software system warrant use of any diagnostic features that are not currently enabled. When the software system determines that the conditions associated with the software system warrant use of any diagnostic features that are not currently enabled, the software system determines which of a plurality of available diagnostic features should be enabled. The software system then enables the determined one or more diagnostics features.

## Claims

### Claim 1

A method for automatically diagnosing errors in a software system, the method comprising the computer-implemented steps of:
automatically determining, by the software system, whether conditions associated with the software system warrant use of any diagnostic features that are not currently enabled;
when the software system determines that the conditions associated with the software system warrant use of any diagnostic features that are not currently enabled, the software system determining which of a plurality of available diagnostic features should be enabled; and
enabling one or more diagnostics features that the software system determined should be enabled.

### Claim 2 (depends on 1)

The method of claim 1, wherein the step of automatically determining whether the conditions associated with the software system warrant use of any diagnostic features that are not currently enabled is carried out in response to detecting the occurrence of an error in the software system.

### Claim 3 (depends on 1)

The method of claim 1, wherein:
the method further comprises logging information about errors when they occur in the software system; and
the step of automatically determining whether the conditions associated with the software system warrant use of any diagnostic features that are not currently enabled includes inspecting the logged information about errors that have previously occurred.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
the method further comprises maintaining an index that has a key which is based on information about errors; and
the step of determining which of the plurality of available diagnostic features should be enabled includes performing a look-up in the index to locate one or more index entries that indicate which diagnostic features should be enabled in response to the occurrence of a particular error.

### Claim 5 (depends on 4)

The method of claim 4, wherein the key comprises a plurality of key-parts.

### Claim 6 (depends on 5)

The method of claim 5, wherein:
the look-up is based on a composite key value that includes a separate value for each of the plurality of key-parts; and
the step of performing the look-up includes:
initially establishing a set of search values to include the values associated with all of the key-parts of the composite key value;
(a) attempting to find a matching entry based on the set of search values;
(b) if a matching entry is found, then determining which diagnostic feature to enable based on the entry;
(c) if a matching entry is not found, then removing a value from the set of search values; and
repeating steps (a), (b) and (c) until one of a matching entry is found and there are no values left in the set of search values.

### Claim 7 (depends on 6)

The method of claim 6, wherein:
the key-parts of the key are ordered; and
the step of removing the value from the set of search values is performed by removing the value associated with the lowest ordered key-part that has not yet been removed from the set of search values.

### Claim 8 (depends on 7)

The method of claim 7, wherein the highest-ordered key-part corresponds to general components of the software system, and the lowest-ordered key-part corresponds to specific errors that can occur in the software system.

### Claim 9 (depends on 4)

The method of claim 4, wherein information contained within the index is dictated by information specified in source code that was compiled to create the executable code of the software system.

### Claim 10 (depends on 4)

The method of claim 4, wherein information contained within the index is stored in a repository external to the software system.

### Claim 11 (depends on 1)

The method of claim 1, wherein the software system is a database server.

### Claim 12 (depends on 1)

The method of claim 1, wherein the step of enabling the one or more diagnostic features includes enabling a diagnostic feature that automatically records diagnostic information.

### Claim 13 (depends on 1)

The method of claim 1, further comprising:
automatically determining, by the software system, whether any diagnostic features that are currently enabled should be disabled; and
automatically disabling one or more diagnostic features that the software system determined should be disabled.

### Claim 14

A computer-readable storage medium storing one or more sequences of instructions for automatically diagnosing errors in a software system, which instructions, when executed by one or more processors, cause the one or more processors to perform the steps of:
automatically determining, by the software system, whether conditions associated with the software system warrant use of any diagnostic features that are not currently enabled;
when the software system determines that the conditions associated with the software system warrant use of any diagnostic features that are not currently enabled, the software system determining which of a plurality of available diagnostic features should be enabled; and
enabling one or more diagnostics features that the software system determined should be enabled.

### Claim 15 (depends on 14)

The computer-readable storage medium of claim 14, wherein:
the one or more sequences of instructions further comprise instructions which, when executed by the one or more processors, cause the one or more processors to perform the step of detecting the occurrence of an error in the software system; and
the instructions that cause the one or more processors to perform the step of automatically determining whether the conditions associated with the software system warrant use of any diagnostic features that are not currently enabled are carried out in response to the instructions that have caused the one or more processors to perform the step of detecting the occurrence of the error in the software system.

### Claim 16 (depends on 14)

The computer-readable storage medium of claim 14, wherein:
the one or more sequences of instructions further comprise instructions which, when executed by the one or more processors, cause the one or more processors to perform the step of logging information about errors when they occur in the software system; and
the instructions that cause the one or more processors to perform the step of automatically determining whether the conditions associated with the software system warrant use of any diagnostic features that are not currently enabled include instructions which, when executed by the one or more processors, cause the one or more processors to perform the step of inspecting the logged information about errors that have previously occurred.

### Claim 17 (depends on 14)

The computer-readable storage medium of claim 14, wherein:
the one or more sequences of instructions further comprise instructions which, when executed by the one or more processors, cause the one or more processors to perform the step of maintaining an index that has a key which is based on information about errors; and
the instructions that cause the one or more processors to perform the step of determining which of the plurality of available diagnostic features should be enabled include instructions which, when executed by the one or more processors, cause performing a look-up in the index to locate one or more index entries that indicate which diagnostic features should be enabled in response to the occurrence of a particular error.

### Claim 18 (depends on 17)

The computer-readable storage medium of claim 17, wherein the key comprises a plurality of key-parts.

### Claim 19 (depends on 18)

The computer-readable storage medium of claim 18, wherein:
the look-up is based on a composite key value that includes a separate value for each of the plurality of key-parts; and
the instructions that cause performing the look-up include instructions which, when executed by the one or more processors, cause the one or more processors to perform the steps of:
initially establishing a set of search values to include the values associated with all of the key-parts of the composite key value;
(a) attempting to find a matching entry based on the set of search values;
(b) if a matching entry is found, then determining which diagnostic feature to enable based on the entry;
(c) if a matching entry is not found, then removing a value from the set of search values; and
repeating steps (a), (b) and (c) until one of a matching entry is found and there are no values left in the set of search values.

### Claim 20 (depends on 19)

The computer-readable storage medium of claim 19, wherein:
the key-parts of the key are ordered; and
the instructions that cause the one or more processors to perform the step of removing the value from the set of search values is performed by removing the value associated with the lowest ordered key-part that has not yet been removed from the set of search values.

### Claim 21 (depends on 20)

The computer-readable storage medium of claim 20, wherein the highest-ordered key-part corresponds to general components of the software system, and the lowest-ordered key-part corresponds to specific errors that can occur in the software system.

### Claim 22 (depends on 17)

The computer-readable storage medium of claim 17, wherein information contained within the index is dictated by information specified in source code that was compiled to create the executable code of the software system.

### Claim 23 (depends on 17)

The computer-readable storage medium of claim 17, wherein information contained within the index is stored in a repository external to the software system.

### Claim 24 (depends on 14)

The computer-readable storage medium of claim 14, wherein the software system is a database server.

### Claim 25 (depends on 14)

The computer-readable storage medium of claim 14, wherein the instructions that cause the one or more processors to perform the step of enabling the one or more diagnostic features include instructions which, when executed by the one or more processors, cause the one or more processors to perform the step of enabling a diagnostic feature that automatically records diagnostic information.

### Claim 26 (depends on 14)

The computer-readable storage medium of claim 14, wherein the one or more sequences of instructions further comprise instructions which, when executed by the one or more processors, cause the one or more processors to perform the steps of:
automatically determining, by the software system, whether any diagnostic features that are currently enabled should be disabled; and
automatically disabling one or more diagnostic features that the software system determined should be disabled.
