Concurrent Bug Reproduction and Detection Based on Replay Analysis
- Author
- LuoQingZhou
- Advisor
- ZhaoJianJun
- School
- Shanghai Jiaotong University
- Major
- Applied Computer Technology
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 36
- Citations
- 0
Abstract
With the development of multithreaded concurrent technology, multi-threaded programming techniques are more widely used in practice. Multi-threading technology by improving CPU utilization, reduce the waste of resources, thus greatly improving the efficiency of program execution. A variety of programming languages, such as Java, C, etc., and also put forward a concurrent programming model. These concurrent programming model, but also more and more applied to actual development, and can greatly improve the program run faster. But at the same time, the concurrent program execution behavior because of their uncertainty, in the event of an error difficult to developers positioning; error occurs also often need to spend a lot of time developers to reproduce the error occurs scene. Typical data race (Data Race), deadlock (Deadlock) and operating atomic violation (Atomicity Violation), these concurrent programs unique to the error greatly increase the difficulty of testing and correction concurrent program. Based on the above, a large part of the traditional program testing method does not apply in the concurrent program. Not deterministic scheduling between threads, and the testing of concurrent programs proposed new requirements. Debugging concurrent programs in order to more easily record and playback (Record Replay) is introduced to the testing of concurrent programs. For recording and playback of concurrent programs, there are two ways: based on the content (Content-based) and order (Order-based) method. Content-based approach can accurately reproduce the memory read and write content, based on the order of the method focuses on the thread (inter-thread) the sequence of events. Both methods have their own advantages and limitations: huge memory read and write the number of the content-based approach often generates large log file; sequential record playback, you will need to accurately reproduce the thread during the execution thread between all of the sequence of events. The program concurrent program error (Software Bugs) existing methods to reproduce the error by prolonged pressure test (Stress Testing). However, this method takes a lot of time outside, also can not guarantee to reproduce specific concurrent error. Based on the demand, with particular attention to the playback of a program error records and certainty for concurrent programs. Soot Java bytecode insertion procedure, the two versions will be generated on the basis of the original program: record and playback later. Running the recorded version of the program, will be recorded at the same time the program is run to perform the logical sequence of events in the next thread. Through research and extension of single-threaded program to reproduce the error structure, this article the proposed tool ConCrash sequential log file to generate multi-threaded test cases, and the program runs automatically after the collapse of the concurrent program logic clock. Call playback version by running these test cases and procedures, concurrent program crash scenario can be deterministically reproduce. The main contribution of this paper is the following: a lightweight and scalable multi-threaded program error capture reproduce the technology, and can at the same time with other static analysis of the front-end technology combined. A prototype based on the Java language, ConCrash and program crashes automatic generation of simulation a multithreaded scene of JUnit test cases. Benchmark program and the practical application of the test to use, comprehensive assessment ConCrash effectiveness and performance overhead, the direction of future work.
Table of contents
Abstract 3-5
Abstract 5-10
the
illustration directory 10-11
the
tables directory 11-12
first chapter 12-23
1.1 Background Introduction 12-15
1.1.1 concurrent program development 12-13
1.1.2 software test and its application in concurrent programs 13-15
1.2 subject research significance 15-16
1.2.1 for concurrent programs based on the Java language recording and playback 15
1.2.2 automatically generate unit test cases can reproduce concurrency bugs 15-16
1.3 research status 16-21
1.3.1 concurrent program error detection 16-18
1.3.2 concurrent program recording and playback 18-20
1.3.3 program error reproducibility and related technologies 20-21
1.4 paper the basic ideas and achievements 21-22
1.5 papers organizational structure 22
1.6 This chapter Summary 22-23
the
concurrent program error type 23-31
2.1 Overview 23
2.2 data competition 23-26
2.2.1 Data competing definitions and example 23-25
2.2.2 for data race detection 25-26
2.3 atomicity violation 26-28
2.3.1 atomicity violation definition and example 26-27
2.3.2 atomicity violation detection and reproducibility 27-28
2.4 program deadlock 28-30
the
definitions and examples 2.4.1 program deadlock 28-29
2.4.2 for procedural deadlock detection technology 29-30
2.5 This chapter Summary 30-31
the
concurrent program execution records and uncertainty playback technology. 31-35
3.1 Overview 31
3.2 based on the contents of the recording and playback technology 31-32
3.3 based on the order of the recording and playback technology 32-33
3.4 are two ways Comparative Analysis 33-34
3.5 This chapter Summary 34-35
The
concurrent program bug still design tools CONCRASH and achieve 35-55
4.1 Overview 35-36
4.2 CONCRASH overall architecture and process 36-42
4.2.1 Overall Chart 36-39
4.2.2 instance execution process introduced 39-42
4.3 CONCRASH preprocessing module 42-46
4.3.1 Java bytecode and Soot 42-45
4.3.2 plug decorate identification byte code instrumentation to achieve 45-46
4.4 CONCRASH record and playback module 46-51
4.4.1 Lamport clock and the logical thread of execution timing 46-48
4.4.2 record, and uncertainty playback algorithm 48-51
4.5 CONCRASH test case generation module 51-54
4.6 This chapter Summary 54-55
experimental evaluation 55-61
5.1 experimental procedures 55-56
5.2 Experimental methods and process 56-57
5.3 Experimental results and discussion 57-60
5.3.1 reproduce errors capacity results 57-58
5.3.2 Time and space overhead results 58-60
5.4 This chapter Summary 60-61
Chapter VI of experience and summarize 61-63
6.1 The main contribution of this paper 61-62
6.2 Research Prospects 62-63
the
References 63-67
Acknowledgements 67-70
the
pursuing a master's degree during been published or accepted papers 70-72
Related dissertations
- Study on the Mechanical System and the Key Technology of the Stair Climbing Robot Which Can Omnibearing Walk
- The Design of PC Type Tester for Dial Indicator Gauges
- Design and Implementation of RFID Reader Based on Virtual Radio Technology
- Research and Design of AVR-based RFID Reader
- Design and Implementation of HRMS Based on Active Database Technology
- Design and Implementation of Java Refactoring Plug-in Based on Eclipse
- Design and Implementation of the Nanjing Railway Vocational and Technical College Employment Management System
- Design and Implementation of Examination Management System of Anhui Sanlian College
- Workload Generation Techniques for Process-Aware Information Systems
- Design&Implementation of Military Asset Management System
- Design and Implementation of Tobacco Monopoly Management Information System
- SINS/GPS Inertial Integrated Navigation System
- Design and Implementation of Radar’s Electrify Console
- Design of Video Monitor Based on Android
- Research of Radio Channel Based on a Localization Rescue System in Disasters
- The Design and Implementation of the FPGA Based Verification and Testing Platform of NoC
- Based on the40Nm Process LVDS Design and Implementation
- Functional Verification of YHFT-DX High Performance DSP
- Test and application characteristics of dual cascade of microchannel plate
- Study on the Application of Schema Theory in English Teaching in Junior Middle School