Lune

ASPLOS2025Top-tier venue

Dynamic Partial Deadlock Detection and Recovery via Garbage Collection

Georgian-Vlad Saioc, I-Ting Angelina Lee, Anders Møller, Milind Chabbi

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Who goes first? detecting go concurrency bugs via message reordering cites Automatically detecting and fixing concurrency bugs in go software systems
  • Automated Verification of Go Programs via Bounded Model Checking cites Automatically detecting and fixing concurrency bugs in go software systems
  • Detecting Blocking Errors in Go Programs using Localized Abstract Interpretation cites Who goes first? detecting go concurrency bugs via message reordering
  • Detecting Blocking Errors in Go Programs using Localized Abstract Interpretation cites Automated Verification of Go Programs via Bounded Model Checking
  • Detecting Blocking Errors in Go Programs using Localized Abstract Interpretation cites Automatically detecting and fixing concurrency bugs in go software systems
  • DR.FIX: Automatically Fixing Data Races at Industry Scale cites Automatically detecting and fixing concurrency bugs in go software systems
  • The Complexity of Testing Message-Passing Concurrency cites Who goes first? detecting go concurrency bugs via message reordering
  • The Complexity of Testing Message-Passing Concurrency cites Automated Verification of Go Programs via Bounded Model Checking
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. The Complexity of Testing Message-Passing ConcurrencyZheng Shi, Lasse Møldrup, Umang Mathur, Andreas PavlogiannisPOPL 2026 · 2 citations
  2. DR.FIX: Automatically Fixing Data Races at Industry ScaleFarnaz Behrang, Zhizhou Zhang, Georgian-Vlad Saioc, Peng Liu et al.PLDI 2025 · 1 citation

Builds on4

  1. Automatically detecting and fixing concurrency bugs in go software systemsZiheng Liu, Shuofei Zhu, Boqin Qin, Hao Chen et al.ASPLOS 2021 · 32 citations
  2. Who goes first? detecting go concurrency bugs via message reorderingZiheng Liu, Shihao Xia, Yu Liang, Linhai Song et al.ASPLOS 2022 · 21 citations
  3. Automated Verification of Go Programs via Bounded Model CheckingNicolas Dilley, Julien LangeASE 2021 · 21 citations
  4. Detecting Blocking Errors in Go Programs using Localized Abstract InterpretationOskar Haarklou Veileborg, Georgian-Vlad Saioc, Anders MøllerASE 2022 · 12 citations

Related papers

  1. Automated Verification of Parametric Channel-Based Process CommunicationGeorgian-Vlad Saioc, Julien Lange, Anders MøllerOOPSLA 2024 · 2 citations
  2. A study of real-world data races in GolangMilind Chabbi, Murali Krishna RamanathanPLDI 2022 · 34 citations
  3. GoPV: Detecting Blocking Concurrency Bugs Related to Shared-Memory Synchronization in GoWei Song, Xiaofan Xu, Jeff HuangISSTA 2025
  4. Deadlock prediction via generalized dependencyJinpeng Zhou, Hanmei Yang, John Lange, Tongping LiuISSTA 2022 · 5 citations
  5. Language-Agnostic Static Deadlock Detection for FuturesStefan K. MullerPPoPP 2024 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines