RaceTrack
Authors:
Open Access
- 20 October 2005
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGOPS Operating Systems Review
- Vol. 39 (5) , 221-234
Abstract
Bugs due to data races in multithreaded programs often exhibit non-deterministic symptoms and are notoriously difficult to find. This paper describes RaceTrack, a dynamic race detection tool that tracks the actions of a program and reports a warning whenever a suspicious pattern of activity has been observed. RaceTrack uses a novel hybrid detection algorithm and employs an adaptive approach that automatically directs more effort to areas that are more suspicious, thus providing more accurate warnings for much less over-head. A post-processing step correlates warnings and ranks code segments based on how strongly they are implicated in potential data races. We implemented RaceTrack inside the virtual machine of Microsoft's Common Language Runtime (product version v1.1.4322) and monitored several major, real-world applications directly out-of-the-box,without any modification. Adaptive tracking resulted in a slowdown ratio of about 3x on memory-intensive programs and typically much less than 2x on other programs,and a memory ratio of typically less than 1.2x. Several serious data race bugs were revealed, some previously unknown.Keywords
This publication has 18 references indexed in Scilit:
- Race checking by context inference2004
- RacerX2003
- Efficient on-the-fly data race detection in multithreaded C++ programs2003
- RecPlayACM Transactions on Computer Systems, 1999
- EraserACM Transactions on Computer Systems, 1997
- Online data-race detection via coherency guarantees1996
- Techniques for debugging parallel programs with flowback analysisACM Transactions on Programming Languages and Systems, 1991
- An empirical comparison of monitoring algorithms for access anomaly detection1990
- On-the-fly detection of access anomalies1989
- Time, clocks, and the ordering of events in a distributed systemCommunications of the ACM, 1978