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
Embodiment 1
[0046] This embodiment provides a method for automatically repairing program crash defects based on the analysis of question-and-answer websites. The method will be described in detail below:
[0047] S101. Obtain a plurality of related web pages according to the crash trace when the program crashes; wherein, the related web pages include defect codes describing the crash and repair codes for repairing the crash. The sub-steps included in step S101 will be expanded and described below.
[0048] S1011. Extract the information in the crash trace generated when the program crashes.
[0049] When a program crashes, a crash message is generated. A program that crashes can be implemented in the following way:
[0050]
[0051] A crash occurs at line 31 in the program below, and its crash trace can be implemented as follows:
[0052]
[0053] Among them, lines 1 and 13 are the description information of the crash. Lines 2-12, 14-18 represent two stack traces. Extract the ...
Embodiment 2
[0092] In order to check the repair effect of the present invention, preferably, select the Android program set on GitHub (a distributed version control system), and apply the method for automatically repairing the program crash defect based on the Q&A website analysis provided by the application embodiment one to the Android program set. Program crashes are fixed. The experimental assembly information on GitHub is shown in Table 1, the number and correctness of the patches generated by the repair are shown in Table 2, and the repair time spent on the repair is shown in Table 3.
[0093] Table 1 Experimental assemblies on GitHub
[0094]
[0095] Table 2 The patch and correctness generated by the repair
[0096]
[0097]
[0098] Table 3 Repair time
[0099]
[0100]
[0101] Among them, Table 1 counts the assembly information selected on GitHub, and the program size ranges from a few hundred lines to tens of thousands of lines. The "bug report number" is t...
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, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com