Dynamic Partial Deadlock Detection and Recovery via Garbage Collection
Georgian-Vlad Saioc, I-Ting Angelina Lee, Anders Møller, Milind Chabbi
摘要
A challenge of writing concurrent message-passing programs is ensuring the absence of partial deadlocks, which can cause severe memory leaks in long-running systems. The Go programming language is particularly susceptible to this problem due to its support of message passing and ease of lightweight concurrency creation.
We propose a novel dynamic technique to detect partial deadlocks by soundly approximating liveness using the garbage collector's marking phase. The approach allows systems to not only detect, but also automatically redress partial deadlocks and alleviate their impact on memory.
We implement the approach in the tool Golf, as an extension to the garbage collector of the Go runtime system and evaluate its effectiveness in a series of experiments. Preliminary results show that the approach is effective at detecting 94% and 50% of partial deadlocks in a series of microbenchmarks and the test suites of a large-scale industrial codebase, respectively. Furthermore, we deployed Golf on a real service used by Uber, and over a period of 24 hours, effectively detected 252 partial deadlocks caused by three programming errors.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Who goes first? detecting go concurrency bugs via message reordering 引用了 Automatically detecting and fixing concurrency bugs in go software systems
- Automated Verification of Go Programs via Bounded Model Checking 引用了 Automatically detecting and fixing concurrency bugs in go software systems
- Detecting Blocking Errors in Go Programs using Localized Abstract Interpretation 引用了 Who goes first? detecting go concurrency bugs via message reordering
- Detecting Blocking Errors in Go Programs using Localized Abstract Interpretation 引用了 Automated Verification of Go Programs via Bounded Model Checking
- Detecting Blocking Errors in Go Programs using Localized Abstract Interpretation 引用了 Automatically detecting and fixing concurrency bugs in go software systems
- DR.FIX: Automatically Fixing Data Races at Industry Scale 引用了 Automatically detecting and fixing concurrency bugs in go software systems
- The Complexity of Testing Message-Passing Concurrency 引用了 Who goes first? detecting go concurrency bugs via message reordering
- The Complexity of Testing Message-Passing Concurrency 引用了 Automated Verification of Go Programs via Bounded Model Checking
引用它的顶会 Paper2
它引用的 Paper4
- Automatically detecting and fixing concurrency bugs in go software systemsZiheng Liu, Shuofei Zhu, Boqin Qin, Hao Chen 等ASPLOS 2021 · 32 次引用
- Who goes first? detecting go concurrency bugs via message reorderingZiheng Liu, Shihao Xia, Yu Liang, Linhai Song 等ASPLOS 2022 · 21 次引用
- Automated Verification of Go Programs via Bounded Model CheckingNicolas Dilley, Julien LangeASE 2021 · 21 次引用
- Detecting Blocking Errors in Go Programs using Localized Abstract InterpretationOskar Haarklou Veileborg, Georgian-Vlad Saioc, Anders MøllerASE 2022 · 12 次引用
相关 Paper
- Automated Verification of Parametric Channel-Based Process CommunicationGeorgian-Vlad Saioc, Julien Lange, Anders MøllerOOPSLA 2024 · 2 次引用
- A study of real-world data races in GolangMilind Chabbi, Murali Krishna RamanathanPLDI 2022 · 34 次引用
- GoPV: Detecting Blocking Concurrency Bugs Related to Shared-Memory Synchronization in GoWei Song, Xiaofan Xu, Jeff HuangISSTA 2025
- Deadlock prediction via generalized dependencyJinpeng Zhou, Hanmei Yang, John Lange, Tongping LiuISSTA 2022 · 5 次引用
- Language-Agnostic Static Deadlock Detection for FuturesStefan K. MullerPPoPP 2024 · 1 次引用
