Precise and Maximal Race Detection from Incomplete Traces Conference Paper uri icon

abstract

  • We present RDIT, a novel dynamic technique to detect data races in multithreaded programs with incomplete trace information, i.e., in the presence of missing events. RDIT is both precise and maximal: it does not report any false alarms and it detects a maximal set of true traces from the observed incomplete trace. RDIT is underpinned by a sound BarrierPair model that abstracts away the missing events by capturing the invocation data of their enclosing methods. By making the least conservative abstraction that a missing method introduces synchronization only when it has a memory address in scope that overlaps with other events or other missing methods, and by formulating maximal thread causality as logical constraints, RDIT guarantees to precisely detect races with maximal capability. RDIT has been applied in seven real-world large concurrent systems and has detected dozens of true races with zero false alarms. Comparatively, existing algorithms such as Happens-Before, Causal- Precedes, and Maximal-Causality which are known to be precise all report many false alarms when missing synchronizations.

published proceedings

  • ACM SIGPLAN NOTICES

author list (cited authors)

  • Huang, J., & Rajagopalan, A. K.

citation count

  • 4

complete list of authors

  • Huang, Jeff||Rajagopalan, Arun K

publication date

  • December 2016