Tracing and Replay Mechanism for Concurrent Programs’ Debugging

Author
ZengZuo
Advisor
XuBaoWen
School
Southeast University
Major
Computer Software and Theory
Classification
TP311.11 Programming method
Degree
Master's thesis
Year
2005
Downloads
114
Citations
1

Request the full text

Abstract

With the practical application of the increasing demand of concurrent software, concurrent program analysis, understanding, debugging, testing and maintenance has attracted extensive attention. Concurrent programs by advancing multiple asynchronous parallel composition, due to the characteristics of the process scheduling order, as well as the communication mechanism, so that the program presents different results in different implementation of the same input. This concurrent program execution uncertainty a direct result of the program error can not be reproduced, the subsequent execution can not be reproduced error of the previous execution. Thus, the repeated execution reproducible failure as the core of the traditional cycle of debugging method is no longer available. Reproduce the behavior of the implementation of the program debugging concurrent programs. Therefore, the traditional cyclic debugging method to be expanded, the introduction of mechanism for tracking and a repeat of a reproduction program execution to eliminate the error can not reproduce. Our analysis of the dependence of the inter-process messaging elaborated eliminate uncertainties optimization concurrent program execution tracing algorithm. For large-scale concurrent program debugging process, if every time a repeat from the program's best start to perform, is bound to cause a lot of waste of resources, and can not meet the requirements of programmers debug response speed. To solve this problem, we have adopted the incremental tracking / repetition method, the introduction of the check points in the fault-tolerant system technology, independent checkpoint periodically inserted in the track of the concurrent program execution process, and to record the status of execution of each process, and The process is divided into a number of independent checkpoint interval. Resulting in a repeat of the stage, the programmer can arbitrarily from their own interest checkpoint, repeatedly reproduce the program a certain period of execution, until you find the wrong problem. On the basis of theoretical studies, research and development of concurrent program analysis and debugging aids, including the tracking of concurrent program / repeat of the module and process execution trajectory visualization engine applicable to the C language interprocess messaging concurrent program as the main communication mechanism. Concurrent program tracking / playback tool able to track the original implementation of the program, and established checkpoints to record the execution status of each process, in a repeat of the stage can choose to reproduce an execution of the program fragment; visualization engine concurrent processes execution trace, the checkpoint position as well as the inter-process communication simple graphically displayed to the user.

Table of contents

Abstract 5-6 Abstract 6-9 first chapter 9-11 1.1 topics in accordance 9 1.2 The proposed research content 9-10 1.3 paper structure 10-11 Chapter concurrent programs related concepts 11-18 2.1 Process 11 2.2 interprocess communication 11-13 2.2.1 Pipeline 11-12 2.2.2 message queue 12 2.2.3 Shared Memory 12 2.2.4 Remote Procedure Call 12 2.2.5 mailslot 12-13 2.3 concurrent program execution uncertainty 13-14 2.3.1 message queue 13-14 2.3.2 Shared Memory 14 < br /> 2.4 program analysis techniques 14-18 2.4.1 program flow graph 14-16 2.4.2 concurrent program control flow graph 16-18 Chapter uncertainty eliminate 18-23 3.1 The basic idea 18-19 3.2 system model definition 19 3.3 Optimization tracking algorithm 19-21 3.3.1 race news 20 3.3.2 race news detection algorithm 20-21 <br / > 3.4 deterministic algorithms perform heavy 21-23 Chapter incremental track / repeat mechanisms 23-29 4.1 checkpoint and message logging 23-24 4.1.1 checkpoint and message logging introduction 23-24 4.1.2 debugging environment with fault-tolerant systems comparison 24 4.2 System Model Definition 24-25 4.3 incremental track / weight algorithm 25-29 4.3.1 Duo Mile news 25-26 4.3. 2 Duo Mile Messages decision algorithm 26-27 4.3.3 repeats itself dependent set 27-28 4.3.4 Heavy algorithms 28-29 Chapter V system design and implementation 29-39 5.1 C analysis subsystem 29-32 5.1.1 lexical parser generation tool 29 -30 5.1.2 public repository 30-32 5.2 Relationship extraction module 32-34 5.3 Visualization Engine module 34-35 < br /> 5.4 track and repeat modules 35-38 5.4.1 System Functions Introduction 35-36 5.4.2 package performance function 36 <br / > 5.4.3 Data Structures and Algorithms 36-38 5.5 user interface 38-39 Chapter VI Conclusion 39-40 Thanks 40-41 References 41-43 appendix a master's degree thesis completed during 43 Appendix II to participate in scientific research during the master's degree Item List 43-44 detailed summary 44-46 Jiangsu Journal Recommendation Form 46-47

Related dissertations

  1. A Research on an Improved Communication Mechanism of Mobile Agent
    ZhangLiHong ·Lanzhou University ·2007 ·Master's thesis
  2. Concurrent Program Debugging Based on Replay
    ZuoFuBin ·Southeast University ·2005 ·Master's thesis
  3. The Credit Process Optimization of A Bank
    WangHe ·Liaoning University ·2012 ·Master's thesis
  4. Yunnan Local Taxation Bureau Collection and Managemeng Process Reengineering
    PuZuoYi ·Yunnan University ·2013 ·Master's thesis
  5. Constructing the system of comprehensive budget management in service enterprises
    ZhouXiaoJuan ·Capital University of Economics ·2014 ·Master's thesis
  6. Study on Optimizing Organization and Decision-making Based on Supply Chain Process of a Telecom Equipment Company
    LiJie ·Shanghai Jiaotong University ·2013 ·Master's thesis
  7. Bank of Beijing Tianjin Branch Customer Service Marketing Strategy
    ZhouYaZuo ·Hebei University of Technology ·2013 ·Master's thesis
  8. Simulation of Employee Turnover Behavior in IT Enterprise Based on Catastrophe Theory
  9. The Research of ERP Project Implementation in a Large Enterprise
    YuanXiaoDa ·Shanghai Jiaotong University ·2013 ·Master's thesis
  10. Research on 4W menu management Sichuan Meishan sales company
    WangDi ·Southwest Petroleum University ·2013 ·Master's thesis
  11. Research on Standard System Integration of Company E
    LiuJian ·Ocean University of China ·2012 ·Master's thesis
  12. Coship Electronics Corporation Integrated Product Development and Management Mode Research
    SongJiangHong ·Central South University ·2012 ·Master's thesis
  13. Research of Export Business Process in A Electric Co.
    CaoGuangHai ·Hebei University of Technology ·2013 ·Master's thesis
  14. A Research on Developing Suburban Agricultural in Fushan District
    WangQiang ·Ocean University of China ·2012 ·Master's thesis
  15. An Optimization Research on Distribution Center of Logistics System in Hengshui Tobacco
  16. Regulation and Development:the Motive Power of Chinese TV Drama’s Industrial Process Research
    YangDanXiu ·Nanjing University ·2011 ·Doctoral dissertation
  17. The research of Chongqing city brand communication from the Semiotic Perspective
  18. Festival Carnival Research in the Perspective of Humanism
    ZhuQing ·Shanghai University ·2013 ·Master's thesis
  19. The LabVIEW-based Design of Filling Stations Monitoring System
  20. CAD/CAM System for Gem Grinding&Carving Robot
    LiXiangNan ·China University of Geosciences ·2013 ·Master's thesis