Data races vs. data race bugs
Authors:
Open Access
- 3 March 2012
- journal article
- conference paper
- Published by Association for Computing Machinery (ACM) in ACM SIGARCH Computer Architecture News
- Vol. 40 (1) , 185-198
Abstract
Even though most data races are harmless, the harmful ones are at the heart of some of the worst concurrency bugs. Alas, spotting just the harmful data races in programs is like finding a needle in a haystack: 76%-90% of the true data races reported by state-of-the-art race detectors turn out to be harmless [45]. We present Portend, a tool that not only detects races but also automatically classifies them based on their potential consequences: Could they lead to crashes or hangs? Could their effects be visible outside the program? Are they harmless? Our proposed technique achieves high accuracy by efficiently analyzing multiple paths and multiple thread schedules in combination, and by performing symbolic comparison between program outputs. We ran Portend on 7 real-world applications: it detected 93 true data races and correctly classified 92 of them, with no human effort. 6 of them are harmful races. Portend's classification accuracy is up to 88% higher than that of existing tools, and it produces easy-to-understand evidence of the consequences of harmful races, thus both proving their harmfulness and making debugging easier. We envision Portend being used for testing and debugging, as well as for automatically triaging bug reports.Keywords
This publication has 38 references indexed in Scilit:
- ATDetector2011
- Detecting and surviving data races using complementary schedules2011
- Testing concurrent programs on relaxed memory models2011
- Effective Program Verification for Relaxed Memory Models2008
- Race directed random testing of concurrent programs2008
- RaceTrack2005
- On-the-fly detection of access anomaliesACM SIGPLAN Notices, 2004
- EraserACM Transactions on Computer Systems, 1997
- Shared memory consistency models: a tutorialComputer, 1996
- Time, clocks, and the ordering of events in a distributed systemCommunications of the ACM, 1978