CN108170550A - The method, apparatus and equipment of abnormality processing - Google Patents

The method, apparatus and equipment of abnormality processing Download PDF

Info

Publication number
CN108170550A
CN108170550A CN201711484038.0A CN201711484038A CN108170550A CN 108170550 A CN108170550 A CN 108170550A CN 201711484038 A CN201711484038 A CN 201711484038A CN 108170550 A CN108170550 A CN 108170550A
Authority
CN
China
Prior art keywords
application program
mach
exceptions
count value
repaired
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711484038.0A
Other languages
Chinese (zh)
Inventor
曾庆隆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201711484038.0A priority Critical patent/CN108170550A/en
Publication of CN108170550A publication Critical patent/CN108170550A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of method, apparatus and equipment of abnormality processing.This method includes:In the range of application program launching preset duration, judge whether to listen to Mach exceptions, the Mach is used to represent that run-time error occurs in the application program extremely;It when listening to the Mach exceptions, adds up to the count value of counter, and when the count value is greater than or equal to predetermined threshold value, the application program is repaired;When not hearing the Mach exceptions, the count value is zeroed out.The present invention improves the accurate fixed of judging result.

Description

The method, apparatus and equipment of abnormality processing
Technical field
The present invention relates to field of terminal technology more particularly to the method, apparatus and equipment of a kind of abnormality processing.
Background technology
Upon actuation, due to database damage, cache file is damaged, from clothes application program (App, Application) There are the run-time errors such as mistake and is likely to occur the situation dodged and moved back in the data parsing that business device is asked.
In the prior art, generally use following manner judges whether application program continuously sudden strain of a muscle occurs and move back:Enter in application program Counter is added 1 at mouthful and starts timer;When the timer expires, counter is zeroed out;When the count value of counter During more than or equal to predetermined threshold value, determine continuous collapse occur.
But the problem of judging result is not accurate enough exists in the prior art.
Invention content
The embodiment of the present invention provides a kind of method, apparatus and equipment of abnormality processing, to solve to judge in the prior art As a result the problem of not accurate enough.
In a first aspect, the embodiment of the present invention provides a kind of method of abnormality processing, including:
In the range of application program launching preset duration, judge whether to listen to Mach exceptions, the Mach is used for extremely Represent that run-time error occurs in the application program;
When listening to the Mach exceptions, add up to the count value of counter, and be more than in the count value or During equal to predetermined threshold value, the application program is repaired;
When not hearing the Mach exceptions, the count value is zeroed out.
In a kind of design in the cards, the method further includes:
When listening to the Mach exceptions, corresponding exception information is recorded;
By the exception information of record, server is reported to.
It is described that the application program is repaired in a kind of design in the cards, including:
The database of the application program is repaired, and is used to store the file directory of data to the application program In data be purged.
In a kind of design in the cards, the type of the Mach exceptions includes at least:It is described as caused by wild pointer The run-time error of application program.
Second aspect, the embodiment of the present invention provide a kind of device of abnormality processing, including:
Judgment module, it is described in the range of application program launching preset duration, judging whether to listen to Mach exceptions Mach is used to represent that run-time error occurs in the application program extremely;
First processing module, for when listening to the Mach exceptions, adding up to the count value of counter, and When the count value is greater than or equal to predetermined threshold value, the application program is repaired;
Second processing module, for when not hearing the Mach exceptions, being zeroed out to the count value.
In a kind of design in the cards, the first processing module is additionally operable to when listening to the Mach exceptions, Record corresponding exception information;
Described device further includes:Reporting module, for by the exception information recorded, reporting to server.
In a kind of design in the cards, the first processing module repairs the application program, specific to wrap It includes:
The database of the application program is repaired, and is used to store the file directory of data to the application program In data be purged.
In a kind of design in the cards, the type of the Mach exceptions includes at least:It is described as caused by wild pointer The run-time error of application program.
The third aspect, the embodiment of the present invention provide a kind of terminal, including:
Processor and the memory for storing computer instruction;The processor runs the computer instruction and performs Following method:
In the range of application program launching preset duration, judge whether to listen to Mach exceptions, the Mach is used for extremely Represent that run-time error occurs in the application program;
When listening to the Mach exceptions, add up to the count value of counter, and be more than in the count value or During equal to predetermined threshold value, the application program is repaired;
When not hearing the Mach exceptions, the count value is zeroed out.
In a kind of design in the cards, the method further includes:
When listening to the Mach exceptions, corresponding exception information is recorded;
By the exception information of record, server is reported to.
It is described that the application program is repaired in a kind of design in the cards, including:
The database of the application program is repaired, and is used to store the file directory of data to the application program In data be purged.
In a kind of design in the cards, the type of the Mach exceptions includes at least:It is described as caused by wild pointer The run-time error of application program.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, are stored thereon with computer instruction, The computer instruction realizes following method when being executed by processor:
In the range of application program launching preset duration, judge whether to listen to Mach exceptions, the Mach is used for extremely Represent that run-time error occurs in the application program;
When listening to the Mach exceptions, add up to the count value of counter, and be more than in the count value or During equal to predetermined threshold value, the application program is repaired;
When not hearing the Mach exceptions, the count value is zeroed out.
In a kind of design in the cards, the method further includes:
When listening to the Mach exceptions, corresponding exception information is recorded;
By the exception information of record, server is reported to.
It is described that the application program is repaired in a kind of design in the cards, including:
The database of the application program is repaired, and is used to store the file directory of data to the application program In data be purged.
In a kind of design in the cards, the type of the Mach exceptions includes at least:It is described as caused by wild pointer The run-time error of application program.
The method, apparatus and equipment of abnormality processing provided by the invention, by application program launching preset duration range It is interior, judge whether to listen to for representing that the Mach exceptions of run-time error occurs in application program, if so, the counting to counter Value adds up, and the application program is repaired when the count value is greater than or equal to predetermined threshold value, if it is not, then right The count value is zeroed out, and realizes basis for representing that the Mach that run-time error occurs in application program is judged extremely using journey Whether sequence, which occurs continuously dodging, is moved back, and improves the accuracy of judging result.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of the embodiment of the method one of abnormality processing of the present invention;
Fig. 2 is the flow chart of the embodiment of the method two of abnormality processing of the present invention;
Fig. 3 is the flow chart of the embodiment of the method three of abnormality processing of the present invention;
Fig. 4 is the structure diagram of the device embodiment of abnormality processing of the present invention;
Fig. 5 is the structure diagram of terminal embodiment of the present invention.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art All other embodiments obtained without creative efforts shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart of the embodiment of the method one of abnormality processing of the present invention, and the executive agent of the method for the present embodiment can Think terminal, the terminal is such as can be mobile phone, tablet computer, laptop.As shown in Figure 1, the method for the present embodiment It can include:
Step 101, in the range of application program launching preset duration, judge whether to listen to Mach exceptions, the Mach It is abnormal to be used to represent that run-time error occurs in the application program.
In this step, the preset duration can be used for limitation and dodge the time range moved back, if such as will apply journey within 5 seconds The situation that sequence run-time error occurs and exits, which is considered to dodge, moves back, then preset duration can be 5 seconds.It specifically, can be using journey The inlet of sequence starts a timer, and the timing length of the timer is preset duration.During timer, judgement is It is no to listen to represent that the Mach exceptions of run-time error occurs in the application program.In general, when there is operation mistake in application program It mistakes, to there are corresponding Mach exceptions.Here, the Mach can refer to that the kernel level of the bottom is abnormal extremely, the kernel Grade is abnormal to be caused by processor trap.Mach can be converted into abnormal signal, i.e. Signal letters at host layers extremely Number it is delivered to the thread of error.The type of the Mach exceptions includes at least:The fortune of the application program as caused by wild pointer Row mistake.Wherein, the run-time error of the application program as caused by wild pointer includes but not limited to occur in the prior art The application program as caused by EXC_MASK_BAD_INSTRUCTION run-time error, drawn by EXC_MASK_ARITHMETIC The run-time error of application program that rises, the run-time error of the application program as caused by EXC_MASK_SOFTWARE, by EXC_ It the run-time error of application program caused by MASK_BREAKPOINT and is likely to occur all kinds of caused by wild pointer The run-time error of application program or collapse.
Step 102, when listen to for the Mach exceptions when, add up to the count value of counter, and described When count value is greater than or equal to predetermined threshold value, the application program is repaired.
It in this step, can be exited when there is run-time error due to application program, the count value of counter is opened in application program It is listened in the range of dynamic preset duration for that can add up when representing that the Mach exceptions of run-time error occurs in application program, and applying Program starts not to be heard to reset when representing that the Mach exceptions of run-time error occurs in application program in the range of preset duration. Therefore, the count value of counter can be used to indicate that application program continuously dodges the number moved back.Specifically, when the counting to counter It is specially when adding 1 to the count value of counter that value, which carries out cumulative, and the count value of counter may be considered application program and continuously dodge The number moved back.Optionally, it is described that the application program is repaired, it is specifically as follows to the relevant data of the application program It is repaired, such as the relevant data of the application program is deleted or restored.Wherein, to the data of application program into After row is deleted, terminal can reacquire corresponding data from the corresponding server of the application program, so as to fulfill to applying journey The reparation of sequence related data.Wherein, the relevant data of the application program are such as can be the data in database.It needs Bright, the count value of the counter will not be reset because of exiting for application program.
Step 103, when not hearing the Mach exceptions, the count value is zeroed out.
In this step, when Mach exceptions are not heard in the range of application program launching preset duration, destroy using journey Continuous dodge of sequence is moved back, it is therefore desirable to will be moved back the count value of number for continuous dodge for representing application program and is zeroed out.
In the present embodiment, listen to represent to answer by the range of application program launching preset duration, judging whether The Mach for occurring run-time error with program is abnormal, if so, the count value to counter adds up, and big in the count value The application program is repaired when predetermined threshold value, if it is not, being then zeroed out to the count value, realizes root According to for representing that the Mach that run-time error occurs in application program judges whether application program continuous dodge occurs and move back extremely, improve and sentence The accuracy of disconnected result.
Fig. 2 is the flow chart of the embodiment of the method two of abnormality processing of the present invention.The base of the present embodiment embodiment shown in Fig. 1 A kind of optional processing mode when listening to above-mentioned Mach exceptions is essentially described on plinth.As shown in Fig. 2, the present embodiment Method can include:
Step 201, in the range of application program launching preset duration, judge whether to listen to Mach exceptions, the Mach It is abnormal to be used to represent that run-time error occurs in application program.
In this step, when listening to the Mach exceptions, step 202 is performed.When not hearing the Mach exceptions, Perform step 206.
Optionally, Mach exceptions can be monitored in the following way.Specifically, Mach is converted into Mach message extremely, By the extremely corresponding Mach message diliveries of Mach to thread (thread), task (task) or host (host).Specifically, can be with Mach message is delivered using following mechanism:Can first be attempted to throw to Mach message the abnormal of thread, if line The abnormal of journey does not return to KERN_SUCCESS, can then attempt to the abnormal for the task of throwing to, if the exception of task Port does not return to KERN_SUCCESS, and (here, the abnormal of host can consider the abnormal for the host that finally throws to again It is the abnormal of acquiescence), if the abnormal of host does not return to KERN_SUCCESS, the task can be terminated.
Wherein, the task is corresponding with the application program, and the thread is the thread of the task.
Step 202 adds up to the count value of counter, and records corresponding exception information.
In this step, the exception information can specifically include the type of Mach exceptions, and the Mach occurs extremely Time etc., it is and one or more in the extremely relevant all information of the Mach.
Step 203 judges whether the count value is greater than or equal to predetermined threshold value.
In this step, when the count value is greater than or equal to the predetermined threshold value, step 204 is performed.When the counting When value is less than the predetermined threshold value, terminate.
Step 204 repairs the application program.
In this step, optionally, the application program is repaired, is specifically as follows for application program correlation All data repaired.Optionally, all data relevant to the application program are restored;Alternatively, it answers described It is deleted with the relevant all data of program;Alternatively, partial data in all data relevant to the application program into Row is deleted, other data to application program in relevant all data in addition to the partial data are restored.Wherein, institute The relevant data of application program are stated to be specifically as follows:The data stored in database, document (Documents), library (Library), data under cache (Caches) catalogue etc..
The exception information is reported to server by step 205.
In this step, by the way that the exception information is reported to server so that software developer can be from server Exception information is obtained, further, can determine that application program whether there is code error according to exception information.If application program There are code error, corresponding hot repair multiplexed code can also be uploaded to server by software developer, so that terminal is from service Device obtains corresponding hot repair multiplexed code and application program is repaired.Optionally, terminal is specifically when application program launching is preset In long range, when not hearing the Mach exceptions, corresponding hot repair multiplexed code can also be obtained from server to application program It is repaired.In order to ensure the reparation to application program can be smoothly complete, optionally, hot repair multiplexed code and loading are being downloaded During hot repair multiplexed code, prompting frame can be popped up, is prompted the user with just in repairing applications.
It should be noted that step 205 is only for example after step 204 in Fig. 2, it, can basis in specific implementation Demand carries out flexible design, and sequencing of the present invention between step 205 and step 204 is simultaneously not construed as limiting.For example, can be When the count value is greater than or equal to the predetermined threshold value, first carries out step 205 and perform step 204 again, alternatively, can also be in step Rapid 202 record execution step 205 after corresponding exception information, when the count value is greater than or equal to the predetermined threshold value again Perform step 203.
Step 206 is zeroed out the count value.
It should be noted that step 206 repairs application program with from the corresponding hot repair multiplexed code of server acquisition Between there is no sequencing limitation.
In the present embodiment, listen to represent to answer by the range of application program launching preset duration, judging whether The Mach for occurring run-time error with program is abnormal, if so, being carried out to the count value of counter cumulative and recording corresponding exception The exception information is reported to server so that software development by information when the count value is greater than or equal to predetermined threshold value Personnel can obtain exception information from server, can further determine that application program is wrong with the presence or absence of code according to exception information Accidentally, so as to improve the reliability of application program.
Fig. 3 is the flow chart of the embodiment of the method three of abnormality processing of the present invention.The present embodiment is in implementation shown in Fig. 1 or Fig. 2 A kind of concrete implementation mode based on iOS system is essentially described on the basis of example.As shown in figure 3, the method for the present embodiment It can include:
Step 301 passes through the first abnormal of mach_port_allocate function creations.
Wherein, when creating first abnormal, the Mach that first abnormal needs are delivered can be set abnormal Type.Wherein, needing the type of the Mach delivered exceptions can for example include:EXC_MASK_BAD_ACCESS、EXC_ MASK_BAD_INSTRUCTION, EXC_MASK_ARITHMETIC, EXC_MASK_SOFTWARE and EXC_MASK_ BREAKPOINT。
Step 302 gives first abnormal to assign transmission (SEND) by mach_port_insert_right functions Permission.
Wherein, after giving first abnormal imparting SEND permissions by mach_port_insert_right functions, The corresponding Mach of type of Mach exceptions for needing to deliver can be converted into Mach message extremely by the first abnormal.
Step 303 creates the second abnormal by thread_set_exception_ports functions for thread 1.
Wherein, when creating first abnormal, the Mach that second abnormal needs receive can be set abnormal Type.Thread 1 is the thread of above-mentioned task.Wherein, needing the type of the Mach received exceptions can for example include:EXC_ MASK_BAD_ACCESS、EXC_MASK_BAD_INSTRUCTION、EXC_MASK_ARITHMETIC、EXC_MASK_ SOFTWARE and EXC_MASK_BREAKPOINT.
Step 304 creates thread 2 by pthread_create, for capturing Mach message to the second abnormal It is handled.
In this step, thread 2, which handles the Mach message captured, can specifically include above-mentioned steps 101- steps 103 or step 201- steps 206.Wherein, the process handled in thread 2 the Mach message that the second abnormal captures In, it can be blocked with thread 1, be interrupted until receiving exception message (exception message) or thread 1.
In the present embodiment, by the first abnormal of mach_port_allocate function creations, pass through mach_port_ Insert_right functions give first abnormal to assign SEND permissions, pass through thread_set_exception_ports letters Number creates the second abnormal for thread 1, and thread 2 is created by pthread_create, for being captured to the second abnormal It is handled to Mach message, realizes basis for representing that the Mach that run-time error occurs in application program is judged extremely using journey Whether sequence, which occurs continuously dodging, is moved back, and improves the accuracy of judging result.
Fig. 4 is the structure diagram of the device embodiment of abnormality processing of the present invention, and device provided in this embodiment can lead to Cross software, hardware or both be implemented in combination with it is some or all of as terminal.As shown in figure 4, the device of the present embodiment It can include:Judgment module 401, first processing module 402 and Second processing module 403.
Wherein, judgment module 401, in the range of application program launching preset duration, judging whether to listen to Mach Abnormal, the Mach is used to represent that run-time error occurs in the application program extremely;
First processing module 402, for when listening to the Mach exceptions, adding up to the count value of counter, And when the count value is greater than or equal to predetermined threshold value, the application program is repaired;
Second processing module 403, for when not hearing the Mach exceptions, being zeroed out to the count value.
Optionally, first processing module 402 are additionally operable to when listening to the Mach exceptions, record corresponding abnormal letter Breath;
The device of the present embodiment can also include:Reporting module 404, for by the exception information recorded, reporting to Server.
Optionally, first processing module 402 are repaired the application program, are specifically included:
The database of the application program is repaired, and is used to store the file directory of data to the application program In data be purged.
Optionally, the type of the Mach exceptions includes at least:The operation of the application program as caused by wild pointer is wrong Accidentally.
The device of the present embodiment can be used for performing the technical solution of Fig. 1-embodiment illustrated in fig. 3, realization principle and skill Art effect is similar, and details are not described herein again.
Fig. 5 is the structure diagram of terminal embodiment of the present invention, as shown in figure 5, the terminal can include:Processor 501 And the memory 502 for storing computer instruction.
Wherein, processor 501 runs the computer instruction and performs following methods:
In the range of application program launching preset duration, judge whether to listen to Mach exceptions, the Mach is used for extremely Represent that run-time error occurs in the application program;
When listening to the Mach exceptions, add up to the count value of counter, and be more than in the count value or During equal to predetermined threshold value, the application program is repaired;
When not hearing the Mach exceptions, the count value is zeroed out.
Optionally, the method further includes:
When listening to the Mach exceptions, corresponding exception information is recorded;
By the exception information of record, server is reported to.
Optionally, it is described that the application program is repaired, including:
The database of the application program is repaired, and is used to store the file directory of data to the application program In data be purged.
Optionally, the type of the Mach exceptions includes at least:The operation of the application program as caused by wild pointer is wrong Accidentally.
Also a kind of non-transitorycomputer readable storage medium of the present invention, when the instruction in the storage medium is by terminal When managing device execution so that terminal is able to carry out a kind of method of abnormality processing, and this method includes:
In the range of application program launching preset duration, judge whether to listen to Mach exceptions, the Mach is used for extremely Represent that run-time error occurs in the application program;
When listening to the Mach exceptions, add up to the count value of counter, and be more than in the count value or During equal to predetermined threshold value, the application program is repaired;
When not hearing the Mach exceptions, the count value is zeroed out.
Optionally, the method further includes:
When listening to the Mach exceptions, corresponding exception information is recorded;
By the exception information of record, server is reported to.
Optionally, it is described that the application program is repaired, including:
The database of the application program is repaired, and is used to store the file directory of data to the application program In data be purged.
Optionally, the type of the Mach exceptions includes at least:The operation of the application program as caused by wild pointer is wrong Accidentally
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Aforementioned program can be stored in a computer read/write memory medium.The journey Sequence when being executed, performs the step of including above-mentioned each method embodiment;And aforementioned storage medium includes:ROM, RAM, magnetic disc or The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical features into Row equivalent replacement;And these modifications or replacement, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

  1. A kind of 1. method of abnormality processing, which is characterized in that including:
    In the range of application program launching preset duration, judge whether to listen to Mach exceptions, the Mach is used to represent extremely There is run-time error in the application program;
    It when listening to the Mach exceptions, adds up to the count value of counter, and is greater than or equal in the count value During predetermined threshold value, the application program is repaired;
    When not hearing the Mach exceptions, the count value is zeroed out.
  2. 2. according to the method described in claim 1, it is characterized in that, the method further includes:
    When listening to the Mach exceptions, corresponding exception information is recorded;
    By the exception information of record, server is reported to.
  3. 3. according to the method described in claim 1, it is characterized in that, described repair the application program, including:
    The database of the application program is repaired, and the application program is used in the file directory for storing data Data are purged.
  4. 4. according to claim 1-3 any one of them methods, which is characterized in that the type of the Mach exceptions includes at least: The run-time error of the application program as caused by wild pointer.
  5. 5. a kind of device of abnormality processing, which is characterized in that including:
    Judgment module, in the range of application program launching preset duration, judging whether to listen to Mach exceptions, the Mach It is abnormal to be used to represent that run-time error occurs in the application program;
    First processing module, for when listening to the Mach exceptions, adding up to the count value of counter, and described When count value is greater than or equal to predetermined threshold value, the application program is repaired;
    Second processing module, for when not hearing the Mach exceptions, being zeroed out to the count value.
  6. 6. device according to claim 5, which is characterized in that the first processing module is additionally operable to described when listening to During Mach exceptions, corresponding exception information is recorded;
    Described device further includes:Reporting module, for by the exception information recorded, reporting to server.
  7. 7. device according to claim 5, which is characterized in that the first processing module carries out the application program It repairs, specifically includes:
    The database of the application program is repaired, and the application program is used in the file directory for storing data Data are purged.
  8. 8. according to claim 5-7 any one of them devices, which is characterized in that the type of the Mach exceptions includes at least: The run-time error of the application program as caused by wild pointer.
  9. 9. a kind of terminal, which is characterized in that including:
    Processor and the memory for storing computer instruction;The processor runs the computer instruction perform claim It is required that 1-4 any one of them methods.
  10. 10. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction Claim 1-4 any one of them methods are realized when being executed by processor.
