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

Inactive Publication Date: 2016-02-17
PEKING UNIV
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is: how to self-r

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for automatically repairing program crash defect based on question-answer website analysis
  • Method for automatically repairing program crash defect based on question-answer website analysis
  • Method for automatically repairing program crash defect based on question-answer website analysis

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of computer software, and discloses a method for automatically repairing a program crash defect based on question-answer website analysis. The method comprises the steps of obtaining multiple related web pages according to a crash track when a program crashes, wherein each related web page comprises a defect code for describing the crash and a repairing code for repairing the crash; extracting a fragment of the defect code and a fragment of the repairing code in each related web page; generating an edit script for repairing the crash according to the fragment of the defect code and the fragment of the repairing code; determining the position of an error code in a program source code according to the crash track and the defect code, and applying the edit script to repair the error code. According to the method disclosed by the invention, a repairing scheme can be automatically searched on the related web pages according to the crash track, and the corresponding edit script can be generated for repairing the crash, so as to get rid of the dependency on an operator during a repairing process, automatic repairing is realized, and the repairing accuracy is higher.

Description

technical field [0001] The invention relates to the technical field of computer software, in particular to a method for automatically repairing program crash defects based on analysis of question-and-answer websites. Background technique [0002] When the computer system executes the process of the application program, it is inevitable that due to the reasons of the process of the application program itself, such as division by zero error, stack overflow, memory out of bounds or null pointer, etc. A program crash occurs. Once the program crashes, people will not be able to continue using the application, which brings a lot of inconvenience to the user's work and life. Therefore, the self-healing ability of an application after a crash is also a very important factor for the application. [0003] At present, the existing technologies related to program crash defects are mainly aimed at the positioning, recovery and repair inspection of crash defects. Developers need to manu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/07G06F11/36
CPCG06F11/0793G06F11/3612
Inventor 高庆张汉生王杰熊英飞张路梅宏
Owner PEKING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products