The Design and Implementation of CBFinder Based on JDT

Author
FengZuoJia
Advisor
LuoBin , BeiJia
School
Nanjing University
Major
Software Engineering
Classification
TP311.11 Programming method
Degree
Master's thesis
Year
2011
Downloads
23
Citations
0

Request the full text

Abstract

Multithreaded concurrent program threads as executable program modules, there are a number of threads that can be executed simultaneously. Java language from the outset, to consider the multi-threading technology. With the further development of hardware technology, as well as the widespread use of multicore processors, multithreaded concurrent programs are increasingly being used in a variety of projects to better take advantage of multi-core processors to increase performance and efficiency of the program. However, the concurrent program runs uncertainties inherent error detection for concurrent programs is difficult. Many java programmers for a java thread of misunderstanding concurrency errors abound. There are two main methods for concurrent error detection in concurrent programs, the dynamic detection as well as the static detection. Dynamic detection check concurrent program behavior at runtime, you need to consume more resources. The overhead of monitoring code program execution times, and it is difficult to ensure that all execution paths are covered. The static detection does not require the program to run will be able to detect errors, relatively more comprehensive, but also to identify problems early in the development. Static detection including model checking, static analysis, error pattern matching method. This article provides a static detection methods, use of concurrent error pattern matching method to detect concurrency errors in multithreaded concurrent program. The concurrent error mode is the programmer some bad programming practice in multi-threaded application development or semantic misunderstanding, these errors been shown to cause a concurrency error. The article provides CBFinder summarizes the number of concurrent error mode and provided by JDT AST implemented as a rule these patterns to detect the concurrent program. Contains a total of 22 rules, including Double-Check Lock problem detection. CBFinder the static detection framework using IBM Rational Software Analyzer achieve, and as part of its release run. The error pattern matching method for the detection of the code can quickly locate problems in the code, but the accuracy is not high. This realization of CBFinder is hoping to propose a fast and error pattern matching tools with high accuracy, and it can quickly and relatively accurately locate concurrency errors in multi-threaded concurrent programs. Static detection, there is little work is devoted to this aspect.

Table of contents

Abstract 4-5 Abstract 5-6 directory 6-8 the diagram directory 8-9 table directory 9-10 Chapter Introduction 10-14 1.1 Background and significance 10-11 of 1.2 concurrent error detection tool status quo 11-12 1.3 of this paper mainly work 12-13 1.4 paper tissue 13-14 second technology and concepts 14-23 2.1 multithreaded 14-17 2.1.1 multithreading technology concept 14-15 2.1.2 multithreaded several implementations 15-16 2.1.3 Java multithreading 16-17 2.2 concurrent error detection 17-23 2.2.1 Dynamic detection 18-19 2.2.2 Static Analysis 19-20 2.2.3 Model Checking 20-21 2.2.4 error pattern matching 21-23 the the third chapter CBFinder the framework and architecture design 23-33 3.1 RSAR 23-28 3.1.1 RSAR use cases 23-25 3.1.2 RSAR architecture 25-26 3.1.3 RSAR ruleset 26-28 the CBPFinder the 3.2 framework design 28-33 3.2.1 overall design 29-30 3.2.2 CBFinder the ruleset 30-33 the CBFinder Design and Implementation 33-52 4.1 adverse operating rules set 33-38 4.1.1 DCL 33-36 4.1.2 protection consuming operation 36-38 4.2 synchronization error 38-46 4.2.1 using a non-static variables to protect static data 39-42 4.2.3 using internal data as a synchronization field 42-46 4.3 resource leaks and atomic operations 46-52 4.3.1 J.U.C lock leak 46-48 4.3.2 volatile field of non-atomic operation 48-52 Chapter experiments and analysis 52-60 5.1 test set 52-53 5.2 operating results and efficiency 53-57 5.2.1 operating results analysis 54-56 5.2.2 Operational Efficiency 56-57 5.3 concurrent error 57-60 Chapter Summary and Outlook 60-62 6.1 Papers Summary 60 6.2 work outlook 60-62 the References 62-65 Acknowledgements 65-66 the participate in project 66-68

Related dissertations

  1. Android Application Detection Research and Implementation Based on Software Security Policy
    LiuWeiWen ·Central South University ·2013 ·Master's thesis
  2. Analysis and Research of Android Malicious Application Behavior
    ZhaoXing ·Beijing Jiaotong University ·2014 ·Master's thesis
  3. Security Research of Intelligent Terminal based on Android Platform
    WangHuaBin ·Beijing Jiaotong University ·2014 ·Master's thesis
  4. Research on Web Malicious Code Detecting Approaches Based on Data Mining
  5. Android Malware Detection Scheme Based on the Log in the Research and Implementation
    ShenHuiJun ·Lanzhou University ·2013 ·Master's thesis
  6. Research&Implementation of the Static Checking&Automated Path Testing Tools for Embedded Software
    LiuJiaXin ·South China University of Technology ·2012 ·Master's thesis
  7. Research on Memory Leak Detection of C/C++Code
    Wang ·Dalian University of Technology ·2012 ·Master's thesis
  8. Research and System Implementation for Pointer Detection in Embedded C Program
    YuanZhu ·Dalian University of Technology ·2012 ·Master's thesis
  9. Research of Multi-engine Cloud Security Mechanism Based on Conditional Random Fields
    DuYaJuan ·Xiangtan University ·2012 ·Master's thesis
  10. Design and Implementation of Integrated Detection System for Railway Tads Equipment
    ShiJinFeng ·Shanghai Jiaotong University ·2012 ·Master's thesis
  11. Static Checking Technique for Embedded Software in C Language
    PanChao ·Zhejiang University ·2008 ·Master's thesis
  12. Research on Automatic Detection of Buffer Overflow for C Language
    ZhangDaZhi ·Jilin University ·2004 ·Master's thesis
  13. Damage Identification of the Grid Structures Based on the Parameters of Curvature and Strain Energy Change
    DingTao ·Liaoning Technical University ·2007 ·Master's thesis
  14. Static analysis - based buffer overflow vulnerability detection research
  15. Research on Detection Technology of Buffer Overflow Vulnerability Based on Lexical Analysys
    LvZuo ·Southwest Jiaotong University ·2010 ·Master's thesis
  16. Research on Format String Vulnerabilities Detection Technologies Based Upon Source Code
    HanFei ·Shandong University ·2010 ·Master's thesis
  17. Design and Implementation of Data Service Development Tool
    CaoJianHua ·Tianjin University ·2008 ·Master's thesis
  18. Buffer Overflow Vulnerability Detection Technology
  19. Research on Detecting Invalid Arithmetic Operations Based on Method Summary
  20. Research on Static and Dynamic Detection Method of ShuangYang Double-Curved Arch Bridge in ChangChun City
    MaYongJun ·Jilin University ·2011 ·Master's thesis