Lune

POPL2023Top-tier venue

Dynamic Race Detection with O(1) Samples

Mosaad Al Thokair, Minjian Zhang, Umang Mathur, Mahesh Viswanathan

2023Year
9Citations
2Top-tier citations

Abstract

Happens before-based dynamic analysis is the go-to technique for detecting data races in large scale software projects due to the absence of false positive reports. However, such analyses are expensive since they employ expensive vector clock updates at each event, rendering them usable only for in-house testing. In this paper, we present a sampling-based, randomized race detector that processes only constantly many events of the input trace even in the worst case. This is the first sub-linear time (i.e., running in 𝑜 (𝑛) time where 𝑛 is the length of the trace) dynamic race detection algorithm; previous sampling based approaches like Pacer run in linear time (i.e., 𝑂 (𝑛)). Our algorithm is a property tester for HB-race detection -it is sound in that it never reports any false positive, and on traces that are far, with respect to hamming distance, from any race-free trace, the algorithm detects an HB-race with high probability. Our experimental evaluation of the algorithm and its comparison with state-of-the-art deterministic and sampling based race detectors shows that the algorithm does indeed have significantly low running time, and detects races quite often.

CCS Concepts: • Software and its engineering → Software testing and debugging.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 58d0ed09-3cf5-4d42-a9ea-f967c0616b5a

Cited by top-tier papers2

Ask how each one uses it

Builds on10

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines