# US 12,182,009 B2 · Method, electronic device, and storage medium for locating fault information

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

- Number: US 12,182,009 B2
- Document ID: US12182009B2
- Status: Granted
- Kind: B2
- Application number: 17/992,720
- Filed: 2022-11-22
- Published: 2023-03-16
- Granted: 2024-12-31
- Earliest claimed: 2022-01-17
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science Technology Co., Ltd.
- Inventors: Yang Peng; Lei Feng; Zhenxing Cao; Weida Liao; Huanan Lu; Yuzhen Chen
- Web page: https://patentgrep.com/patent/US12182009B2

## CPC

- G06F 11/0775: {Content or structure details of the error report, e.g. specific table structure, specific error fields}
- G06F 11/3692: {for test results analysis}
- G06F 11/0787: {Storage of error reports, e.g. persistent data storage, storage using memory protection}
- G06F 11/366: {using diagnostics (G06F11/0703 takes precedence)}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- 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: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for locating a fault information is provided. The method includes: parsing error information of a target application to obtain version information and an error attribute of the target application; determining, based on the version information, a target mapping file corresponding to the error information; and determining a target location by utilizing the error attribute and the target mapping file, where the target location is used to determine a location of fault description content.

## Claims

### Claim 1

A method for locating fault information, the method comprising:
parsing error information of a target application to obtain version information of the target application and an error attribute of the target application;
determining, based on the version information, a target mapping file corresponding to the error information; and
determining a target location by utilizing the error attribute and the target mapping file, wherein the target location is used to determine a location of a fault description content;
wherein the error attribute comprises an error type and a reference error line number; and
wherein the determining the target location by utilizing the error attribute and the target mapping file comprises:
determining, in the target mapping file based on the error type, an index interval corresponding to the error information;
determining, in the index interval based on a preset search strategy, mapping information corresponding to the reference error line number, wherein the mapping information comprises a correspondence between the reference error line number and an actual error line number; and
determining the actual error line number of the fault description content by utilizing the reference error line number and the mapping information, and using the actual error line number as the target location.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the preset search strategy comprises a traversal search strategy or a binary search strategy.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the determining, based on the version information, the target mapping file corresponding to the error information comprises:
determining the target mapping file in a local memory or a remote memory, based on the version information.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the determining the target mapping file in the local memory or the remote memory comprises:
determining the local memory as having a first priority, and determining the target mapping file in the local memory.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the determining the target mapping file in the local memory or the remote memory further comprises:
in response to determining that the target mapping file does not exist in the local memory, determining the target mapping file in the remote memory.

### Claim 6 (depends on 5)

The method according to claim 5, further comprising:
determining a frequency for calling the target mapping file; and
adjusting a storage location of the target mapping file based on the frequency for calling the target mapping file.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the error information of the target application is obtained from a message-oriented middleware, in which the error information reported by a plurality of user terminals are stored.

### Claim 8

An electronic device, comprising:
one or more processors; and
a memory storing one or more programs configured to be executed by the one or more processors, the one or more programs including instructions for causing the electronic device to perform operations comprising:
parsing error information of a target application to obtain version information of the target application and an error attribute of the target application;
determining, based on the version information, a target mapping file corresponding to the error information; and
determining a target location by utilizing the error attribute and the target mapping file, wherein the target location is used to determine a location of fault description content;
wherein, when the error attribute includes an error type and a reference error line number; and
wherein the determining the target location by utilizing the error attribute and the target mapping file comprises:
determining, in the target mapping file based on the error type, an index interval corresponding to the error information;
determining, in the index interval based on a preset search strategy, mapping information corresponding to the reference error line number, wherein, the mapping information includes a correspondence between the reference error line number and an actual error line number; and
determining the actual error line number of the fault description content by utilizing the reference error line number and the mapping information, and using the actual error line number as the target location.

### Claim 9 (depends on 8)

The electronic device according to claim 8, wherein, the preset search strategy includes a traversal search strategy or a binary search strategy.

### Claim 10 (depends on 8)

The electronic device according to claim 8, wherein, the determining, based on the version information, the target mapping file corresponding to the error information comprises:
determining the target mapping file in a local memory or a remote memory, based on the version information.

### Claim 11 (depends on 10)

The electronic device according to claim 10, wherein, the determining the target mapping file in the local memory or the remote memory comprises:
determining the local memory as having a first priority; and
determining the target mapping file in the local memory.

### Claim 12 (depends on 11)

The electronic device according to claim 11, wherein, the determining the target mapping file in the local memory or the remote memory further comprises:
in response to determining that the target mapping file does not exist in the local memory, determining the target mapping file in the remote memory.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein the operations further comprise:
determining frequency for calling of the target mapping file; and
adjusting a storage location of the target mapping file based on the frequency for calling of the target mapping file.

### Claim 14 (depends on 8)

The electronic device according to claim 8, wherein the error information of the target application is obtained from message-oriented middleware, in which the error information reported by a plurality of user terminals are stored.

### Claim 15

A non-transitory computer-readable storage medium storing one or more programs, the one or more programs comprising instructions that, when executed by one or more processors of an electronic device, cause the electronic device to perform operations comprising:
parsing error information of a target application to obtain version information of the target application and an error attribute of the target application;
determining, based on the version information, a target mapping file corresponding to the error information; and
determining a target location by utilizing the error attribute and the target mapping file, wherein the target location is used to determine a location of fault description content;
wherein the error attribute comprises an error type and a reference error line number; and
wherein the determining the target location by utilizing the error attribute and the target mapping file comprises:
determining, in the target mapping file based on the error type, an index interval corresponding to the error information;
determining, in the index interval based on a preset search strategy, mapping information corresponding to the reference error line number, wherein the mapping information comprises a correspondence between the reference error line number and an actual error line number; and
determining the actual error line number of the fault description content by utilizing the reference error line number and the mapping information, and using the actual error line number as the target location.
