Fast, Sound, and Effectively Complete Dynamic Race Prediction

被引:24
|
作者
Pavlogiannis, Andreas [1 ]
机构
[1] Aarhus Univ, Aabogade 34, DK-8200 Aarhus, Denmark
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL | 2020年 / 4卷 / POPL期
基金
奥地利科学基金会;
关键词
concurrency; race detection; predictive analyses; DATARACE DETECTION;
D O I
10.1145/3371085
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Writing concurrent programs is highly error-prone due to the nondeterminism in interprocess communication. The most reliable indicators of errors in concurrency are data races, which are accesses to a shared resource that can be executed concurrently. We study the problem of predicting data races in lock-based concurrent programs. The input consists of a concurrent trace t, and the task is to determine all pairs of events oft that constitute a data race. The problem lies at the heart of concurrent verification and has been extensively studied for over three decades. However, existing polynomial-time sound techniques are highly incomplete and can miss simple races. In this work we develop M2: a new polynomial-time algorithm for this problem, which has no false positives. In addition, our algorithm is complete for input traces that consist of two processes, i.e., it provably detects all races in the trace. We also develop sufficient criteria for detecting completeness dynamically in cases of more than two processes. We make an experimental evaluation of our algorithm or a challenging set of benchmarks taken from recent literature on the topic. Our algorithm soundly reports hundreds of real races, many of which are missed by existing methods. In addition, using our dynamic completeness criteria, M2 concludes that it has detected all races in the benchmark set, hence the reports are both sound and complete. Finally, its running times are comparable, and often smaller than the theoretically fastest, yet highly incomplete, existing methods. To our knowledge, M2 is the first sound algorithm that achieves such a level of performance on both running time and completeness of the reported races.
引用
收藏
页数:29
相关论文
共 50 条
  • [1] Efficient, Near Complete, and Often Sound Hybrid Dynamic Data Race Prediction
    Sulzmann, Martin
    Stadtmueller, Kai
    MPLR '20: PROCEEDINGS OF THE 17TH INTERNATIONAL CONFERENCE ON MANAGED PROGRAMMING LANGUAGES AND RUNTIMES, 2020, : 30 - 51
  • [2] SLIMFAST: Reducing Metadata Redundancy in Sound and Complete Dynamic Data Race Detection
    Peng, Yuanfeng
    DeLozier, Christian
    Eizenberg, Ariel
    Mansky, William
    Devietti, Joseph
    2018 32ND IEEE INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM (IPDPS), 2018, : 835 - 844
  • [3] A SOUND AND COMPLETE AXIOMATIZATION FOR DYNAMIC TOPOLOGICAL LOGIC
    Fernandez-Duque, David
    JOURNAL OF SYMBOLIC LOGIC, 2012, 77 (03) : 947 - 969
  • [4] The Complexity of Dynamic Data Race Prediction
    Mathur, Umang
    Pavlogiannis, Andreas
    Viswanathan, Mahesh
    PROCEEDINGS OF THE 35TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS 2020), 2020, : 713 - 727
  • [5] Dynamic Race Prediction in Linear Time
    Kini, Dileep
    Mathur, Umang
    Viswanathan, Mahesh
    ACM SIGPLAN NOTICES, 2017, 52 (06) : 157 - 170
  • [6] Fast Diffraction Pathfinding for Dynamic Sound Propagation
    Schissler, Carl
    Muckl, Gregor
    Calamia, Paul
    ACM TRANSACTIONS ON GRAPHICS, 2021, 40 (04):
  • [7] Optimized Sound and Complete Data Race Detection in Structured Parallel Programs
    Storey, Kyle
    Powell, Jacob
    Ben Ogles
    Hooker, Joshua
    Aldous, Peter
    Mercer, Eric
    LANGUAGES AND COMPILERS FOR PARALLEL COMPUTING (LCPC 2018), 2019, 11882 : 94 - 111
  • [8] RADISH: Always-On Sound and Complete Race Detection in Software and Hardware
    Devietti, Joseph
    Wood, Benjamin P.
    Strauss, Karin
    Ceze, Luis
    Grossman, Dan
    Qadeer, Shaz
    2012 39TH ANNUAL INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE (ISCA), 2012, : 201 - 212
  • [9] Sound Dynamic Deadlock Prediction in Linear Time
    Tunc, Hünkar Can
    Mathur, Umang
    Pavlogiannis, Andreas
    Viswanathan, Mahesh
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2023, 7 (PLDI): : 1733 - 1758
  • [10] Research on Fast Prediction Method of Coherent Sound Field
    Lv Y.
    Liu Z.
    Wu Q.
    Yi C.
    Zhendong Ceshi Yu Zhenduan/Journal of Vibration, Measurement and Diagnosis, 2022, 42 (05): : 958 - 966