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

Method and device for solving program crash

A program crash and solution technology, applied in the field of program crash solution methods and devices, can solve problems such as inability to solve result verification, long native crash cycle, and high cost, so as to save time, improve running speed and smoothness, and improve efficiency Effect

Active Publication Date: 2020-02-11
TENCENT TECH (SHENZHEN) CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, there is no effective solution to native crash in the android system. Since most native crashes are non-essential problems, even if the native crash is solved, the solution result cannot be fully verified. It can only be released with the app client version. , Report the error when the app is running to see how the native crash is resolved. If it is not resolved, it needs to be postponed until the release of the next app client version. The cycle to solve the native crash is longer and the cost is relatively 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 and device for solving program crash
  • Method and device for solving program crash
  • Method and device for solving program crash

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] In order to further explain the technical means and effects of the present invention to achieve the intended purpose of the invention, the specific implementation, structure, features and effects of the present invention will be described in detail below in conjunction with the accompanying drawings and preferred embodiments.

[0016] The program crash solution method in the present invention can be applied in mobile terminals to solve the problem of native layer program crash. For ease of understanding, first of all, it needs to be explained that the technical solution of the present invention is to replace the target function that should be called and executed with the calling and executing replacement function through the hook (hook) method, wherein the target function is the function to be hooked, which is possible The target program that occurs native crash (local crash) calls related functions at runtime, and the replacement function is a hook function. The replac...

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 solution method for program crash comprises the steps that a first dynamic link library document is acquired and located into a target program, wherein the first dynamic link library document comprises a substitution function, and the substitution function comprises a repair code; information for target function calling in a second dynamic link library document used to call a target function is substituted by information for substitution function calling; when a detection results shows that the target function calls the second dynamic link library document and further calls the target function, the calling is substituted by calling of the substitution function, and the repair code is operated; and whether parameters introduced during calling of the target function satisfy checking rules contained in the repair code is checked, wherein the target function will be called if the checking rules are satisfied, and a preset value will be reset and running of the target program will be continued if the checking rules are not satisfied. The invention also provides a solution device for the program crash. The method and the device have the advantages that dynamic hook can be completed on the premise that running of a target process corresponding to a target program is not influenced; and the probability of process crash can be reduced.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for solving program crashes. Background technique [0002] With the popularity of smart mobile terminal applications, the application scope of android system has also developed. Android is a free and open source operating system based on Linux, which is mainly used in mobile devices, such as smart phones and tablet computers. Native crash is the abnormal exit of the program caused by the c\c++ code part when the app (application) in the android system is running. [0003] At present, there is no effective solution to native crash in the android system. Since most native crashes are non-essential problems, even if the native crash is solved, the solution result cannot be fully verified. It can only be released with the app client version. , Report the error when the app is running to see how the native crash is resolved. If it is not resolved, it needs to 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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/07
Inventor 王波谌丁
Owner TENCENT TECH (SHENZHEN) 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