Proceedings of the Institute for System Programming of the RAS
RUS  ENG    JOURNALS   PEOPLE   ORGANISATIONS   CONFERENCES   SEMINARS   VIDEO LIBRARY   PACKAGE AMSBIB  
General information
Latest issue
Archive

Search papers
Search references

RSS
Latest issue
Current issues
Archive issues
What is RSS



Proceedings of ISP RAS:
Year:
Volume:
Issue:
Page:
Find






Personal entry:
Login:
Password:
Save password
Enter
Forgotten password?
Register


Proceedings of the Institute for System Programming of the RAS, 2015, Volume 27, Issue 2, Pages 39–52
DOI: https://doi.org/10.15514/ISPRAS-2015-27(2)-3
(Mi tisp121)
 

Detecting race conditions in Java programs using dynamic analysis

M. Ermakov, S. Vartanov

Department of Computational Mathematics and Cybernethics, Moscow State University
References:
Abstract: Multithreading support is one of Java programming language built-in features. Synchronization defects are a serious issue despite the extensive thread processing API provided by standard classes. One of the most common synchronization defects is a race condition. It arises when two different threads read and modify shared data and data access order is not fixed. This paper focuses on an approach to automatically detect race conditions using dynamic analysis. The main advantage of dynamic analysis is the lack of false positives if program under analysis fits a number of requirements. Our approach for dynamic analysis uses static bytecode instrumentation to extract execution trace at run-time which allows to track usage for thread synchronization methods and functions. Generated trace is a concrete execution model which is processed to identify happen-before relations and lock sets for possible data race detection. We use Coffee Machine tool for static instrumentation. Static instrumentation approach is applicable even to virtual machines which do not provide support for dynamic instrumentation. We use ThreadSanitizer Offline to process generated trace and detect race conditions. While debug information in bytecode is unnecessary it provides more precise error messages. Described tool chain has been tested on a set of open source projects.
Keywords: dynamic analysis, race condition, synchronization defects.
Funding agency Grant number
Russian Foundation for Basic Research 14-07-00609
Bibliographic databases:
Document Type: Article
Language: Russian
Citation: M. Ermakov, S. Vartanov, “Detecting race conditions in Java programs using dynamic analysis”, Proceedings of ISP RAS, 27:2 (2015), 39–52
Citation in format AMSBIB
\Bibitem{ErmVar15}
\by M.~Ermakov, S.~Vartanov
\paper Detecting race conditions in Java programs using dynamic analysis
\jour Proceedings of ISP RAS
\yr 2015
\vol 27
\issue 2
\pages 39--52
\mathnet{http://mi.mathnet.ru/tisp121}
\crossref{https://doi.org/10.15514/ISPRAS-2015-27(2)-3}
\elib{https://elibrary.ru/item.asp?id=23827845}
Linking options:
  • https://www.mathnet.ru/eng/tisp121
  • https://www.mathnet.ru/eng/tisp/v27/i2/p39
  • Citing articles in Google Scholar: Russian citations, English citations
    Related articles in Google Scholar: Russian articles, English articles
    Proceedings of the Institute for System Programming of the RAS
    Statistics & downloads:
    Abstract page:174
    Full-text PDF :207
    References:31
     
      Contact us:
     Terms of Use  Registration to the website  Logotypes © Steklov Mathematical Institute RAS, 2024