Automatic analysis method and system for collapse file under Linux

An automatic analysis and file technology, which is applied to the automatic analysis of crash files under Linux and the system field, can solve the problems of difficult restoration of real-time debugging scenarios, time-consuming, laborious, and cumbersome debugging information, etc.

Inactive Publication Date: 2017-04-26
STATE GRID INTELLIGENCE TECH CO LTD
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] It is time-consuming and laborious to filter out the required debugging information from a large amount of normal and abnormal information; the biggest difficulty in real-time debugging is that it is difficult to completely restore the scene where the problem occurred, and the problem cannot be reproduced; debugging the dump file is more difficult than the previous two methods It is more convenient and quicker, but it also requires people to judge the problem point. If you analyze multiple programs at the same time, it is more cumbersome

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
  • Automatic analysis method and system for collapse file under Linux

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0060] Such as figure 1 As shown, a crash file automatic analysis method under Linux comprises the following steps:

[0061] 1 Compile the code with specific parameters and start the program;

[0062] 2 start the program;

[0063] 3. Detect the generation of the memory dump file, and start the gdb tool to analyze the memory dump file;

[0064] 4 After starting gdb, enter the bt command to display the stack content;

[0065] #0 0x001d2a40in CFigureMenuItemBase::Draw(this=0x5f4fd50, bSel=-1093630660) at MenuItem.cpp:138

[0066] The contents separated by spaces are

[0067] Serial number memory address class name function name function entry address in code, parameter address code file name: line number

[0068]5. Analyze the required content from the stack content and write it into the statistical report.

[0069] Although the specific implementat...

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 discloses an automatic analysis method and system for a collapse file under Linux. The method comprises the following steps: carrying out compiling by using a preset parameter pair or a c++ source code line to generate a running program prog; setting a detection period of a memory dump file; running the program prog; if the program has an error in running, generating a memory dump file named by 'core. process No.' under a running catalogue, detecting whether the memory dump file exists according to the set detection period, if the memory dump file exists, transferring the memory dump file into a temporary catalogue, analyzing the memory dump file by using a script and a gdb debugging program to locate an error position of the program, and deleting the memory dump file after the analysis is completed; and generating a statistical report by using the script according to a result obtained by the analysis in the step (5). The report generated based on the automatic analysis method can count the number of times when the error occurs and the position of an error code and supply a more powerful support to the priority level for error fixing.

Description

technical field [0001] The invention relates to a crash file automatic analysis method and system under Linux. Background technique [0002] Commonly used program debugging methods under the Linux system are as follows: [0003] 1. Add debugging information to the program, write the variable value into the log file for some variables that need attention, check the log file after the program is executed, and analyze the execution steps and results of the program. [0004] Second, use gdb to debug the program. After using gdb to load the program, set a breakpoint, execute single-step to observe the execution output, or check the execution result through the command output variable information after execution reaches the breakpoint. [0005] 3. After the program crashes, a memory dump file is generated. Debug the dump file through gdb, check the code execution sequence and memory stack information, and analyze the source code to locate the problem. [0006] It is time-consumi...

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/36
CPCG06F11/366G06F11/3628
Inventor 傅晓冯飞崔丽蓉张晓花傅孟潮
Owner STATE GRID INTELLIGENCE TECH CO LTD
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