Lune

POPL2024Top-tier venue

Predictive Monitoring against Pattern Regular Languages

Zhendong Ang, Umang Mathur

Abstract

The proof of Theorem 3.2 has been revised. Results unchanged.) While current bug detection techniques for concurrent software focus on unearthing low-level issues such as data races or deadlocks, they often fall short of discovering more intricate temporal behaviours that can arise even in the absence of such low-level issues. In this paper, we focus on the problem of dynamically analysing concurrent software against high-level temporal specifications such as LTL. Existing techniques for runtime monitoring against such specifications are primarily designed for sequential software and remain inadequate in the presence of concurrency -violations may be observed only in intricate thread interleavings, requiring many re-runs of the underlying software in conjunction with the analysis. Towards this, we study the problem of predictive runtime monitoring, inspired by the analogous problem of predictive data race detection studied extensively recently. The predictive runtime monitoring question asks, given an execution 𝜎, if it can be soundly reordered to expose violations of a specification. In general, this problem may become easily intractable when either the specifications or the notion of reorderings used is complex.

In this paper, we focus on specifications that are given in regular languages. Our notion of reorderings is trace equivalence, where an execution is considered a reordering of another if it can be obtained from the latter by successively commuting adjacent independent actions. We first show that, even in this simplistic setting, the problem of predictive monitoring admits a super-linear lower bound of 𝑂(𝑛 𝛼 ), where 𝑛 is the number of events in the execution, and 𝛼 is a parameter describing the degree of commutativity, and typically corresponds to the number of threads in the execution. As a result, predictive runtime monitoring even in this setting is unlikely to be efficiently solvable, unlike in the non-predictive setting where the problem can be checked using a deterministic finite automaton (and thus, a constant-space streaming linear-time algorithm).

Towards this, we identify a sub-class of regular languages, called pattern languages (and their extension generalized pattern languages). Pattern languages can naturally express specific ordering of some number of (labelled) events, and have been inspired by popular empirical hypotheses underlying many concurrency bug detection approaches such as the "small bug depth" hypothesis. More importantly, we show that for pattern (and generalized pattern) languages, the predictive monitoring problem can be solved using a constant-space streaming linear-time algorithm. We implement and evaluate our algorithm PatternTrack on benchmarks from the literature and show that it is effective in monitoring large-scale applications.

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.

8 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

  • Greybox Fuzzing for Concurrency Testing cites Truly stateless, optimal dynamic partial order reduction
  • Greybox Fuzzing for Concurrency Testing cites Razzer: Finding Kernel Race Bugs through Fuzzing
  • Greybox Fuzzing for Concurrency Testing cites Fast, sound, and effectively complete dynamic race prediction
  • Greybox Fuzzing for Concurrency Testing cites Optimal prediction of synchronization-preserving races
  • Predictive Monitoring with Strong Trace Prefixes cites Fast, sound, and effectively complete dynamic race prediction
  • Predictive Monitoring with Strong Trace Prefixes cites Optimal prediction of synchronization-preserving races
  • Predictive Monitoring with Strong Trace Prefixes cites Optimistic Prediction of Synchronization-Reversal Data Races
  • Selectively Uniform Concurrency Testing cites Greybox Fuzzing for Concurrency Testing
  • Selectively Uniform Concurrency Testing cites Fast, sound, and effectively complete dynamic race prediction
  • Selectively Uniform Concurrency Testing cites Optimal prediction of synchronization-preserving races
  • Selectively Uniform Concurrency Testing cites Optimistic Prediction of Synchronization-Reversal Data Races
  • Optimal prediction of synchronization-preserving races cites Fast, sound, and effectively complete dynamic race prediction
  • Efficient Decrease-and-Conquer Linearizability Monitoring cites Fast, sound, and effectively complete dynamic race prediction
  • Efficient Decrease-and-Conquer Linearizability Monitoring cites Optimal prediction of synchronization-preserving races
  • Efficient Decrease-and-Conquer Linearizability Monitoring cites Optimistic Prediction of Synchronization-Reversal Data Races
  • Optimistic Prediction of Synchronization-Reversal Data Races cites Razzer: Finding Kernel Race Bugs through Fuzzing
  • Optimistic Prediction of Synchronization-Reversal Data Races cites Fast, sound, and effectively complete dynamic race prediction
  • Optimistic Prediction of Synchronization-Reversal Data Races cites VSync: push-button verification and optimization for synchronization primitives on weak memory models
  • Optimistic Prediction of Synchronization-Reversal Data Races cites Optimal prediction of synchronization-preserving races
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Greybox Fuzzing for Concurrency TestingDylan Wolff, Zheng Shi, Gregory J. Duck, Umang Mathur et al.ASPLOS 2024 · 19 citations
  2. Optimistic Prediction of Synchronization-Reversal Data RacesZheng Shi, Umang Mathur, Andreas PavlogiannisICSE 2024 · 8 citations
  3. Selectively Uniform Concurrency TestingHuan Zhao, Dylan Wolff, Umang Mathur, Abhik RoychoudhuryASPLOS 2025 · 4 citations
  4. Predictive Monitoring with Strong Trace PrefixesZhendong Ang, Umang MathurCAV 2024 · 3 citations
  5. Efficient Decrease-and-Conquer Linearizability MonitoringLee Zheng Han, Umang MathurOOPSLA 2025 · 2 citations

Builds on14

  1. Razzer: Finding Kernel Race Bugs through FuzzingDae R. Jeong, Kyungtae Kim, Basavesh Shivakumar, Byoungyoung Lee et al.S&P 2019 · 202 citations
  2. Truly stateless, optimal dynamic partial order reductionMichalis Kokologiannakis, Iason Marmanis, Vladimir Gladstein, Viktor VafeiadisPOPL 2022 · 46 citations
  3. Fast, sound, and effectively complete dynamic race predictionAndreas PavlogiannisPOPL 2020 · 46 citations
  4. VSync: push-button verification and optimization for synchronization primitives on weak memory modelsJonas Oberhauser, Rafael Lourenco de Lima Chehab, Diogo Behrens, Ming Fu et al.ASPLOS 2021 · 40 citations
  5. Optimal prediction of synchronization-preserving racesUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanPOPL 2021 · 36 citations

Related papers

  1. Efficient Predictive Monitoring of Message Passing Interface ProgramsJiaqiang Yao, Haocheng Geng, Zhenbang ChenISSTA 2026
  2. Soundness of Predictive Concurrency AnalysesShuyang Liu, Doug Lea, Jens PalsbergOOPSLA 2025
  3. Sound and efficient concurrency bug predictionYan Cai, Hao Yun, Jinqiu Wang, Lei Qiao et al.FSE 2021 · 29 citations
  4. Sound Dynamic Deadlock Prediction in Linear TimeHünkar Can Tunç, Umang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanPLDI 2023 · 15 citations
  5. SmartTrack: efficient predictive race detectionJake Roemer, Kaan Genç, Michael D. BondPLDI 2020 · 28 citations
Dusk over the sea between two cliffs drawn in fine vertical lines