Lune

ICSE2024Top-tier venue

Constraint Based Program Repair for Persistent Memory Bugs

Zunchen Huang, Chao Wang

Abstract

We propose a constraint based method for repairing bugs associated with the use of persistent memory (PM) in application software. Our method takes a program execution trace and the violated property as input and returns a suggested repair, which is a combination of inserting new PM instructions and reordering these instructions to eliminate the property violation. Compared with the state-of-the-art approach, our method has three advantages. First, it can repair both durability and crash consistency bugs whereas the state-of-the-art approach can only repair the relatively-simple durability bugs. Second, our method can discover new repair strategies instead of relying on repair strategies hard-coded into the repair tool. Third, our method uses a novel symbolic encoding to model PM semantics, which allows our symbolic analysis to be more efficient than the explicit enumeration of possible scenarios and thus explore a large number of repairs quickly. We have evaluated our method on benchmark programs from the well-known Intel PMDK library as well as real applications such as Memcached, Recipe, and Redis. The results show that our method can repair all of the 41 known bugs in these benchmarks, while the state-of-the-art approach cannot repair any of the crash consistency bugs.

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.

3 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

  • Automated Insertion of Flushes and Fences for Persistency cites Jaaru: efficiently model checking persistent memory programs
  • Automated Insertion of Flushes and Fences for Persistency cites Fast, flexible, and comprehensive bug detection for persistent memory programs
  • Automated Insertion of Flushes and Fences for Persistency cites Cross-Failure Bug Detection in Persistent Memory Programs
  • Automated Insertion of Flushes and Fences for Persistency cites Discovering Likely Program Invariants for Persistent Memory
  • Automated Insertion of Flushes and Fences for Persistency cites AGAMOTTO: How Persistent is your Persistent Memory Application?
  • Jaaru: efficiently model checking persistent memory programs cites Cross-Failure Bug Detection in Persistent Memory Programs
  • Jaaru: efficiently model checking persistent memory programs cites AGAMOTTO: How Persistent is your Persistent Memory Application?
  • Fast, flexible, and comprehensive bug detection for persistent memory programs cites Cross-Failure Bug Detection in Persistent Memory Programs
  • Fast, flexible, and comprehensive bug detection for persistent memory programs cites AGAMOTTO: How Persistent is your Persistent Memory Application?
  • PMFuzz: test case generation for persistent memory programs cites Cross-Failure Bug Detection in Persistent Memory Programs
  • PMFuzz: test case generation for persistent memory programs cites AGAMOTTO: How Persistent is your Persistent Memory Application?
  • Discovering Likely Program Invariants for Persistent Memory cites Jaaru: efficiently model checking persistent memory programs
  • Discovering Likely Program Invariants for Persistent Memory cites PMFuzz: test case generation for persistent memory programs
  • Discovering Likely Program Invariants for Persistent Memory cites AGAMOTTO: How Persistent is your Persistent Memory Application?
  • AGAMOTTO: How Persistent is your Persistent Memory Application? cites Cross-Failure Bug Detection in Persistent Memory Programs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Mystique: Automated Vulnerability Patch Porting with Semantic and Syntactic-Enhanced LLMSusheng Wu, Ruisi Wang, Yiheng Cao, Bihuan Chen et al.FSE 2025 · 2 citations
  2. Automated Insertion of Flushes and Fences for PersistencyYutong Guo, Weiyu Luo, Brian DemskyASE 2025 · 1 citation
  3. Discovering Likely Program Invariants for Persistent MemoryZunchen Huang, Srivatsan Ravi, Chao WangASE 2024 · 1 citation

Builds on15

  1. Cross-Failure Bug Detection in Persistent Memory ProgramsSihang Liu, Korakit Seemakhupt, Yizhou Wei, Thomas F. Wenisch et al.ASPLOS 2020 · 60 citations
  2. AGAMOTTO: How Persistent is your Persistent Memory Application?Ian Neal, Ben Reeves, Ben Stoler, Andrew Quinn et al.OSDI 2020 · 43 citations
  3. Fast, flexible, and comprehensive bug detection for persistent memory programsBang Di, Jiawen Liu, Hao Chen, Dong LiASPLOS 2021 · 37 citations
  4. PMFuzz: test case generation for persistent memory programsSihang Liu, Suyash Mahar, Baishakhi Ray, Samira Manabi KhanASPLOS 2021 · 36 citations
  5. Jaaru: efficiently model checking persistent memory programsHamed Gorjiara, Guoqing Harry Xu, Brian DemskyASPLOS 2021 · 34 citations

Related papers

  1. Mumak: Efficient and Black-Box Bug Detection for Persistent MemoryJoão Gonçalves, Miguel Matos, Rodrigo RodriguesEuroSys 2023 · 5 citations
  2. Efficiently detecting concurrency bugs in persistent memory programsZhangyu Chen, Yu Hua, Yongle Zhang, Luochangqi DingASPLOS 2022 · 11 citations
  3. Hippocrates: healing persistent memory bugs without doing any harmIan Neal, Andrew Quinn, Baris KasikciASPLOS 2021 · 24 citations
  4. HybridPersist: A Compiler Support for User-Friendly and Efficient PM ProgrammingYiyu Zhang, Yongzhi Wang, Yanfeng Gao, Xuandong Li et al.OOPSLA 2025
  5. Chipmunk: Investigating Crash-Consistency in Persistent-Memory File SystemsHayley LeBlanc, Shankara Pailoor, Om Saran K. R. E., Isil Dillig et al.EuroSys 2023 · 11 citations
Dusk over the sea between two cliffs drawn in fine vertical lines