2019 · 17 citations · 70 references
ComputingComputer ScienceComputer SystemsFault-tolerant SystemsOperating SystemsSchedulingConcurrency AnalysisCpu SchedulingRace Condition VulnerabilitiesConcurrency Bug DetectionConcurrency Bug ReproductionConcurrency BugsData Race AnalysisData Race ConditionsRace Condition AnalysisRace Condition DetectionReplay
Modern applications include many sources of nondeterminism, e.g. due to concurrency, signals, and system calls that interact with the external environment. Finding and reproducing bugs in the presence of this nondeterminism has been the subject of much prior work in three main areas: (1) controlled concurrency-testing, where a custom scheduler replaces the OS scheduler to find subtle bugs; (2) record and replay, where sources of nondeterminism are captured and logged so that a failing execution can be replayed for debugging purposes; and (3) dynamic analysis for the detection of data races. We present a dynamic analysis tool for C++ applications, tsan11rec, which brings these strands of work together by integrating controlled concurrency testing and record and replay into the tsan11 framework for C++11 data race detection. Our novel twist on record and replay is a sparse approach, where the sources of nondeterminism to record can be configured per application. We show that our approach is effective at finding subtle concurrency bugs in small applications; is competitive in terms of performance with the state-of-the-art record and replay tool rr on larger applications; succeeds (due to our sparse approach) in replaying the I/O-intensive Zandronum and QuakeSpasm video games, which are out of scope for rr; but (due to limitations of our sparse approach) cannot faithfully replay applications where memory layout nondeterminism significantly affects application behaviour.
70
Christian Bienia, Sanjeev Kumar, Jaswinder Pal Singh et al. · 2008 · 3.4K citations
Shan Lu, Soyeon Park, Eunsoo Seo et al. · 2008 · 892 citations
George W. Dunlap, Samuel T. King, Sukru Cinar et al. · ACM SIGOPS Operating Systems Review · 2002 · 805 citations
Cormac Flanagan, Stephen N. Freund · 2009 · 671 citations