Software Fault Localization Research Based on Program Semantics
- Author
- HeGuoQin
- Advisor
- ZhangDaFang
- School
- Hunan University
- Major
- Computer Science and Technology
- Classification
- TP311.53 Software Maintenance
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 28
- Citations
- 0
Abstract
With the development of computer technology and the expansion of software application, the scale and complexity of software systems rises and the rate of system failure caused by software faults continues to increase, and software reliability cannot be assured much more. It is a significant study to make the debugging automated and locate the fault in case of software failure.Spectra-based fault localization technology analyzes program runtime information, which is known as program spectra, from passing runs and failing runs, to compute the likelihood of each program entity being faulty. This lightweight fault localization takes as its only input dynamic information collected at run-time, due to its low computational complexity and no modeling cost, has been widely studied and applied.On the basis of analyzing several common program spectra, the thesis proposes a novel program spectrum-dynamic method call graph, which conveys program semantics information-call relationship between methods while program executing. Traditional way to collect program spectra is instrumentation, but it introduces too much overhead. This thesis introduces a new way, that is using aspect-oriented programming to collect program spectra. It can monitor program execution by adding a new module-aspect to the tested program. As aspect can trace the translation of method call stack while program executing, the program spectra collected can record call hierarchy between methods.With the program spectra collected, the thesis proposes a fault localization approach based on program semantics. We define a new program model-program dynamic behavior graph. In the behavior graph, edge weight represents call frequency, and the differences in successful behavior graph and failing behavior graph pinpoint suspicious fault places. Because of the big difference in the number of passing and failing test cases, it isn’t reasonable to represent behavior graph difference as call frequency difference. So we assume that the greater the edge call probability difference in the two behavior graphs is, the higher it’s suspiciousness is, compute edge’s suspiciousness as the call probability difference in the successful behavior graph and failing behavior graph, and rank method call edges according to their suspiciousness.In the end, we design and implement a prototype system, named fault localization based on program semantics. Experimental results show that, compared with traditional instrumenting way to collect program spectra, aspect-oriented programming way can reduce more than tens of times of overhead. Empirical studies prove that the fault localization technology based on program semantics can improve the accuracy of pointing bugs, and relax programmers from the burden of debugging.
Table of contents
Summary 5-6
Abstract 6-8
directory 8-11
illustrations index 11-12
attached table Index 12-13
Chapter 1 Introduction 13-18
1.1 background and significance 13-14
1.1.1 background 13-14
1.1.2 significance 14
1.2 Research Status study abroad 1.2.1 Status 14-16
14 -16
1.2.2 current research problems in 16
1.3 research 16-17
1.4 papers and chapters structural arrangements 17 - review of 18
Chapter 2 software fault localization techniques 18-29
2.1 software fault 18-20
2.1.1 bug origin 18
2.1.2 software fault exists inevitability 18-19
2.1.3 Related Terms 19-20
2.2 delta debugging techniques 20-21
2.3 program slicing 21-23
2.3.1 program slicing 21-22
2.3.2 program slicing and delta debugging combine 22 -23
2.4 neighbor model 23
2.5 model checking 23
2.6 software debugging techniques based model 23-24
2.7 based sort of fault location 24-28
2.7.1 Tarantula 25
2.7.2 Ample 25-26
2.7.3 frequent subgraph mining 26-28
2.8 Summary 28-29
collection procedures in Chapter 3 spectrum 29-36
3.1 Introduction 29
3.2 overall framework 29-30
3.3 program spectrum 30-32
3.3.1 program spectrum defined 30
3.3 .2 procedures spectral classification 30-32
3.4 selection procedure spectrum 32-33
3.5 collection procedures spectrum 33-35
3.5.1 Instrumentation technology 33
aspects 3.5.2 -oriented programming and AspectJ 33-34
3.5.3 AOP program collected spectrum 34
3.5. 4 program spectrum manifestations 34-35
3.5.5 automatic collection procedures spectrum 35
3.6 Summary 35-36
based on Chapter 4 program semantics fault location 36-46
4.1 Introduction 36
fault localization techniques proposed 4.2 36-37
4.2.1 points assuming 36-37
4.2.2 problem Description 37
4.3 general idea of ??fault localization techniques 37-39
4.3.1 design ideas 37-38
4.3.2 fault localization process 38-39
4.4 spectrum analysis procedures 39-41
4.4.1 dynamic behavior diagram creation program 39-40
4.4.2 to calculate the value of the fault suspicious 40-41
4.5 Evaluation nbsp 41-43
4.5.1 fault reporting quality ; 41-42
4.5.2 additional execution overhead 42-43
4.6 examples of verification 43-45
4.6.1 experimental procedures 43
4.6.2 collection procedures spectrum 43-44
4.6.3 build behavior diagrams 44
4.6.4 to calculate the value of the fault suspicious 44 <br / > 4.6.5 Evaluation 44-45
4.7 Summary 45-46
Chapter 5 prototype system design and experimental 46-50
5.1 system Overview 46-47
5.2 part of the module design and implementation 47
5.2.1 spectrum program collection module 47
5.2.2 spectrum Analysis program module 47
5.3 experiments and results analysis 47-49
5.3.1 experimental procedures 47-48
5.3.2 experimental results and analysis 48-49
5.4 Summary 49-50
conclusion 50-52
References 52-56
Thanks 56-57
Appendix a ( published study for a degree during the academic catalog ) 57
Related dissertations
- Design and Implementation of Uniform Interface Platform System on AOP/IoC in the Telecommunications Industry
- Research on software fault location technology based on Data Mining
- A Study to Improve CFL Based on TheDiscovery of Coincidental Correctness Test Cases
- The Study of Online Condition Assessment and Fault Localization for Large Scale Wind Turbine Based on SCADA System
- Research for Launch Vehicle Flight Performence ANA Lyse and Evaluate Methods
- Research and Application of Network Fault Intelligent Diagnosis Technology
- Automatic Translation from Name-based Pointcuts to Analysis-based Pointcuts for Robust Aspects
- Research on Methods for Generating AOP Test Cases Based on Predicate Dynamic Slicing
- Algorithm of Multiple Faults Localization in Software Debugging
- Study on Neural Network and Its Application in Software Fault Localization
- A Clustering-based Strategy to Identify Coincidental Correctness for Fault Localization
- The Implementation and Optimization of DiSL Weaver
- Aspect-oriented Programming-based Unit Test Effectiveness Detection System
- Research and Design of Automatic Software Fault Locatlization Technology in Unit Test
- Hybrid Mode of Data Validation
- Research on Coverage-Based Fault Localization for Object-Oriented Programs
- Research on Program Fault Localization Based on the Execution Path Clustering
- Research on Software Fault Localization Method Based on Fault Propagation Context Analysis
- Research on Software Debugging Techniques Based on the Combination of Machine Learning and Program Analysis
- Study on Theory and Key Technology of Photovoltaic System Operation