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

Request the full text

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

  1. Time Series Piecewise Linear Representation and Qualitative Trend Analysis
    FangJianFang ·Lanzhou University of Technology ·2013 ·Master's thesis
  2. Study and Computer Programming of Steel Worm Gear Design
    LinXianJian ·Northeastern University ·2012 ·Master's thesis
  3. Research on Unit Test Methods of Special Transformer Acquisition Terminal Based on Embedded Linux
  4. Research on Memory Leak Detection of C/C++Code
    Wang ·Dalian University of Technology ·2012 ·Master's thesis
  5. The Research and Application of Automatic Scoring System of VB Programs Based on Windows Message Mechanism
    FuYaChen ·Dalian Maritime University ·2012 ·Master's thesis
  6. The Design of Software Platform of Distributed Measurement System Based on WLAN
    YaoJuan ·University of North ·2013 ·Master's thesis
  7. Research and Realization of Western Text Annotation Extraction from Scanned Foreign Maps
  8. Research on the Distributed Geographic Information Service Based on Component
    YangJianYu ·Institute of Remote Sensing Applications ·2005 ·Doctoral dissertation
  9. Research on Static Analysis of Memory Errors in C Programs
  10. The Design and Implementation of a Static Analysis System in Source Code
  11. The Design and Implementation of Anti-WIN32 PE Virus Based on WINDOWS IFS
    XiongQiang ·Wuhan University of Technology ·2008 ·Master's thesis
  12. The Research and Implementation of a Memory Leak Detective Technology
    WangZuo ·Beijing Jiaotong University ·2008 ·Master's thesis
  13. Study on the Video Stability Rebuilding System Based on COM Component
  14. Research of Dynamic Memory Management Method on Real-Time Embedded System
    LiZhiJun ·Chongqing University ·2007 ·Master's thesis
  15. Dynamic memory management fault test programming language model
    ZhangHong ·Zhengzhou University ·2006 ·Master's thesis
  16. Rubber extrusion machine screw configuration and automatic generation system
  17. Research on Software Auto-Testing Technology Based on Message Mechanism
    ChenHao ·Hunan University ·2004 ·Master's thesis
  18. Design and Development of Online Hotel Booking System Using Multi-tier Architecture
    Fethi Abduljwad ·Central South University ·2004 ·Master's thesis
  19. Automatic car starter performance test system design and software development
    LiMinFeng ·Central South University ·2004 ·Master's thesis
  20. The Application and Research of Fruiter Expert System Based on B/S Computing Mode
    LuoZongHang ·Guangxi University ·2004 ·Master's thesis