CN201711484038.0A 2017-12-29 2017-12-29 The method, apparatus and equipment of abnormality processing Pending CN108170550A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711484038.0A CN108170550A (en) 2017-12-29 2017-12-29 The method, apparatus and equipment of abnormality processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711484038.0A CN108170550A (en) 2017-12-29 2017-12-29 The method, apparatus and equipment of abnormality processing

Publications (1)

Publication Number Publication Date
CN108170550A true CN108170550A (en) 2018-06-15

Family

ID=62516272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711484038.0A Pending CN108170550A (en) 2017-12-29 2017-12-29 The method, apparatus and equipment of abnormality processing

Country Status (1)

Country Link
CN (1) CN108170550A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109819A (en) * 2019-03-16 2019-08-09 平安城市建设科技(深圳)有限公司 Using processing method, device, equipment and the readable storage medium storing program for executing debugged extremely
CN110297655A (en) * 2019-06-21 2019-10-01 百度在线网络技术(北京)有限公司 Generate method, apparatus, equipment and the storage medium of service packs
CN111367698A (en) * 2018-12-26 2020-07-03 北京微播视界科技有限公司 Application program flash back detection and processing method and device and electronic equipment
CN111858113A (en) * 2019-04-30 2020-10-30 北京达佳互联信息技术有限公司 Application program repairing method, device, service system and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150074367A1 (en) * 2013-09-09 2015-03-12 International Business Machines Corporation Method and apparatus for faulty memory utilization
CN105430681A (en) * 2015-11-04 2016-03-23 努比亚技术有限公司 Automatic abnormity upload and recovery methods, automatic abnormity upload device and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150074367A1 (en) * 2013-09-09 2015-03-12 International Business Machines Corporation Method and apparatus for faulty memory utilization
CN105430681A (en) * 2015-11-04 2016-03-23 努比亚技术有限公司 Automatic abnormity upload and recovery methods, automatic abnormity upload device and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
惊仙: "解决APP连续闪退的方案", 《简书博客 HTTPS://WWW.JIANSHU.COM/P/5DCE9A467270》 *
赤色追风: "漫谈iOS Crash收集框架", 《简书博客 HTTPS://WWW.JIANSHU.COM/P/161FE7EA8469》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367698A (en) * 2018-12-26 2020-07-03 北京微播视界科技有限公司 Application program flash back detection and processing method and device and electronic equipment
CN110109819A (en) * 2019-03-16 2019-08-09 平安城市建设科技(深圳)有限公司 Using processing method, device, equipment and the readable storage medium storing program for executing debugged extremely
CN111858113A (en) * 2019-04-30 2020-10-30 北京达佳互联信息技术有限公司 Application program repairing method, device, service system and storage medium
CN111858113B (en) * 2019-04-30 2024-03-12 北京达佳互联信息技术有限公司 Application program repairing method and device, service system and storage medium
CN110297655A (en) * 2019-06-21 2019-10-01 百度在线网络技术(北京)有限公司 Generate method, apparatus, equipment and the storage medium of service packs
CN110297655B (en) * 2019-06-21 2023-06-06 百度在线网络技术(北京)有限公司 Method, device, equipment and storage medium for generating patch package

