Font Size: a A A

Design And Implementation Of Fault Location Tool Based On Trajectory Monitoring

Posted on:2023-06-20Degree:MasterType:Thesis
Country:ChinaCandidate:Y LiFull Text:PDF
GTID:2558307061454194Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the diversification of software development and deployment environments and the rapid growth of software complexity,it becomes increasingly difficult to monitor and analyze the software execution process.In particular,the occurrence,recording and locating of faults are an indispensable step in software error correction,and the cost is fast.Growth,efficiency is difficult to improve.Automated fault location tools can simplify the fault location process,reduce operator requirements,improve fault location efficiency,and reduce software development and maintenance costs.Aiming at the problem of automatic fault location,this subject firstly studies the program trajectory acquisition method based on dynamic instrumentation,designs a fault location method based on trajectory monitoring on the basis of the obtained trajectory,and designs and implements the fault location based on trajectory monitoring.The tool is mainly used in the fault location phase in the software testing process.The main work includes:(1)Research program running trajectory monitoring technology,which can obtain the running trajectory information of the program to be tested without source code.Through the dynamic instrumentation technology,the program under test can be instrumented without restart and the bytecode stream can be directly manipulated during the class loading process,and the code for trajectory monitoring is inserted into it,and the program source code file No impact,reducing the cost of trajectory monitoring.(2)Research the fault location method based on trajectory monitoring,make full use of the running trajectory information of the program under test obtained during the trajectory monitoring process,preprocess it,and construct the function call tree and statement block control flow graph from it,and use this to calculate related methods,the suspicious degree value of the statement block,to improve the accuracy of fault location.(3)According to the trajectory monitoring technology and fault location method,a fault location tool based on trajectory monitoring is designed and developed,which has the functions of trajectory monitoring,fault location and result file management.The intermediate process of fault location is simplified,the disordered or extensive checking process of code files or execution logs is avoided,and the efficiency of fault location is improved.(4)The effectiveness of trajectory monitoring and fault location is verified.Taking typical open source projects and Siemens test data sets as examples,the implemented tools implement trajectory monitoring and fault location activities.The experimental results show that the tools have no impact on the original functions of the program to be tested,and can correctly obtain running trajectory information;fault location is accurate The rate is better than the traditional fault location method based on program spectrum.
Keywords/Search Tags:Track monitoring, Dynamic instrumentation, Fault location
PDF Full Text Request
Related items