Accurate Static Data Race Detection for C
Open Access
- 11 September 2024
- book chapter
- Published by Springer Nature
- p. 443-462
Abstract
Data races are a particular kind of subtle, unintended program behaviour arising from thread interference in shared-memory concurrency. In this paper, we propose an automated technique for static detection of data races in multi-threaded C programs with POSIX threads. The key element of our technique is a reduction to reachability. Our prototype implementation combines such reduction with context-bounded analysis. The approach proves competitive against state-of-the-art tools, finding new issues in the implementation of well-known lock-free data structures, and shows a considerably superior accuracy of analysis in the presence of complex shared-memory access patterns.Keywords
This publication has 57 references indexed in Scilit:
- A Prototype for Data Race Detection in CSeq 32022
- Deagle: An SMT-based Verifier for Multi-threaded Programs (Competition Contribution)2022
- Progress on Software Verification: SV-COMP 20222022
- Goblint: Thread-Modular Abstract Interpretation Using Side-Effecting Constraints2021
- Dartagnan: Leveraging Compiler Optimizations and the Price of Precision (Competition Contribution)2021
- BMC for Weak Memory Models: Relation Analysis for Compact SMT Encodings2019
- Goldilocks: Efficiently Computing the Happens-Before Relation Using Locksets2006
- Variations on Constants2006
- A Practical Multi-word Compare-and-Swap Operation2002
- Checking Safety Properties Using Induction and a SAT-Solver2000