Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A stack-based exception detection method and device

An anomaly detection and anomaly technology, applied in the computer field, can solve problems such as difficult to locate error locations, operation accidents, variable destruction, etc., and achieve the effects of improving accuracy, complexity, speed and accuracy

Active Publication Date: 2018-05-11
BEIJING QIHOO TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Since the read is a fixed location, if there is a problem with the stack space, an unexpected value may be manipulated when operating a local variable. If the local variable is a function pointer, it may even cause unexpected code to be executed.
[0007] If there is a problem with the stack space, it will not crash at that time, but it may cause a crash when other business objects manipulate the destroyed local variables, and it is difficult to locate the error location
For example, write data to the address pointed to by a pointer variable, but the variable is destroyed, resulting in an attempt to write data to an unknown area. At this time, it may crash due to writing an unwritable address.

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
  • A stack-based exception detection method and device
  • A stack-based exception detection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0075] Hereinafter, exemplary embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0076] Reference figure 1 , Shows a step flow chart of an embodiment of a stack-based exception detection method according to an embodiment of the present invention, which may specifically include the following steps:

[0077] Step 101: Generate identification information;

[0078] In actual applications, when the first business object calls the second business object, one or more parameters required by the seco...

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 stack-based exception detection method and device. The method comprises: generating identification information (101); pushing the identification information onto a stack before a first business object pushes one or more parameters onto the stack (102); extracting a stack top element currently located at the top of the stack when calling of a second service object is finished in one or more parameters on the stack (103); detecting whether the stack top element is the same as the identification information (104); and determining that an exception occurs in the stack when the stack top element is different from the identification information (105). On the basis of the principle of transmitting parameters via a stack, real-time exception detection on calling of the second service object is achieved, so that not only the speed and the accuracy of detecting a stack exception are improved, but also the precision in locating an exception is improved. Moreover, parameters in a crash event can be directly seen in the stack, so that subsequently a developer can conduct a crash analysis to find out the cause of the stack crash, thereby improving the development efficiency.

Description

Technical field [0001] The present invention relates to the field of computer technology, in particular to a stack-based abnormality detection method and a stack-based abnormality detection device. Background technique [0002] Stack (Stack), also known as stack, is a linear table with limited operations. The limitation is that only insert and delete operations are allowed at one end of the table. [0003] People call this end the top of the stack, the first element at the top of the stack is called the top element of the stack, and the other end is called the bottom of the stack. Inserting a new element into a stack is also called pushing or pushing, which is to put the element on top of the top element of the stack to make it a new top element; deleting an element from a stack is also called pop or unstack , It deletes the top element of the stack so that the adjacent element below it becomes the new top element of the stack. [0004] The stack stores the function's local variabl...

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): G06F9/46G06F8/41
CPCG06F9/46
Inventor 张皓秋
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products