Fault locating method and device

A technology of fault location and stacking, which is applied in the direction of software testing/debugging, etc., can solve the problems of cumbersome fault location, unintuitive location results, inaccurate fault location, etc., and achieve the effects of intuitive operation results, simplified operation, and improved efficiency

Active Publication Date: 2008-09-10
ZTE CORP
View PDF0 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The present invention is made in consideration of the above problems. Therefore, the main purpose of the present invention is to provide a method and device for fault location to solve the problems of cumbersome fault location, unintuitive location results, and inaccurate fault location in the related art.

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
  • Fault locating method and device
  • Fault locating method and device
  • Fault locating method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] method embodiment

[0024] In this embodiment, a fault location method is provided, which is used for fault location of a microprocessor stack without an internal interlock pipeline stage.

[0025] figure 1 is the flow chart of the fault location method, such as figure 1 As shown, the method includes:

[0026] Step S102, in the case that the process is abnormal due to a function call exception, obtain the value of the program pointer and the value of the stack pointer of the abnormal process in the program space; step S104, obtain according to the value of the obtained program pointer and the value of the stack pointer The size of the current function stack pointed to by the stack pointer and the return instruction stored in the stack frame of the current function stack; step S106, according to the size of the current function stack and the value of the stack pointer, obtain the stored in the stack frame of the function stack after the current function stack The retu...

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

The invention discloses a fault positioning method, and the method comprises that: when in abnormality of the process due to the abnormality of the functional call, the value of a procedure pointer and the value of a stack pointer during the abnormal process are obtained in a procedure space; the size of the current function stack which is pointed by the stack pointer and a return command which is stored in a stack frame of the current function stack are obtained according to the value of the procedure pointer and the value of the stack pointer; the return command of a function which is stored in the stack frame of a function stack after the current function stack is obtained according to the size of the current function stack and the value of the stack pointer; an executable file of the abnormal process is searched, a symbol table of the abnormal process is searched according to the searched executable file, and the corresponding function is searched in the symbol table according to the return commands which are obtained in the current stack frame and other stack frames. In addition, the invention further discloses a fault positioning device.

Description

technical field [0001] The present invention relates to the field of microprocessors without internal interlocking pipeline stages, and in particular, to a method and device for fault location of the stack of microprocessors without internal interlocking pipeline stages. Background technique [0002] As one of the three major RISC CPUs (powerpc, arm, and mips), the microprocessor (MIPS) without internal interlocking pipeline level is widely used in embedded devices, and more and more embedded programs run on MIPS CPU above. When the application crashes abnormally due to errors such as null pointer, wrong pointer, overflow, etc., there is very little information printed for reference. The exception handler of the operating system usually only prints the values ​​of all registers of the current CPU and the values ​​of the user space program pointer (pc) and stack pointer (sp) when the abnormal process is abnormal. [0003] The usual way to locate the fault is to first disass...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 李金虎朱怀云
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products