Unlock instant, AI-driven research and patent intelligence for your innovation.

Method, device and computer for locating kernel errors

An error location and core technology, applied in the field of computer software, can solve problems such as high labor costs and low fault location efficiency, and achieve the effect of improving accuracy and efficiency and reducing costs

Active Publication Date: 2017-03-08
HISENSE VISUAL TECH CO LTD
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the efficiency of fault location using this method is low, and it often depends on the subjective judgment of the developer to accurately locate the fault, requiring developers to have strong fault handling capabilities, and the labor cost is high

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and computer for locating kernel errors
  • Method, device and computer for locating kernel errors
  • Method, device and computer for locating kernel errors

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] The embodiment of the present invention provides a method for locating kernel errors, which can be applied to a software system. The software system loads and runs a functional module, such as figure 1 As shown, the kernel error location method includes:

[0040] S101. After the software system crashes, the kernel error locating device obtains the operating address of a known function in the function module before the software system crashes and the error memory address popped up when the software system crashes.

[0041] Wherein, if the running address printing of a certain function has been added before the program runs, when the program runs to this function, the software system will output the printing information including the running address of the function (a known function). When the software system crashes, a print message will pop up, which contains the wrong memory address.

[0042] Wherein, the error memory address includes an error address, the error addre...

Embodiment 2

[0113] The embodiment of the present invention provides a kernel error location device, the software system loads and runs a functional module, such as Figure 6 As shown, the device for locating kernel errors includes: an acquisition module 31 , a calculation module 32 and a location module 33 .

[0114]The obtaining module 31 is used to obtain the running address of a known function in the functional module before the software system crashes and the error memory address popped up when the software system crashes after the software system crashes; the error memory The address includes an error address, the error address is an address in the operation address space of the error function, and the known function is a function in the function module; obtaining the operation address of the known function is relative to the function The offset of the module's program execution entry.

[0115] A computing module 32, configured to obtain the error address obtained by the obtaining m...

Embodiment 3

[0137] An embodiment of the present invention provides a computer, the computer runs a software system, and the software system loads and runs a functional module, such as Figure 8 As shown, the computer includes: a memory 41 and a processor 42 .

[0138] The memory 41 is used to store a set of program codes.

[0139] The processor 42 is configured to perform the following operations according to a set of program codes stored in the memory:

[0140] After the software system crashes, obtain the running address of a known function in the functional module before the software system crashes and the error memory address that pops up when the software system crashes; the error memory address includes an error address, so Described error address is an address in the running address space of error function, and described known function is a function in described function module;

[0141] Obtain the offset of the running address of the known function relative to the program runnin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

An embodiment of the invention discloses a method, a device and a computer for locating kernel errors, and relates to the field of computer software. The particular scheme includes that the method comprises after software systems crash, acquiring running addresses of a known function in a functional module before the software systems crash and error memory addresses popped up when the software systems crash; acquiring offset of the running addresses of the known function relative to program running entrances of the functional module; determining error functions among all functions of the functional module according to error addresses, the running addresses of the known function and the offset of the running addresses of the known function relative to the program running entrances of the functional module and acquiring offset of the error addresses relative to running addresses of the error functions by means of computing; locating error code lines from the error functions according to the offset of the error addresses relative to the running addresses of the error functions. The method, the device and the computer have the advantages that the fault locating efficiency can be improved; the method, the device and the computer can be used in kernel error locating procedures after the software systems crash.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a kernel error location method, device and computer. Background technique [0002] In the process of computer software development, various bugs will inevitably appear, and the industry generally can locate faults by tracking and debugging bugs. Specifically, program developers can add prints where bugs may appear in the software program based on their working experience, so as to catch program exceptions and generate log files during program running. [0003] But some bugs (that is, kernel error-kernel panic, such as illegal calls to addresses) will directly cause the crash of the software system. When such a bug occurs, the software system will exit directly after popping up the wrong memory address. At this time, the developer cannot analyze the cause of the system crash based on the printed log file. [0004] In response to the above problems, developers often add prints be...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
Inventor 张清华张金平
Owner HISENSE VISUAL TECH CO LTD