Similar Documents

Publication Publication Date Title
CN108170550A (en) The method, apparatus and equipment of abnormality processing
CN104765678B (en) The method and device tested the application on mobile terminal device
CN105144074B (en) It is stored using the block of hybrid memory device
CN107894949A (en) The method, apparatus and equipment of abnormality processing
US9396092B1 (en) Software testing with feedback acquisition
CN108287775A (en) A kind of method, apparatus, equipment and the storage medium of server failure detection
CN108268364A (en) Anomalous event back method, device and equipment
CN110908913B (en) Test method and device of return visit robot, electronic equipment and storage medium
KR20160000758A (en) Fault Injection testing apparatus and method
WO2010037814A4 (en) A computerised storage system comprising replaceable units for managing testing of replacement units
US9886374B1 (en) Virtual device farm for software testing
CN107679423A (en) Partition integrity inspection method and device
CN108170605A (en) Submission method, client and the computer readable storage medium of bug information
CN109934267B (en) Model detection method and device
CN106502665A (en) A kind of restorative procedure of application program and device
CN115168203A (en) Interface simulation method, device, system, computer equipment and storage medium
CN109146558A (en) A kind of method and apparatus identifying spurious motion step number
US20160041900A1 (en) Testing integrated business systems
CN115190293A (en) Dial testing method and device, electronic equipment and computer storage medium
CN114328158A (en) Abnormity monitoring method and device, electronic equipment and storage medium
CN114816815A (en) Fault positioning method, log format configuration method, equipment and storage medium
US8265975B2 (en) Adaptive project based practice selection schemes in a computing environment
CN113821443A (en) Application program function detection method, device, equipment and storage medium
CN110221952B (en) Service data processing method and device and service data processing system
CN102236748A (en) Computer software protection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180615

RJ01 Rejection of invention patent application after publication