Concurrent Program Debugging Based on Replay

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

Request the full text

Abstract

With the increasingly widespread use of concurrent programs , concurrent program debugging becomes more and more important . Traditional cyclic debugging techniques to set breakpoints , perform source code several times , gradually positioning error location . Mainly because the order of the results of the implementation of the program depends on the input of the program , so this method is very effective for sequential programs , but for the concurrent program , the problem to be much more complex . First, concurrency and uncertainty of the concurrent program , led for a given concurrent program , even in the same input may produce different results , or the results of the same , but the execution path . Correctly identify and correct the false premise is to be able to continue to make the same mistake repeated in the concurrent program debugging , however , may not be able to get an error message , or observed errors , run again , not being able to get the last error status . There is an urgent need to have a mechanism that makes the uncertainty to the program in the debugger . Second , the concurrent program generally contains multiple processes , complex communication and synchronization between them , so programmers debugging communication between the process and the process of implementation of the concurrent program has an overall grasp , however manual inspection code interprocess communication is almost impossible . This allows the programmer to difficult to analyze and understand the concurrent program debugging must frequently switch between multiple processes and blindly follow , debugging efficiency will be greatly reduced . This makes it necessary to give the programmer provides interprocess communication . Based on the above issues , our research and development of concurrent program analysis and debugging tools , including debugging tools and interprocess communication tool extraction and description based on the replay concurrent program . The tool is based on the C language , message queues and shared memory interprocess communication mechanism for concurrent programs . Tracking concurrent program execution replay concurrent program debugging tools for debugging concurrent programs on the basis of the replay ; communication relationship extraction and description of the tools used to automatically extract the source code possible relationship between the communication and the execution of the actual communication between and relationship to graphically display to the user.

Table of contents

Abstract 5-6 Abstract 6-9 Chapter Introduction 9-11 1.1 topics in accordance 9 1.2-based reproduction program debugging purpose and meaning 9 1.3 communication relationship extraction purpose and significance 9-10 1.4 Research 10 < br /> 1.5 paper structure 10-11 Chapter concurrency issues and program analysis techniques 11-15 2.1 processes the basic concepts 11 < br /> 2.2 interprocess synchronization and communication 11-12 2.2.1 Synchronization 11 2.2.2 Communication 11-12 2.3 concurrent execution of uncertainty 12-13 2.3.1 message queue 12 2.3.2 Shared Memory 12-13 2.4 Program Analysis Technical 13-15 2.4.1 Functions to analyze 13 2.4.2 Cross-function analysis 13-15 The third chapter is based on playback concurrent debugging 15-23 3.1 debugging strategy 15 3.2 source code instrumentation 15-16 3.3 asynchronous event monitoring and logging 16-19 3.3.1 Vector stamp 16-17 3.3.2 synchronization event log 17-19 3.4 replay concurrent programs 19-21 3.4.1 synchronous operation Cartridge 20 3.4.2 program playback 20-21 3.5 concurrent programs Debugging 21-23 3.5.1 breakpoint achieve 21-22 3.5.2 single-step operation 22 3.5.3 Information Display 22-23 Chapter communication relationship extraction 23-27 4.1 interprocess communication between static analysis 23-25 ?? 4.1.1 fluctuation analysis 23-24 4.1.2 graphical representation 24 4.1.3 Case Study 24-25 4.2 interprocess communication relationship dynamics analysis 25-27 4.2.1 interactive information access 25-26 4.2.2 describe the relationship between the dynamic communication 26-27 fifth Chapter System Design and Implementation 27-37 5.1 system framework 27-28 5.2 C program analysis module design 28-29 5.2.1 Lexical analysis and generation tools FLEX parser generator tool BYACC 28 5.2.2 C program analyzer main data structure 28-29 5.3 debugging concurrent programs module 29-32 5.3.1 System Functions Introduction and packaging 29-31 5.3.2 Data Structures and Algorithms 31-32 5.4 communication relationship extraction module 32-36 5.4.1 Static analysis of communication between data structures 32-34 5.4.2 Static communication relationship visualization 34-35 < br /> 5.4.3 Dynamic analysis of communication between data structures 35 5.4.4 Dynamic communication between visualization 35-36 5.4 user interface 36-37 < br /> Chapter VI Conclusion 37-38 Thanks 38 appendix a master's degree thesis completed during the list of 38 Appendix II study participate in research projects during the master list of 38-39 References 39-40

Related dissertations

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