Concurrent programs may suffer from concurrency anomalies that may lead to
erroneous and unpredictable program behaviors. To ensure program correctness,
these anomalies must be diagnosed and corrected. This paper addresses the
detection of both low- and high-level anomalies in the Transactional Memory
setting. We propose a static analysis procedure and a framework to address
Transactional Memory anomalies. We start by dealing with the classic case of
low-level dataraces, identifying concurrent accesses to shared memory cells
that are not protected within the scope of a memory transaction. Then, we
address the case of high-level dataraces, bringing the programmer?s attention
to pairs of memory transactions that were misspecified and should have been
combined into a single transaction. Our framework was applied to a set of
programs, collected form different sources, containing well known low- and
high-level anomalies. The framework demonstrated to be accurate, confirming
the effectiveness of using static analysis techniques to precisely identify
concurrency anomalies in Transactional Memory programs.
In this paper we present MoTH, a tool that uses static analysis to enable the automatic verification of concurrency anomalies in Transactional Memory Java programs. Currently MoTH detects high-level dataraces and stale-value errors, but it is extendable by plugging-in sensors, each sensor implementing an anomaly detecting algorithm. We validate and benchmark MoTH by applying it to a set of well known concurrent buggy programs and by close comparison of the results with other similar tools. The results achieved so far are very promising, yielding good accuracy while triggering only a very limited number of false warnings.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.