Method for automatically repairing program crash defect based on question-answer website analysis
A technology for automatic repair and question-and-answer websites, applied in the field of automatic repair of program crash defects based on analysis of question-and-answer websites
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Example Embodiment
[0045] Example one
[0046] This embodiment provides a method for automatically repairing program crash defects based on analysis of question and answer websites. The method will be described in detail below:
[0047] S101. Obtain multiple related webpages according to the crash trace when the program crashes; wherein the related webpages contain defect codes describing the crash and repair codes for repairing the crash. The following will expand the description of the sub-steps included in step S101.
[0048] S1011, extract the information in the crash trace generated when the program crashes.
[0049] When a program crashes, a crash message is generated. The program that crashes can be implemented in the following way:
[0050]
[0051] The 31 line of the next program crashes, and the crash trace can be realized in the following way:
[0052]
[0053] Among them, the first line and the 13th line are the description of the crash. Lines 2-12 and 14-18 represent two stack traces. Ext...
Example Embodiment
[0091] Example two
[0092] In order to test the repair effect of the present invention, preferably, the Android assembly on GitHub (a distributed version control system) is selected, and the method for automatically repairing the program crash defect based on the analysis of the question-and-answer website provided in the first embodiment is applied to the Android assembly. The program crashed to be repaired. The experimental assembly information on GitHub is shown in Table 1, the number and correctness of the patch produced by the repair are shown in Table 2, and the repair time spent in the repair is shown in Table 3.
[0093] Table 1 Experimental assembly on GitHub
[0094]
[0095] Table 2 Patches and correctness of repair
[0096]
[0097]
[0098] Table 3 Repair time
[0099]
[0100]
[0101] Among them, Table 1 counts the selected assembly information on GitHub, and the size of the program ranges from a few hundred lines to tens of thousands of lines. The "Bug Report Number...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap