Method for positioning malfunction of application program

A technology of application programs and positioning methods, applied in the field of C language application software development, can solve problems such as illegal modification of function local variable stack area, difficult to locate faults, etc.

Active Publication Date: 2006-02-01
ZTE CORP
View PDF0 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, even in a debugging environment, because some bugs will modify the stack of the program, for example, the improper use of function local variables may lead to illegal modification of the stack area. It i

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 positioning malfunction of application program
  • Method for positioning malfunction of application program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The positioning method of the application program in this embodiment includes the following steps:

[0032] Step 1, establish a tracking dynamic library, which contains the implementation code of the hook function and the implicit call function;

[0033] Step 2, start the management program, judge whether there is a management shared memory area, if not, then establish the memory area;

[0034] Step 3: The tracked application statically connects the required dynamic library during compilation, makes a hook function called at the function entry for all self-coded functions, and provides an implicit call function called when the function returns;

[0035] Step 4: After the application is started, the dynamic library will establish a process shared memory area named after the application program and a thread local storage identifier when processing the process creation message, and a default startup fault location is set in the process shared memory area mark;

[0036] S...

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

A method for positioning fault of application program includes making hook function for being called at entrance of self ¿C coding function when application program is compiled, setting up course shared internal memory for each linear program, pressing EIP and RET into stack region of shared internal memory by calling on hook function when operation is run up to self ¿C coding function, pulling out EIP and RET and restoring RET of program stack, realizing accurate positioning of fault although application program stack is damaged and program is disengaged because of fault .

Description

technical field [0001] The invention relates to the development of C language application software based on the Microsoft Windows operating system in the computer field, in particular to an error checking method for application program failures. Background technique [0002] Due to the wide application of the Microsoft Windows operating system in personal computers, a large number of software companies have developed more and more Windows applications. Many applications are developed using C language. Due to the different skill levels of software developers and the complexity of programs, There will be one or another BUG (fault) in many program codes, and serious BUG may cause the application program to die. [0003] Now the more general error checking method is to use the structured exception handling provided by WINDOWS or run the debugging version. Many exceptions such as illegal address access and DIV BY ZERO (divided by 0) can be caught. Existing error detection method...

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 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