CN106708704A - Method and device for classifying crash logs - Google Patents
Method and device for classifying crash logs Download PDFInfo
- Publication number
- CN106708704A CN106708704A CN201611207964.9A CN201611207964A CN106708704A CN 106708704 A CN106708704 A CN 106708704A CN 201611207964 A CN201611207964 A CN 201611207964A CN 106708704 A CN106708704 A CN 106708704A
- Authority
- CN
- China
- Prior art keywords
- collapse
- information
- crash log
- crash
- species
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
- G06F11/3072—Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method and device for classifying crash logs. The method includes: acquiring to-be-classified crash logs; extracting information, indicating crash kinds, from the to-be-classified crash logs; processing the extracted information with an appointed method, and using each obtained processing result as the classification identification code of the corresponding crash log; classifying the crash logs with the same classification identification code into the same category. The method has the advantages that the useful information in the crash logs are reasonably utilized, a developer can be helped to fast classify identical or similar kinds of crash logs in massive crash logs, and accordingly an original application can be correctly repaired and improved.
Description
Technical field
The present invention relates to field of computer technology, and in particular to a kind of method and apparatus classified to crash log.
Background technology
Crash log is the log information recorded in application crash.These log informations contribute to developer to understand
The concrete condition of collapse, to be modified to application program.However, the client of each application program may collapse
Burst, and then produce crash log, then, for developer, the quantity of its crash log that can be got is magnanimity,
If carrying out effective classification to massive logs, developer can be helped to lift the treatment effeciency of daily record.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
State the method and apparatus classified to crash log of problem.
According to one aspect of the present invention, there is provided a kind of method classified to crash log, including:
Obtain crash log to be sorted;
The information of sign collapse species is extracted from crash log to be sorted;
The information of the sign collapse species to extracting carries out the treatment of designation method, the result that will be obtained as this
The class indication code of crash log;
Class indication code identical crash log is divided under same classification.
Alternatively, at least one during the information of the sign collapse species is included as follows:
Collapse signal, the function call stack information of collapse.
Alternatively, at least one during the function call stack information of the collapse is included as follows:
The title of the module collapsed;
Skew of the collapse point in the module collapsed;
Collapse function name;
Collapse the module title in source.
Alternatively, the information of the described pair of sign collapse species of extraction carries out the treatment of designation method includes:
The information of the sign collapse species that will be extracted is spliced in a designated order, obtains corresponding character string.
Alternatively, the information of the described pair of sign collapse species of extraction carries out the treatment of designation method also includes:
The character string is calculated with specified hash algorithm, corresponding cryptographic Hash is obtained.
Alternatively, the crash log is the crash log of Native layers of Android application.
Alternatively, acquisition crash log to be sorted includes:
Receive the crash log of at least one Android applications client transmission.
According to another aspect of the present invention, there is provided a kind of device classified to crash log, including:
Crash log acquiring unit, is suitable to obtain crash log to be sorted;
Information extraction unit, is suitable to be extracted from crash log to be sorted the information of sign collapse species;
Information process unit, is suitable to the treatment that the information of the sign collapse species to extracting carries out specified device, will obtain
Result as this crash log class indication code;
Taxon, is suitable to be divided to class indication code identical crash log under same classification.
Alternatively, at least one during the information of the sign collapse species is included as follows:
Collapse signal, the function call stack information of collapse.
Alternatively, at least one during the function call stack information of the collapse is included as follows:
The title of the module collapsed;
Skew of the collapse point in the module collapsed;
Collapse function name;
Collapse the module title in source.
Alternatively, described information processing unit, the information for being suitable to the sign collapse species that will be extracted is spliced in a designated order,
Obtain corresponding character string.
Alternatively, described information processing unit, is suitable to calculate the character string with specified hash algorithm, obtains
Corresponding cryptographic Hash.
Alternatively, the crash log is the crash log of Native layers of Android application.
Alternatively, the crash log acquiring unit, is suitable to receive the collapse that at least one Android applications client sends
Daily record.
From the foregoing, technical scheme, after crash log is got, therefrom extracts sign collapse species
Information and the treatment of designation method is carried out to it, the result for obtaining as this crash log class indication code, will
Class indication code identical daily record is divided into a class.The technical scheme reasonably make use of the useful information in crash log, can
Classified with helping developer that the same or like daily record of type quickly will be collapsed from massive logs, so that further to original
Using correctly being repaired and improved.
Described above is only the general introduction of technical solution of the present invention, in order to better understand technological means of the invention,
And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows that a kind of flow of method classified to crash log according to an embodiment of the invention is illustrated
Figure;
Fig. 2 shows a kind of structural representation of device classified to crash log according to an embodiment of the invention
Figure.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.Conversely, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Fig. 1 shows that a kind of flow of method classified to crash log according to an embodiment of the invention is illustrated
Figure, as shown in figure 1, the method includes:
Step S110, obtains crash log to be sorted.
Step S120, extracts the information of sign collapse species from crash log to be sorted.
Step S130, the information of the sign collapse species to extracting carries out the treatment of designation method, the treatment knot that will be obtained
Really as the class indication code of this crash log.
Step S140, class indication code identical crash log is divided under same classification.
It can be seen that, the method shown in Fig. 1 after crash log is got, therefrom extracts the information of sign collapse species simultaneously
The treatment of designation method is carried out to it, the result for obtaining as this crash log class indication code, by class indication
Code identical daily record is divided into a class.The technical scheme reasonably make use of the useful information in crash log, can help out
Originator quickly will be collapsed the same or like daily record of type from massive logs and be classified, so as to further be carried out to original application
It is correct to repair and improve.
In one embodiment of the invention, in the method shown in Fig. 1, during the information of sign collapse species is included as follows
It is at least one:Collapse signal, the function call stack information of collapse.
Collapse signal (crash_signal) can indicate one collapse because which type of signal and occur, therefore
Can be used for the species of sign collapse.An example for the function call stack information of collapse is given below:
#00pc crash_module_offset crash_module_name(crash_function_name)
#01pc module_offset module_name(function1_name)
#02pc module_offset module_name(function2_name)
…………
…………
#n pc start_module_offset start_module_name(start_function_name)
Wherein, the call relation of whole function is called since start_function ... ..., and .function2 is called
Function1, function1 recall crash_function, and collapse has eventually occurred in crash_function the insides.
That is, the call relation of whole function call stack is from bottom to top.
Further, it is also possible to find out, there is much information to can be used for sign collapse species in the function call stack information of collapse.
Therefore in one embodiment of the invention, in the above method, the function call stack information of collapse include it is following at least one
Kind:The title (Crash_module_name) of the module collapsed;Skew of the collapse point in the module collapsed
(Crash_module_offset);Collapse function name (Crash_function_name);Collapse the module title in source
(start_module_name).In the above example, these information are included in the function call stack information of collapse.
In one embodiment of the invention, in the above method, the information of the sign collapse species to extracting is specified
The treatment of method includes:The information of the sign collapse species that will be extracted is spliced in a designated order, obtains corresponding character string.
For example, carrying out following treatment:
Crash_type_string (character string that the information of sign collapse species is spliced)=crash_signal
(collapse signal)+Crash_module_name (title of the module collapsed)+Crash_module_offset (collapse points
Skew in the module collapsed)+start_module_name (module title in collapse source), wherein, all kinds of signs
The splicing order for collapsing the information of species can be preset.
By being processed as above, the character string that the information of sign collapse species is spliced is obtained, but this character string can
Can be long, it is not suitable as final class indication code.Therefore in one embodiment of the invention, in the above method, to carrying
The treatment that the information of the sign collapse species for taking carries out designation method also includes:In terms of being carried out by specified hash algorithm to character string
Calculate, obtain corresponding cryptographic Hash.
For example, Crash_type_hash=hash { crash_type_string }, the cryptographic Hash for so obtaining was both
It is also shorter with confidentiality.
In one embodiment of the invention, in the above method, crash log is the collapse of Native layers of Android application
Daily record.
Native (local) layer generally includes local service and some chained libraries.The characteristics of JAVA language is, Ke Yitong
JNI (Java Native Interface, JAVA local interface) is crossed to be communicated with other language.Native layers of a spy
Point is exactly to be realized by C and C Plus Plus.For example, when a complex calculation is performed, if going to realize by JAVA codes, that
Efficiency can be very low, can now select to go to realize by C or C++ codes, then with the JAVA code communications on upper strata.And example
As equipment needs operation, then must be interacted with the hardware driving of bottom, also to be realized by Native layers.For game
Etc. for Android application, it is necessary to using library files such as substantial amounts of SO, DLL, Native layers of crash log is for the maintenance applied
There is greatly effect with later development.
In one embodiment of the invention, in the above method, obtaining crash log to be sorted includes:Receive at least one
The crash log that individual Android applications client sends.
Wherein, Android applications client can be mounted so as on intelligent terminal by the Android apk of consolidation process
Arrive.A shell is generally included by the Android apk of consolidation process, performing file, SO library files to dex therein enters
The reason for row reinforcing, collapse is probably the defect (Bug) that Android apk exists in itself, it is also possible to the bug that shell occurs.
For example, shell can include a finger daemon, finger daemon is handed over by ptrace system interfaces with collapse process
Mutually.Ptrate can provide host process and observe and control the ability that its subprocess (such as finger daemon) is performed, and allow master
The value of the kernel mirror image (including register) of process check and replacement subprocess.Its general principle is:When used ptrace with
After track, it is all be sent to tracked subprocess signal (except SIGKILL, SIGKILL signals can not be captured, block or
Person ignores), host process can be all forwarded to, and subprocess can then be blocked, at this moment the state of subprocess will be marked by system
It is TASK_TRACED.And after host process receives signal, it is possible to the subprocess to stopping checked and changed, then
Subprocess is allowed to continue to run with.Specifically, finger daemon can progressively be returned using debug codes in SO files by system call stack
Trace back, to position the position of collapse function in application crashes, facilitate the lookup and modification of follow-up Bug, and then improve shell
File and the compatibility of application program and the stability of application operation.Obtained from collapse function call stack information, as
It is described previously, it is from bottom to top.In one embodiment, Android applications client sends it every Preset Time by mail
Acquired crash log, can remind developer to check crash info in time, it is determined that collapse position, and search collapse original
Cause.
Fig. 2 shows a kind of structural representation of device classified to crash log according to an embodiment of the invention
Figure, as shown in Fig. 2 the device 200 classified to crash log includes:
Crash log acquiring unit 210, is suitable to obtain crash log to be sorted.
Information extraction unit 220, is suitable to be extracted from crash log to be sorted the information of sign collapse species.
Information process unit 230, is suitable to the treatment that the information of the sign collapse species to extracting carries out specified device, will
The result for arriving as this crash log class indication code.
Taxon 240, is suitable to be divided to class indication code identical crash log under same classification.
It can be seen that, the device shown in Fig. 2, by the mutual cooperation of each unit, after crash log is got, is therefrom extracted
Sign is collapsed the information of species and the treatment of designation method is carried out to it, and the result for obtaining is divided as this crash log
Class identification code, a class is divided into by class indication code identical daily record.The technical scheme reasonably make use of in crash log
Useful information, can help developer that the same or like daily record of type quickly will be collapsed from massive logs and classify, from
And further original application is correctly repaired and improved.
In one embodiment of the invention, in the device shown in Fig. 2, during the information of sign collapse species is included as follows
It is at least one:Collapse signal, the function call stack information of collapse.
Collapse signal (crash_signal) can indicate one collapse because which type of signal and occur, therefore
Can be used for the species of sign collapse.An example for the function call stack information of collapse is given below:
#00pc crash_module_offset crash_module_name(crash_function_name)
#01pc module_offset module_name(function1_name)
#02pc module_offset module_name(function2_name)
…………
…………
#n pc start_module_offset start_module_name(start_function_name)
Wherein, the call relation of whole function is called since start_function ... ..., and .function2 is called
Function1, function1 recall crash_function, and collapse has eventually occurred in crash_function the insides.
That is, the call relation of whole function call stack is from bottom to top.
Further, it is also possible to find out, there is much information to can be used for sign collapse species in the function call stack information of collapse.
Therefore in one embodiment of the invention, in said apparatus, the function call stack information of collapse include it is following at least one
Kind:The title (Crash_module_name) of the module collapsed;Skew of the collapse point in the module collapsed
(Crash_module_offset);Collapse function name (Crash_function_name);Collapse the module title in source
(start_module_name).In the above example, these information are included in the function call stack information of collapse.
In one embodiment of the invention, in the device shown in Fig. 2, information process unit 220 is suitable to the mark that will be extracted
Show that the information of collapse species is spliced in a designated order, obtain corresponding character string.For example, carrying out following treatment:
Crash_type_string (character string that the information of sign collapse species is spliced)=crash_signal
(collapse signal)+Crash_module_name (title of the module collapsed)+Crash_module_offset (collapse points
Skew in the module collapsed)+start_module_name (module title in collapse source), wherein, all kinds of signs
The splicing order for collapsing the information of species can be preset.
By being processed as above, the character string that the information of sign collapse species is spliced is obtained, but this character string can
Can be long, it is not suitable as final class indication code.Therefore in one embodiment of the invention, in said apparatus, information
Processing unit, is suitable to calculate character string with specified hash algorithm, obtains corresponding cryptographic Hash.
For example, Crash_type_hash=hash { crash_type_string }, the cryptographic Hash for so obtaining was both
It is also shorter with confidentiality.
In one embodiment of the invention, in said apparatus, crash log is the collapse of Native layers of Android application
Daily record.
Native (local) layer generally includes local service and some chained libraries.The characteristics of JAVA language is, Ke Yitong
JNI (Java Native Interface, JAVA local interface) is crossed to be communicated with other language.Native layers of a spy
Point is exactly to be realized by C and C Plus Plus.For example, when a complex calculation is performed, if going to realize by JAVA codes, that
Efficiency can be very low, can now select to go to realize by C or C++ codes, then with the JAVA code communications on upper strata.And example
As equipment needs operation, then must be interacted with the hardware driving of bottom, also to be realized by Native layers.For game
Etc. for Android application, it is necessary to using library files such as substantial amounts of SO, DLL, Native layers of crash log is for the maintenance applied
There is greatly effect with later development.
In one embodiment of the invention, in said apparatus, crash log acquiring unit is suitable to receive at least one peace
The crash log that tall and erect applications client sends.
Wherein, Android applications client can be mounted so as on intelligent terminal by the Android apk of consolidation process
Arrive.A shell is generally included by the Android apk of consolidation process, performing file, SO library files to dex therein enters
The reason for row reinforcing, collapse is probably the defect (Bug) that Android apk exists in itself, it is also possible to the bug that shell occurs.
For example, shell can include a finger daemon, finger daemon is handed over by ptrace system interfaces with collapse process
Mutually.Ptrate can provide host process and observe and control the ability that its subprocess (such as finger daemon) is performed, and allow master
The value of the kernel mirror image (including register) of process check and replacement subprocess.Its general principle is:When used ptrace with
After track, it is all be sent to tracked subprocess signal (except SIGKILL, SIGKILL signals can not be captured, block or
Person ignores), host process can be all forwarded to, and subprocess can then be blocked, at this moment the state of subprocess will be marked by system
It is TASK_TRACED.And after host process receives signal, it is possible to the subprocess to stopping checked and changed, then
Subprocess is allowed to continue to run with.Specifically, finger daemon can progressively be returned using debug codes in SO files by system call stack
Trace back, to position the position of collapse function in application crashes, facilitate the lookup and modification of follow-up Bug, and then improve shell
File and the compatibility of application program and the stability of application operation.Obtained from collapse function call stack information, as
It is described previously, it is from bottom to top.In one embodiment, Android applications client sends it every Preset Time by mail
Acquired crash log, can remind developer to check crash info in time, it is determined that collapse position, and search collapse original
Cause.
In sum, technical scheme, after crash log is got, therefrom extracts sign collapse species
Information simultaneously carries out the treatment of designation method to it, the result for obtaining as this crash log class indication code, will point
The same daily record of class mark code-phase is divided into a class.The technical scheme reasonably make use of the useful information in crash log, can be with
Help developer quickly will to collapse the same or like daily record of type from massive logs to classify, so that further should to original
With correctly being repaired and improved.
It should be noted that:
Algorithm and display be not inherently related to any certain computer, virtual bench or miscellaneous equipment provided herein.
Various fexible units can also be used together with based on teaching in this.As described above, construct required by this kind of device
Structure be obvious.Additionally, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various
Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this hair
Bright preferred forms.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify one or more that the disclosure and helping understands in each inventive aspect, exist
Above to the description of exemplary embodiment of the invention in, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, and wherein each claim is in itself
All as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Unit or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, can use any
Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can the alternative features of or similar purpose identical, equivalent by offer carry out generation
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection is appointed
One of meaning mode can be used in any combination.
All parts embodiment of the invention can be realized with hardware, or be run with one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) realize the dress classified to crash log according to embodiments of the present invention
The some or all functions of some or all parts in putting.The present invention is also implemented as described here for performing
Method some or all equipment or program of device (for example, computer program and computer program product).This
Sample realizes that program of the invention can be stored on a computer-readable medium, or can have one or more signal
Form.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or with any other
Form is provided.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol being located between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element is not excluded the presence of as multiple
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
Embodiment of the invention discloses that A1, a kind of method classified to crash log, wherein, the method includes:
Obtain crash log to be sorted;
The information of sign collapse species is extracted from crash log to be sorted;
The information of the sign collapse species to extracting carries out the treatment of designation method, the result that will be obtained as this
The class indication code of crash log;
Class indication code identical crash log is divided under same classification.
A2, the method as described in A1, wherein, the information of the sign collapse species include it is following at least one:
Collapse signal, the function call stack information of collapse.
A3, the method as described in A2, wherein, the function call stack information of the collapse include it is following at least one:
The title of the module collapsed;
Skew of the collapse point in the module collapsed;
Collapse function name;
Collapse the module title in source.
A4, the method as described in A1, wherein, the information of the described pair of sign collapse species of extraction carries out the place of designation method
Reason includes:
The information of the sign collapse species that will be extracted is spliced in a designated order, obtains corresponding character string.
A5, the method as described in A4, wherein, the information of the described pair of sign collapse species of extraction carries out the place of designation method
Reason also includes:
The character string is calculated with specified hash algorithm, corresponding cryptographic Hash is obtained.
A6, the method as any one of A1-A5, wherein, the crash log is Native layer of Android application
Crash log.
A7, the method as described in A6, wherein, acquisition crash log to be sorted includes:
Receive the crash log of at least one Android applications client transmission.
Embodiments of the invention also disclose B8, a kind of device classified to crash log, wherein, the device bag
Include:
Crash log acquiring unit, is suitable to obtain crash log to be sorted;
Information extraction unit, is suitable to be extracted from crash log to be sorted the information of sign collapse species;
Information process unit, is suitable to the treatment that the information of the sign collapse species to extracting carries out specified device, will obtain
Result as this crash log class indication code;
Taxon, is suitable to be divided to class indication code identical crash log under same classification.
B9, the device as described in B8, wherein, the information of the sign collapse species include it is following at least one:
Collapse signal, the function call stack information of collapse.
B10, the device as described in B9, wherein, the function call stack information of the collapse include it is following at least one:
The title of the module collapsed;
Skew of the collapse point in the module collapsed;
Collapse function name;
Collapse the module title in source.
B11, the device as described in B8, wherein,
Described information processing unit, the information for being suitable to the sign collapse species that will be extracted is spliced in a designated order, obtains phase
The character string answered.
B12, the device as described in B11, wherein,
Described information processing unit, is suitable to calculate the character string with specified hash algorithm, obtains corresponding
Cryptographic Hash.
B13, the device as any one of B8-B12, wherein, the crash log is Native layer of Android application
Crash log.
B14, the device as described in B13, wherein,
The crash log acquiring unit, is suitable to receive the crash log that at least one Android applications client sends.
Claims (10)
1. a kind of method classified to crash log, wherein, the method includes:
Obtain crash log to be sorted;
The information of sign collapse species is extracted from crash log to be sorted;
The information of the sign collapse species to extracting carries out the treatment of designation method, and the result that will be obtained is collapsed as this
The class indication code of daily record;
Class indication code identical crash log is divided under same classification.
2. at least one during the method for claim 1, wherein the information of the sign collapse species is included as follows:
Collapse signal, the function call stack information of collapse.
3. method as claimed in claim 2, wherein, the function call stack information of the collapse include it is following at least one
Kind:
The title of the module collapsed;
Skew of the collapse point in the module collapsed;
Collapse function name;
Collapse the module title in source.
4. the method for claim 1, wherein the information of the described pair of sign collapse species of extraction carries out designation method
Treatment includes:
The information of the sign collapse species that will be extracted is spliced in a designated order, obtains corresponding character string.
5. method as claimed in claim 4, wherein, the information of the described pair of sign collapse species of extraction carries out designation method
Treatment also includes:
The character string is calculated with specified hash algorithm, corresponding cryptographic Hash is obtained.
6. the method as any one of claim 1-5, wherein, the crash log is Native layers of Android application
Crash log.
7. method as claimed in claim 6, wherein, it is described to obtain crash log to be sorted and include:
Receive the crash log of at least one Android applications client transmission.
8. a kind of device classified to crash log, wherein, the device includes:
Crash log acquiring unit, is suitable to obtain crash log to be sorted;
Information extraction unit, is suitable to be extracted from crash log to be sorted the information of sign collapse species;
Information process unit, is suitable to the treatment that the information of the sign collapse species to extracting carries out specified device, the place that will be obtained
Manage class indication code of the result as this crash log;
Taxon, is suitable to be divided to class indication code identical crash log under same classification.
9. device as claimed in claim 8, wherein, the information of the sign collapse species include it is following at least one:
Collapse signal, the function call stack information of collapse.
10. device as claimed in claim 9, wherein, the function call stack information of the collapse include it is following at least one
Kind:
The title of the module collapsed;
Skew of the collapse point in the module collapsed;
Collapse function name;
Collapse the module title in source.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611207964.9A CN106708704B (en) | 2016-12-23 | 2016-12-23 | Method and device for classifying crash logs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611207964.9A CN106708704B (en) | 2016-12-23 | 2016-12-23 | Method and device for classifying crash logs |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106708704A true CN106708704A (en) | 2017-05-24 |
CN106708704B CN106708704B (en) | 2021-01-12 |
Family
ID=58903747
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611207964.9A Active CN106708704B (en) | 2016-12-23 | 2016-12-23 | Method and device for classifying crash logs |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106708704B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108459921A (en) * | 2018-02-23 | 2018-08-28 | 北京奇艺世纪科技有限公司 | Collapse file memory method, device and electronic equipment |
CN109032909A (en) * | 2018-07-18 | 2018-12-18 | 携程旅游信息技术(上海)有限公司 | Processing method, system, equipment and the storage medium of application crash log |
CN109815152A (en) * | 2019-01-31 | 2019-05-28 | 科大讯飞股份有限公司 | Program crashing type prediction method and system |
CN110489345A (en) * | 2019-08-08 | 2019-11-22 | 北京字节跳动网络技术有限公司 | A kind of collapse polymerization, device, medium and equipment |
CN110618888A (en) * | 2019-08-01 | 2019-12-27 | 平安科技(深圳)有限公司 | Method and related device for repeatedly identifying system errors |
CN111061583A (en) * | 2019-11-15 | 2020-04-24 | 腾讯科技(深圳)有限公司 | Crash information processing method, device, equipment and medium |
CN111125015A (en) * | 2019-12-20 | 2020-05-08 | 北京百度网讯科技有限公司 | Method, apparatus, terminal and medium for dump file classification |
CN117714271A (en) * | 2023-07-28 | 2024-03-15 | 荣耀终端有限公司 | Message processing method and related device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103078945A (en) * | 2013-01-07 | 2013-05-01 | 北京奇虎科技有限公司 | Method and system for processing browser crash data |
CN104516732A (en) * | 2013-09-29 | 2015-04-15 | 北京新媒传信科技有限公司 | Application crash report method and system |
US20150347220A1 (en) * | 2014-05-30 | 2015-12-03 | Crittercism, Inc. | System for Monitoring and Tracking Application Crashes Occurring on Different Mobile Devices |
CN106202305A (en) * | 2016-06-30 | 2016-12-07 | 北京北信源软件股份有限公司 | A kind of log processing method, device and Database Systems |
-
2016
- 2016-12-23 CN CN201611207964.9A patent/CN106708704B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103078945A (en) * | 2013-01-07 | 2013-05-01 | 北京奇虎科技有限公司 | Method and system for processing browser crash data |
CN104516732A (en) * | 2013-09-29 | 2015-04-15 | 北京新媒传信科技有限公司 | Application crash report method and system |
US20150347220A1 (en) * | 2014-05-30 | 2015-12-03 | Crittercism, Inc. | System for Monitoring and Tracking Application Crashes Occurring on Different Mobile Devices |
CN106202305A (en) * | 2016-06-30 | 2016-12-07 | 北京北信源软件股份有限公司 | A kind of log processing method, device and Database Systems |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108459921A (en) * | 2018-02-23 | 2018-08-28 | 北京奇艺世纪科技有限公司 | Collapse file memory method, device and electronic equipment |
CN109032909A (en) * | 2018-07-18 | 2018-12-18 | 携程旅游信息技术(上海)有限公司 | Processing method, system, equipment and the storage medium of application crash log |
CN109815152A (en) * | 2019-01-31 | 2019-05-28 | 科大讯飞股份有限公司 | Program crashing type prediction method and system |
CN110618888A (en) * | 2019-08-01 | 2019-12-27 | 平安科技(深圳)有限公司 | Method and related device for repeatedly identifying system errors |
CN110489345A (en) * | 2019-08-08 | 2019-11-22 | 北京字节跳动网络技术有限公司 | A kind of collapse polymerization, device, medium and equipment |
CN110489345B (en) * | 2019-08-08 | 2023-08-25 | 北京字节跳动网络技术有限公司 | Crash aggregation method, device, medium and equipment |
CN111061583A (en) * | 2019-11-15 | 2020-04-24 | 腾讯科技(深圳)有限公司 | Crash information processing method, device, equipment and medium |
CN111125015A (en) * | 2019-12-20 | 2020-05-08 | 北京百度网讯科技有限公司 | Method, apparatus, terminal and medium for dump file classification |
CN111125015B (en) * | 2019-12-20 | 2023-04-14 | 北京百度网讯科技有限公司 | Method, apparatus, terminal and medium for dump file classification |
CN117714271A (en) * | 2023-07-28 | 2024-03-15 | 荣耀终端有限公司 | Message processing method and related device |
Also Published As
Publication number | Publication date |
---|---|
CN106708704B (en) | 2021-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106708704A (en) | Method and device for classifying crash logs | |
CN106446691B (en) | The method and apparatus for the open source projects loophole for integrating or customizing in inspection software | |
US20100199263A1 (en) | Test case pattern matching | |
CN107357558B (en) | Method and device for constructing codes | |
CN106897197B (en) | Error log duplicate removal method and device | |
CN109947637B (en) | Automatic testing method, device, equipment and medium for webpage compatibility | |
CN113961919B (en) | Malicious software detection method and device | |
JP6440895B2 (en) | Software analysis apparatus and software analysis method | |
CN112166419A (en) | Electronic device for detecting software bugs and method for operating the same | |
CN111913878B (en) | Byte code instrumentation method, device and storage medium based on program analysis result | |
WO2015039793A1 (en) | Derivation of generalized test cases | |
US10823782B2 (en) | Ensuring completeness of interface signal checking in functional verification | |
CN111181805A (en) | Micro-service test baffle generation method and system based on test case | |
CN112306495A (en) | Picture verification method and device, computer equipment and computer-readable storage medium | |
CN105786499A (en) | Software packaging method and system | |
CN102831334A (en) | Positioning method and positioning system for target address | |
CN112083925A (en) | Data acquisition method, device, equipment and storage medium based on H5 page development | |
US20140281719A1 (en) | Explaining excluding a test from a test suite | |
CN111159028A (en) | Webpage testing method and device | |
CN106933763A (en) | Data processing method and device | |
CN112527655B (en) | Software version quality abnormality detection method and device, electronic equipment and storage medium | |
KR101824699B1 (en) | Apparatus and method for analyzing android application, and computer-readable medium storing program for method thereof | |
JP2005276040A (en) | Degrade confirming examining method and system, and program for the same | |
CN106445807B (en) | Application installation package detection method and device for intelligent terminal | |
CN114637636A (en) | UI (user interface) verification method, device, equipment and medium based on artificial intelligence |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |