Detecting race conditions in Java programs using dynamic analysis
M.K. Ermakov, Sergey Pavlovitch Vartanov · Proceedings of the Institute for System Programming of RAS · 2015
This article presents a dynamic analysis approach to automatic detection of race conditions in multi-threaded Java applications. We use static Java byte-code instrumentation framework Coffee Machine to avoid additional dynamic instrumentation overhead and support a more extensive set of Java virtual machines. Our instrumentation routines target bytecode instructions related to multithreading, monitors as well as base data access and method call instructions. We perform data race detection using ThreadSanitizer Offline tool utilizing two distinct methods: happens-before relation tracking and lock set tracking. Our approach has been tested on a set of open source projects.
Cited by 1 works. doi:10.15514/ispras-2015-27(2)-3 Open-access PDF