An Empirical Study on Lock Usage by Using Automated Static Tool
- Author
- HuangShiQiu
- Advisor
- QiZhengWei
- School
- Shanghai Jiaotong University
- Major
- Computer Science and Technology
- Classification
- TP311.5 Software Engineering
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 14
- Citations
- 0
Abstract
Nowadays concurrency programs are becoming more and moreimportant with the development of hardware and network technology.However, it is not easy for programmers to write reliable concurrencyprograms. On the other hand, it is difficult to debug or maintain aconcurrent program because of concurrency’s characteristic such asthread-interleaving. Although there are lots of researches on concurrency,e.g., multi-thread testing, concurrency program verification and data racedetection, all of them are faced with some unsolved issues. For instance,some of them are not scalable enough to large real world applications (e.g.,KLEE fails to analysis the lock pair-up problem of Apache) and some ofthem may incur large amount of false warnings (e.g., the false warning rateof Inspector is about88.7%). As lock is widely used to control sharedmemory access, it is necessary for both programmers and analysis tooldesigners on all directories to have a good knowledge of common lockusage in real world concurrency programs.The main contributions of this paper are as follows:(1) In this paper, an LLVM-based, static, conservative, and lowanalysis overhead lock analysis tool called LUPA is described.(2) Assisted by LUPA, a novel empirical study on lock usage inconcurrency programs is presented assisted by LUPA. In this study, a viewof how lock is used in concurrency programs and how lock usage changeswith the progress of an application’s development is given.Our experiments show that the average analysis overhead of LUPA is413557ms and the overhead for large programs (e.g., MySQL) is less than20minutes. What’s more, LUPA’s recognition accuracy for the special lock patterns is about97.2%.In this paper, four representative concurrency programs (Apache,MySQL, Aget and Pbzip2) are selected. Both lock manifestation and lockusage pattern of different versions are studied. This study reveals someinteresting findings including but not limited to:(a) about80.5%of thelock related functions acquire only one lock;(b) Simple lock pattern isdiffusely used in real world concurrency applications at the highest rate of54.5%;(c) only12out of527detected patterns belong to condition lockpattern which may lead to vulnerabilities easily;(d) only0.65%of thefunctions are lock related.
Table of contents
Summary 5-7
ABSTRACT 7-13
first chapter 13-21
1.1 Background and Significance 13 - 14
1.2 purpose domestic and foreign research status quo 1.3 14-16
16-19
1.3.1 data competition 16-18 <br / > 1.3.2 deadlock Detection 18
1.3.3 software defects research 18-19
1.3.4 concurrent program testing 19
1.4 Research content organizational structure 19-20
1.5 article 20
1.6 Summary 20-21
Chapter II program analyzes related technologies 21-27
2.1 program analysis techniques outlined ; 2.1.1 dynamic Analysis nbsp 21-22
; 2.1.2 static Analysis nbsp 21
21-22
2.1.3 combining static and dynamic analysis 22
2.2 data flow analysis 22-23
2.3 alias analysis 23-24
2.4 middle Language 24-25
2.5 Summary 25-27
Chapter III design and implementation of automated tools 27-59
3.1 Definition of Terms 27-30
3.2 workflow 30-31
3.3 target program select 31-32
3.4 architecture design 32-34
3.5 LLVM analytical framework 34-37
3.6 intermediate code generation 37-41
3.7 support engine 41-49
3.7.1 functional Overview 42
3.7.2 function Modeling 42-43
3.7.3 use - defined chain structure 43-44
3.7.4 control dependence graph constructed 44-46
3.7.5 pointer alias analysis 46-49
3.8 language features collector 49-51
3.8. 1 functional Overview 50
3.8.2 implementation 50-51
3.9 pattern Analyzer 51-56
3.9.1 functional Overview 51-52
3.9.2 the basic algorithm 52-55
special lock pattern recognition 3.9.3 55-56
3.10 Summary 56-59
The fourth chapter analyzes 59-71
4.1 case Study 59-61
4.2 automated analysis tools experiment 61-62
4.2.1 experimental environment 61
4.2.2 experimental Design 61
4.2.3 experimental results 61-62
4.3 lock The results 62-70
4.3.1 language feature analysis 63-65
4.3.2 lock mode analysis 65-68
4.3 between .3 version lock using evolutionary analysis 68-70
4.4 summary 70-71
Chapter Full Summary 71-73
5.1 The main conclusions 71
5.2 Prospect 71-73
References 73-77
Thanks 77-79 <br / > during the master's degree has been published or accepted papers 79
Related dissertations
- Pointer Analysis Based Lock Set Analysis Tool
- Design and Development of a High-speed Heavy-load Palletizing Robot
- The Design and Analysis of Octahedral Module Deployable Mast
- Research on Mechanical Properties Of the Elastic Body of a Six-Axis Force Sensor Based on Strain Gauge
- Compiler-directed Static Analysis and Code Transformation
- Static Security Detection of C Applications
- The Research of Exploiting Software Security Vulnerabilities Based on Android Platforms
- The Finite Element Analysis and Optimization of the Key Components of FP2500A Type Stack-Turning Machine for Organic Fertilizer
- Design and Analysis of PF1In-cryostat-feeder Support for ITER Poloidal Field
- Research on Steel Structure Optimization and Dynamic Characteristics of HZS240Concrete Mixing Station
- Mechanical Performance Analysis of Semi-rigid Steel Frames Filled Profild Steel Plate Wall
- Large Steel Structure Natural Draft Cooling Tower of Force Analysis
- The Wind Resistance Study of the Steel Frame Structural Main Factory Building of Large Thermal Power Plant
- The Analysis of the Structure Stability of Zhongding International Mansion
- Research on the Mechanical Behaviors of Concrete-filled Double Skin Steel Tubular Column
- The Analysis and Comparison for Different Forms of T Fence in the Wiggins Gas Holder
- The Research on the Use of Composite Structure in Three-dimensional Garage
- Static Analysis of the Ground-supported Flat-bottomed Cylindrical Steel-concrete Composite Silo
- Mechanical Behavior Analysis of Large Silos Storage for High Temperature Stored Materials
- Structure Performance Analysis and Optimization on a Bus Frame