Unlock instant, AI-driven research and patent intelligence for your innovation.

Application program anomaly processing method and device and mobile terminal

An application and exception processing technology, applied in the field of data processing, can solve the problems of low detection efficiency and detection speed of fault codes, and achieve the effect of improving detection efficiency and detection speed

Active Publication Date: 2018-05-29
VIVO MOBILE COMM CO LTD
View PDF16 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] Embodiments of the present invention provide an exception handling method, device, and mobile terminal to solve the problem of low detection efficiency and detection speed of fault codes existing in the detection scheme of fault codes of application programs in the prior 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
  • Application program anomaly processing method and device and mobile terminal
  • Application program anomaly processing method and device and mobile terminal
  • Application program anomaly processing method and device and mobile terminal

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0031] refer to figure 1 , shows a flow chart of an application program exception handling method according to an embodiment of the present invention, and the method may specifically include the following steps:

[0032] Step 101, obtaining the target memory address of the exception stack of the application;

[0033] Wherein, when an abnormality occurs in the application program, the client installing the application program can report the memory address (a relative address) of the exception stack (such as a crash stack) through the exception reporting system, then the method in the embodiment of the present invention can Receives the memory address of the exception stack of the application, that is, the target memory address here.

[0034] Wherein, the target memory address may include a start address and an end address, constituting a target address range.

[0035] Step 102, extract the target segment file corresponding to the target memory address from the preset index fi...

no. 2 example

[0045] refer to figure 2 , which shows a flow chart of an application exception handling method according to another embodiment of the present invention, which may specifically include the following steps:

[0046] Step 201, extract the debugging symbol information file from the debugging library file of the application program to the memory, and the debugging symbol information file includes mapping data composed of associated memory addresses and target code segment parameters;

[0047] Wherein, for each application program, when it is compiled with a compiler, a debug library with a debug symbol information file will be generated, so the debug symbol information file can be extracted from the debug library. Moreover, a corresponding relationship can be formed between the application program and the debugging symbol information file. It should be noted that, with the continuous maintenance and update of the application program, there are often multiple different versions o...

no. 3 example

[0070] refer to image 3 , showing a flow chart of an application exception handling method according to another embodiment of the present invention, which may specifically include the following steps:

[0071] Step 301, extract the debugging symbol information file from the debugging library file of the application program to the memory, and the debugging symbol information file includes mapping data composed of associated memory addresses and target code segment parameters;

[0072] For details, refer to step 201 of the second embodiment, which will not be repeated here.

[0073] Step 302, sorting the mapping data of the debugging symbol information file according to the ascending or descending order of memory addresses;

[0074] For details, refer to step 202 of the second embodiment, which will not be repeated here.

[0075] Step 303, performing fragmentation processing on the sorted debug symbol information files to obtain multiple fragmented files;

[0076] For detail...

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 provides an application program anomaly processing method and device and a mobile terminal. The method comprises the steps that a target memory address of an abnormal stack of an application program is acquired; a target fragment file corresponding to the target memory address is extracted from a preset index file, wherein the index file comprises a mapping relation between multiplefragment files and multiple memory addresses, and the fragment files are files obtained after fragmentation processing is performed on a debugging symbol information file; and the target fragment fileis loaded, and target code segment parameters corresponding to the target memory address are acquired from the target fragment file. According to the method, fragmentation processing is performed onthe detection symbol information file, the index file is generated, therefore, it is only needed to load the fragment file to acquire an abnormal specific code segment, and the detection efficiency and detection speed of an abnormal fault code are improved.

Description

technical field [0001] The present invention relates to the technical field of data processing, in particular to an application program exception handling method, device and mobile terminal. Background technique [0002] As the current scale of mobile software becomes more and more complex, when the software crashes abnormally, it is difficult to locate the location of the problem based on external behavior. In order to assist software developers to quickly locate the location of the abnormal crash point, modern operating systems generally print out the data in each register of the current CPU and the data of the crashed call stack when the software crashes, to help developers locate, The corresponding code location where the problem occurs. [0003] The technology of the operating system, which prints out the call stack when the system is abnormal, is very helpful for developers to troubleshoot problems, and plays a certain role in promoting the effective improvement of so...

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
CPCG06F11/3636G06F11/366
Inventor 李庆美
Owner VIVO MOBILE COMM CO LTD