Research on Dynamic Detecting Memory Leak of COM Components
- Author
- ShuJuFang
- Advisor
- ZuoBinBin
- School
- Huazhong University of Science and Technology
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 29
- Citations
- 0
Abstract
With the development of component technology, component-based software development gradually becomes a very important research area in software engineering. The extensive use of third-party components has greatly improved the efficiency of software development, and reduced software development costs, but its reliability and security are increasingly can not be ignored. A lot of security issues for COM components relate to the memory error.Memory leak errors occurred mainly in the programs which are written in C or C++ language; some Programming languages control tightly the heap management and come with runtime support that implements the logic for the heap management. A typical example of such a case is Java, which has a garbage collector integrated in its JVM, and the GC can automatically release allocated memory space, therefore avoiding memory leak error.As is different from the traditional software modules, in most cases the source code of COM component is unavailable; the security testing of component can only be based on black-box methods. Here we detect the memory leak of COM component from tow aspects: macro- and micro- aspect.The macro-detection technique is based on the memory management which can determine the possibility of memory leak existence, and can also detect the resource leakage; while the micro- detection technology is based on HOOK. We intercept the memory allocation and release function of COM, and then inject the pre-defined hook functions into process space where is the component running. This method can not detect memory leak, but also access to the corresponding function call stack to locate the place where the leak happens. The feasibility and effectiveness of this approach in detecting memory leak error of COM components is proved by the prototype system testing.
Table of contents
Abstract 4-5
ABSTRACT 5-8
1 Introduction 8-19
1.1 research background and significance 8-9 < br /> 1.2 research status 9-14
1.3 research 14-18
1.4 thesis organization 18-19
2 a kind of macro- based memory management detection method 19-27
2.1 components dynamic memory management mechanism analysis 19-20
2.2 macro memory leak detection method 20-25
2.3 Summary 25-27
3 HOOK technology based on microscopic detection 27-38
3.1 HOOK technology infrastructure 27-28
3.2 micro memory leak detection key issues 28
3.3 HOOK technology -based micro memory leak detection method 28-37
3.4 Summary 37-38
4 COM-based dynamic memory leak detection system to achieve 38-53
4.1 CSTS Introduction 38-40
4.2 COM component dynamic memory leak detection subsystem 40-52
4.3 Summary 52-53
5 experiments and test 53-57
5.1 testing purposes 53
5.2 test Environment 53
5.3 test Case 53-54
5.4 test results 54-56
5.5 Summary 56-57
6 Summary and Outlook 57-59
Thanks 59-60
References 60-64
Appendix pursue a degree in research projects during 64
Related dissertations
- Time Series Piecewise Linear Representation and Qualitative Trend Analysis
- Study and Computer Programming of Steel Worm Gear Design
- Research on Unit Test Methods of Special Transformer Acquisition Terminal Based on Embedded Linux
- Research on Memory Leak Detection of C/C++Code
- The Research and Application of Automatic Scoring System of VB Programs Based on Windows Message Mechanism
- The Design of Software Platform of Distributed Measurement System Based on WLAN
- Research and Realization of Western Text Annotation Extraction from Scanned Foreign Maps
- Research on the Distributed Geographic Information Service Based on Component
- Research on Static Analysis of Memory Errors in C Programs
- The Design and Implementation of a Static Analysis System in Source Code
- The Design and Implementation of Anti-WIN32 PE Virus Based on WINDOWS IFS
- The Research and Implementation of a Memory Leak Detective Technology
- Study on the Video Stability Rebuilding System Based on COM Component
- Research of Dynamic Memory Management Method on Real-Time Embedded System
- Dynamic memory management fault test programming language model
- Rubber extrusion machine screw configuration and automatic generation system
- Research on Software Auto-Testing Technology Based on Message Mechanism
- Design and Development of Online Hotel Booking System Using Multi-tier Architecture
- Automatic car starter performance test system design and software development
- The Application and Research of Fruiter Expert System Based on B/S Computing Mode