Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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-repair the application program without relying on personnel operation when it crashes

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

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

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products