Method for capturing function for resulting in memory rewriting by wild pointer

A function and memory technology, which is applied in the field of capturing functions that cause memory to be rewritten by wild pointers, can solve problems such as frequent, system performance degradation, and affect system operation, and achieve the effect of narrowing the scope.

Active Publication Date: 2009-07-22
ZTE CORP
View PDF5 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, due to task switching and function calls, they are very frequent in a real-time system. If the monitoring means occupy too much system resources, the system performance will decrease during monitoring, which will affect the operation of the main functions of the system.

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 for capturing function for resulting in memory rewriting by wild pointer
  • Method for capturing function for resulting in memory rewriting by wild pointer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0023] The main purpose of the present invention is how to quickly and accurately locate the memory problem by occupying less system resources, especially how to determine the function that causes the memory to be rewritten by the wild pointer, and determine the task that calls the function, so as to locate This type of system failure provides effective record information to facilitate the positioning of system problems and improve the stability of products in the market.

[0024] An efficient method is adopted in the embodiment of the present invention, that is, the function that causes the memory to be rewritten and the task of running the function are captured by using the existing characteristics of the software and hardware of the communication product. Embed...

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 method for capturing functions that cause memory to be rewritten by wild pointers, comprising the following steps: adding a function call and return hook function in the system, and configuring a global function pointer; when the system is running, in the function call hook function Record the value of the monitored memory. In the function return hook function, compare the memory value recorded by the function call hook function with the current memory value. If they are inconsistent, record the address of the currently running function to the global in the function pointer. Further, when the task is switched, the global function pointer is assigned as the address of the recorded function pointer in the memory area corresponding to the switched-in task. By applying the capture method of the present invention, the function that causes the memory to be rewritten by the wild pointer can be captured and recorded in real time, and furthermore, the task that calls the function can also be located.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a method for capturing functions that cause memory to be rewritten by wild pointers. Background technique [0002] In the field of communication, the communication products containing CPU may encounter the abnormal situation of the system function or even crash due to the illegal rewriting of the memory in the market application or laboratory environment. The cause of the above abnormal situation is illegal rewriting, especially the illegal rewriting of memory by wild pointers. After the problem occurs, what you see is only the rewritten memory state. As for which function of which task is rewritten, it is impossible to know, so it is difficult to locate the cause of this problem. [0003] In the field of communication, the problem of rewriting memory by wild pointers is still a difficult problem. At present, there is generally no systematic method to locate the cause of...

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 Patents(China)
IPC IPC(8): G06F11/14G06F11/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