Conference paper
Cite …

Predicting and witnessing data races using CSP

Luis Manuel Carril Rodriguez and Walter F. Tichy ORCID iD icon 1
1 Institute for Program Structures and Data Organisation (IPD), Karlsruhe Institute of Technology (KIT)
Abstract

Detecting and debugging data races is a complex task due to the large number of interleavings possible in a parallel program. Most tools can find the data races reliably in an observed execution, but they miss errors in alternative reorderings of events. In this paper we describe an automated approach to generate, from a single program trace, a model in CSP with alternative interleavings. We check for data races patterns and obtain a witness that allows the reproduction of errors. Reproduction reduces the developer effort to correct the error.