Lune

POPL2021顶会

Optimal prediction of synchronization-preserving races

Umang Mathur, Andreas Pavlogiannis, Mahesh Viswanathan

摘要

Concurrent programs are notoriously hard to write correctly, as scheduling nondeterminism introduces subtle errors that are both hard to detect and to reproduce. The most common concurrency errors are (data) races, which occur when memory-conflicting actions are executed concurrently. Consequently, considerable effort has been made towards developing efficient techniques for race detection. The most common approach is dynamic race prediction: given an observed, race-free trace 𝜎 of a concurrent program, the task is to decide whether events of 𝜎 can be correctly reordered to a trace 𝜎 * that witnesses a race hidden in 𝜎.

In this work we introduce the notion of sync(hronization)-preserving races. A sync-preserving race occurs in 𝜎 when there is a witness 𝜎 * in which synchronization operations (e.g., acquisition and release of locks) appear in the same order as in 𝜎. This is a broad definition that strictly subsumes the famous notion of happens-before races. Our main results are as follows. First, we develop a sound and complete algorithm for predicting sync-preserving races. For moderate values of parameters like the number of threads, the algorithm runs in 𝑂 (N ) time and space, where N is the length of the trace 𝜎. Second, we show that the problem has a Ω(N /log 2 N ) space lower bound, and thus our algorithm is essentially time and space optimal. Third, we show that predicting races with even just a single reversal of two sync operations is NP-complete and even W[1]-hard when parameterized by the number of threads. Thus, sync-preservation characterizes exactly the tractability boundary of race prediction, and our algorithm is nearly optimal for the tractable side. Our experiments show that our algorithm is fast in practice, while sync-preservation characterizes races often missed by state-of-the-art methods.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 17 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • The Complexity of Dynamic Data Race Prediction 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Sound Dynamic Deadlock Prediction in Linear Time 引用了 The Complexity of Dynamic Data Race Prediction
  • Sound Dynamic Deadlock Prediction in Linear Time 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Sound Dynamic Deadlock Prediction in Linear Time 引用了 SmartTrack: efficient predictive race detection
  • Sound Dynamic Deadlock Prediction in Linear Time 引用了 Atomicity Checking in Linear Time using Vector Clocks
  • Sound Dynamic Deadlock Prediction in Linear Time 引用了 Sound and efficient concurrency bug prediction
  • Greybox Fuzzing for Concurrency Testing 引用了 Sound Dynamic Deadlock Prediction in Linear Time
  • Greybox Fuzzing for Concurrency Testing 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Greybox Fuzzing for Concurrency Testing 引用了 SmartTrack: efficient predictive race detection
  • Greybox Fuzzing for Concurrency Testing 引用了 Atomicity Checking in Linear Time using Vector Clocks
  • Greybox Fuzzing for Concurrency Testing 引用了 Predictive Monitoring against Pattern Regular Languages
  • SmartTrack: efficient predictive race detection 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Predictive Monitoring against Pattern Regular Languages 引用了 The Complexity of Dynamic Data Race Prediction
  • Predictive Monitoring against Pattern Regular Languages 引用了 Sound Dynamic Deadlock Prediction in Linear Time
  • Predictive Monitoring against Pattern Regular Languages 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Predictive Monitoring against Pattern Regular Languages 引用了 SmartTrack: efficient predictive race detection
  • Predictive Monitoring against Pattern Regular Languages 引用了 Atomicity Checking in Linear Time using Vector Clocks
  • Predictive Monitoring against Pattern Regular Languages 引用了 Sound and efficient concurrency bug prediction
  • Sound and efficient concurrency bug prediction 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Optimal Reads-From Consistency Checking for C11-Style Memory Models 引用了 The Complexity of Dynamic Data Race Prediction
  • Optimal Reads-From Consistency Checking for C11-Style Memory Models 引用了 Fast, sound, and effectively complete dynamic race prediction
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper17

  1. Sound and efficient concurrency bug predictionYan Cai, Hao Yun, Jinqiu Wang, Lei Qiao 等FSE 2021 · 29 次引用
  2. Greybox Fuzzing for Concurrency TestingDylan Wolff, Zheng Shi, Gregory J. Duck, Umang Mathur 等ASPLOS 2024 · 19 次引用
  3. Sound Dynamic Deadlock Prediction in Linear TimeHünkar Can Tunç, Umang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanPLDI 2023 · 15 次引用
  4. Predictive Monitoring against Pattern Regular LanguagesZhendong Ang, Umang MathurPOPL 2024 · 12 次引用
  5. Optimal Reads-From Consistency Checking for C11-Style Memory ModelsHünkar Can Tunç, Parosh Aziz Abdulla, Soham Chakraborty, Shankaranarayanan Krishna 等PLDI 2023 · 12 次引用

它引用的 Paper4

  1. Fast, sound, and effectively complete dynamic race predictionAndreas PavlogiannisPOPL 2020 · 46 次引用
  2. SmartTrack: efficient predictive race detectionJake Roemer, Kaan Genç, Michael D. BondPLDI 2020 · 28 次引用
  3. The Complexity of Dynamic Data Race PredictionUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanLICS 2020 · 27 次引用
  4. Atomicity Checking in Linear Time using Vector ClocksUmang Mathur, Mahesh ViswanathanASPLOS 2020 · 27 次引用

相关 Paper

  1. Optimistic Prediction of Synchronization-Reversal Data RacesZheng Shi, Umang Mathur, Andreas PavlogiannisICSE 2024 · 8 次引用
  2. Predictive Monitoring with Strong Trace PrefixesZhendong Ang, Umang MathurCAV 2024 · 3 次引用
  3. Dynamic Race Detection with O(1) SamplesMosaad Al Thokair, Minjian Zhang, Umang Mathur, Mahesh ViswanathanPOPL 2023 · 9 次引用
  4. Accurate Static Data Race Detection for CEmerson Sales, Omar Inverso, Emilio TuostoFM 2024 · 1 次引用
  5. Efficient Timestamping for Sampling-Based Race DetectionMinjian Zhang, Daniel Wee Soong Lim, Mosaad Al Thokair, Umang Mathur 等PLDI 2025 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