Lune

POPL2023Top-tier venue

Dynamic Race Detection with O(1) Samples

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

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Efficient Timestamping for Sampling-Based Race Detection cites Fast, sound, and effectively complete dynamic race prediction
  • Efficient Timestamping for Sampling-Based Race Detection cites SmartTrack: efficient predictive race detection
  • Efficient Timestamping for Sampling-Based Race Detection cites Optimal prediction of synchronization-preserving races
  • Efficient Timestamping for Sampling-Based Race Detection cites Optimistic Prediction of Synchronization-Reversal Data Races
  • Krace: Data Race Fuzzing for Kernel File Systems cites Razzer: Finding Kernel Race Bugs through Fuzzing
  • SmartTrack: efficient predictive race detection cites Fast, sound, and effectively complete dynamic race prediction
  • Optimal prediction of synchronization-preserving races cites Fast, sound, and effectively complete dynamic race prediction
  • Optimal prediction of synchronization-preserving races cites SmartTrack: efficient predictive race detection
  • Optimistic Prediction of Synchronization-Reversal Data Races cites Razzer: Finding Kernel Race Bugs through Fuzzing
  • Optimistic Prediction of Synchronization-Reversal Data Races cites Fast, sound, and effectively complete dynamic race prediction
  • Optimistic Prediction of Synchronization-Reversal Data Races cites Krace: Data Race Fuzzing for Kernel File Systems
  • Optimistic Prediction of Synchronization-Reversal Data Races cites SmartTrack: efficient predictive race detection
  • Optimistic Prediction of Synchronization-Reversal Data Races cites Optimal prediction of synchronization-preserving races
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Optimistic Prediction of Synchronization-Reversal Data RacesZheng Shi, Umang Mathur, Andreas PavlogiannisICSE 2024 · 8 citations
  2. Efficient Timestamping for Sampling-Based Race DetectionMinjian Zhang, Daniel Wee Soong Lim, Mosaad Al Thokair, Umang Mathur et al.PLDI 2025 · 1 citation

Builds on10

  1. Razzer: Finding Kernel Race Bugs through FuzzingDae R. Jeong, Kyungtae Kim, Basavesh Shivakumar, Byoungyoung Lee et al.S&P 2019 · 202 citations
  2. Krace: Data Race Fuzzing for Kernel File SystemsMeng Xu, Sanidhya Kashyap, Hanqing Zhao, Taesoo KimS&P 2020 · 131 citations
  3. Fast, sound, and effectively complete dynamic race predictionAndreas PavlogiannisPOPL 2020 · 46 citations
  4. Optimal prediction of synchronization-preserving racesUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanPOPL 2021 · 36 citations
  5. SmartTrack: efficient predictive race detectionJake Roemer, Kaan Genç, Michael D. BondPLDI 2020 · 28 citations

Related papers

  1. NodeRT: Detecting Races in Node.js Applications PracticallyJingyao Zhou, Lei Xu, Gongzheng Lu, Weifeng Zhang et al.ISSTA 2023 · 1 citation
  2. Accurate Static Data Race Detection for CEmerson Sales, Omar Inverso, Emilio TuostoFM 2024 · 1 citation
  3. Tolerate Control-Flow Changes for Sound Data Race PredictionShihao Zhu, Yuqi Guo, Long Zhang, Yan CaiICSE 2023 · 5 citations
  4. Static executes-before analysis for event driven programsRekha R. Pai, Abhishek Uppar, Akshatha Shenoy, Pranshul Kushwaha et al.FSE 2022
  5. Race Detection for Event-Driven Node.js ApplicationsXiaoning Chang, Wensheng Dou, Jun Wei, Tao Huang et al.ASE 2021 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines