Dynamic memory management fault test programming language model
- Author
- ZhangHong
- Advisor
- WangLiMing
- School
- Zhengzhou University
- Major
- Computer Software and Theory
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 68
- Citations
- 1
Abstract
With the development of information technique, the software grows larger and larger. How to guarantee and improve the software quality becomes the main concerned point in the field, As one of the key techniques of guaranteeing software quality, software testing can effectively detect the faults in the system. According to the statistics, the cost of software testing accounts for 40% in the whole cost of software development. With the enlarging of software, the proportion of software testing grows larger in the software development. For some safety critical system, the cost of testing almost corresponds to the triple or quintuple cost of all other developing phase. Thus, improving the effectiveness and efficiency of testing and reducing the software developing cost becomes one of the urgent tasks for software engineers.There are two ways of software testing: dynamic method and static method. The difference of these two methods is whether needs to execute program for testing work. The main shortcoming of the dynamic method is to depend on operating specific test cases to testing faults. Therefore it can’t measure all faults, but can only test the faults covered with the case. And, the execution expenses of the dynamic testing tools are quite high, even unacceptable sometimes. The static method does not need executive program, but analyses the source code and find out the potential faults. This method has not the executive expenses, but should make a large amount of analytical work. Accuracy of static analysis depends on the representation of program’s abstract semantics.This paper analyses systemically some kinds of characteristic faults caused of dynamic memory errors in C/C++, and has proposed a kind of fault-oriented static testing method. Since alias can not avoid in dynamic memory testing, paper studies alias approximate algorithm deeply. Then face to memory leak, paper proposes a testing method based on alias analysis. At last we provide the experimented test results of our tool.
Table of contents
Abstract 3-4
ABSTRACT 4-6
Chapter 1 Introduction 6-14
1.1 Introduction 6-7
1.2 software testing technology introduced 7-11
1.3 This topic content 11-14
Chapter 2 dynamic memory errors cause the system to crash , failure analysis 14-24
2.1 release memory abnormalities 14-15
2.2 full constructor definition 15-17
2.3 memory leak 17-19
2.4 null pointer reference 19
the
Unallocated 2.5 Dynamic Memory unauthorized access to 19-21
2.6 Assignment Operators illegal use 21-24
Chapter 3 alias approximation algorithm 24-38
3.1 introduced 24
3.2 concept description 24-26
3.3 alias approximation algorithm 26-36
3.4 research and algorithm conclusions 36-38
Chapter 4, a memory leak detection algorithm based on alias analysis 38-45
4.1 affect memory leak error operation 38
4.2 alias collection calculated 38-41
4.3 conditions to determine the impact of alias analysis 41-43
4.4 correlation algorithm conclusions 43-45
Chapter 5 Conclusion 45-46
Acknowledgements 46-47
the
References 47-51
to
pursuing degree during the academic 51
Related dissertations
- Design and Development of a High-speed Heavy-load Palletizing Robot
- The Design and Analysis of Octahedral Module Deployable Mast
- Research on Mechanical Properties Of the Elastic Body of a Six-Axis Force Sensor Based on Strain Gauge
- Compiler-directed Static Analysis and Code Transformation
- Static Security Detection of C Applications
- The Research of Exploiting Software Security Vulnerabilities Based on Android Platforms
- The Finite Element Analysis and Optimization of the Key Components of FP2500A Type Stack-Turning Machine for Organic Fertilizer
- Design and Analysis of PF1In-cryostat-feeder Support for ITER Poloidal Field
- Research on Steel Structure Optimization and Dynamic Characteristics of HZS240Concrete Mixing Station
- Mechanical Performance Analysis of Semi-rigid Steel Frames Filled Profild Steel Plate Wall
- Large Steel Structure Natural Draft Cooling Tower of Force Analysis
- The Wind Resistance Study of the Steel Frame Structural Main Factory Building of Large Thermal Power Plant
- The Analysis of the Structure Stability of Zhongding International Mansion
- Research on the Mechanical Behaviors of Concrete-filled Double Skin Steel Tubular Column
- The Analysis and Comparison for Different Forms of T Fence in the Wiggins Gas Holder
- The Research on the Use of Composite Structure in Three-dimensional Garage
- Static Analysis of the Ground-supported Flat-bottomed Cylindrical Steel-concrete Composite Silo
- Mechanical Behavior Analysis of Large Silos Storage for High Temperature Stored Materials
- Structure Performance Analysis and Optimization on a Bus Frame
- Fatigue Life Research of a Three-axis Commercial Vehicle Frame