Lune

PLDI2023顶会

Sound Dynamic Deadlock Prediction in Linear Time

Hünkar Can Tunç, Umang Mathur, Andreas Pavlogiannis, Mahesh Viswanathan

摘要

Deadlocks are one of the most notorious concurrency bugs, and significant research has focused on detecting them efficiently. Dynamic predictive analyses work by observing concurrent executions, and reason about alternative interleavings that can witness concurrency bugs. Such techniques offer scalability and sound bug reports, and have emerged as an effective approach for concurrency bug detection, such as data races. Effective dynamic deadlock prediction, however, has proven a challenging task, as no deadlock predictor currently meets the requirements of soundness, high-precision, and efficiency.

In this paper, we first formally establish that this tradeoff is unavoidable, by showing that (a) sound and complete deadlock prediction is intractable, in general, and (b) even the seemingly simpler task of determining the presence of potential deadlocks, which often serve as unsound witnesses for actual predictable deadlocks, is intractable. The main contribution of this work is a new class of predictable deadlocks, called sync(hronization)preserving deadlocks. Informally, these are deadlocks that can be predicted by reordering the observed execution while preserving the relative order of conflicting critical sections. We present two algorithms for sound deadlock prediction based on this notion. Our first algorithm SPDOffline detects all sync-preserving deadlocks, with running time that is linear per abstract deadlock pattern, a novel notion also introduced in this work. Our second algorithm SPDOnline predicts all sync-preserving deadlocks that involve two threads in a strictly online fashion, runs in overall linear time, and is better suited for a runtime monitoring setting.

We implemented both our algorithms and evaluated their ability to perform offline and online deadlockprediction on a large dataset of standard benchmarks. Our results indicate that our new notion of syncpreserving deadlocks is highly effective, as (i) it can characterize the vast majority of deadlocks and (ii) it can be detected using an online, sound, complete and highly efficient algorithm.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • The Complexity of Dynamic Data Race Prediction 引用了 Fast, sound, and effectively complete dynamic race prediction
  • CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution Analysis 引用了 The Complexity of Dynamic Data Race Prediction
  • CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution Analysis 引用了 Fast, sound, and effectively complete dynamic race prediction
  • CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution Analysis 引用了 SmartTrack: efficient predictive race detection
  • CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution Analysis 引用了 Sound and efficient concurrency bug prediction
  • CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution Analysis 引用了 Optimistic Prediction of Synchronization-Reversal Data Races
  • Coarser Equivalences for Causal Concurrency 引用了 The Complexity of Dynamic Data Race Prediction
  • Coarser Equivalences for Causal Concurrency 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Coarser Equivalences for Causal Concurrency 引用了 Optimal prediction of synchronization-preserving races
  • 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 引用了 Predictive Monitoring against Pattern Regular Languages
  • Greybox Fuzzing for Concurrency Testing 引用了 Optimal prediction of synchronization-preserving races
  • 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 引用了 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 引用了 Sound and efficient concurrency bug prediction
  • Predictive Monitoring against Pattern Regular Languages 引用了 Optimal prediction of synchronization-preserving races
  • Sound and efficient concurrency bug prediction 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Sound and efficient concurrency bug prediction 引用了 Optimal prediction of synchronization-preserving races
  • Optimal prediction of synchronization-preserving races 引用了 The Complexity of Dynamic Data Race Prediction
  • Optimal prediction of synchronization-preserving races 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Optimal prediction of synchronization-preserving races 引用了 SmartTrack: efficient predictive race detection
  • Optimistic Prediction of Synchronization-Reversal Data Races 引用了 The Complexity of Dynamic Data Race Prediction
  • Optimistic Prediction of Synchronization-Reversal Data Races 引用了 Coarser Equivalences for Causal Concurrency
  • Optimistic Prediction of Synchronization-Reversal Data Races 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Optimistic Prediction of Synchronization-Reversal Data Races 引用了 SmartTrack: efficient predictive race detection
  • Optimistic Prediction of Synchronization-Reversal Data Races 引用了 Predictive Monitoring against Pattern Regular Languages
  • Optimistic Prediction of Synchronization-Reversal Data Races 引用了 Optimal prediction of synchronization-preserving races
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper14

  1. Greybox Fuzzing for Concurrency TestingDylan Wolff, Zheng Shi, Gregory J. Duck, Umang Mathur 等ASPLOS 2024 · 19 次引用
  2. Predictive Monitoring against Pattern Regular LanguagesZhendong Ang, Umang MathurPOPL 2024 · 12 次引用
  3. Coarser Equivalences for Causal ConcurrencyAzadeh Farzan, Umang MathurPOPL 2024 · 8 次引用
  4. Optimistic Prediction of Synchronization-Reversal Data RacesZheng Shi, Umang Mathur, Andreas PavlogiannisICSE 2024 · 8 次引用
  5. CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution AnalysisHünkar Can Tunç, Ameya Prashant Deshmukh, Berk Çirisci, Constantin Enea 等ASPLOS 2024 · 6 次引用

它引用的 Paper8

  1. Fast, sound, and effectively complete dynamic race predictionAndreas PavlogiannisPOPL 2020 · 46 次引用
  2. Optimal prediction of synchronization-preserving racesUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanPOPL 2021 · 36 次引用
  3. Sound and efficient concurrency bug predictionYan Cai, Hao Yun, Jinqiu Wang, Lei Qiao 等FSE 2021 · 29 次引用
  4. SmartTrack: efficient predictive race detectionJake Roemer, Kaan Genç, Michael D. BondPLDI 2020 · 28 次引用
  5. The Complexity of Dynamic Data Race PredictionUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanLICS 2020 · 27 次引用

相关 Paper

  1. Predictive Monitoring with Strong Trace PrefixesZhendong Ang, Umang MathurCAV 2024 · 3 次引用
  2. A Predictive Analysis for Detecting Deadlock in MPI ProgramsYu Huang, Benjamin Ogles, Eric MercerASE 2020 · 3 次引用
  3. Soundness of Predictive Concurrency AnalysesShuyang Liu, Doug Lea, Jens PalsbergOOPSLA 2025
  4. An ownership policy and deadlock detector for promisesCaleb Voss, Vivek SarkarPPoPP 2021 · 2 次引用
  5. DLOS: Effective Static Detection of Deadlocks in OS KernelsJia-Ju Bai, Tuo Li, Shi-Min HuUSENIX ATC 2022 · 10 次引用
黄昏的海面,两侧是细线勾勒的悬崖