A Randomized Scheduler with Probabilistic Guarantees of Finding Bugs

被引:0
|
作者
Burckhardt, Sebastian [1 ]
Kothari, Pravesh
Musuvathi, Madanlal [1 ]
Nagarakatte, Santosh
机构
[1] Microsoft Res, Redmond, WA 98052 USA
关键词
Concurrency; Race Conditions; Randomized Algorithms; Testing;
D O I
暂无
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
This paper presents a randomized scheduler for finding concurrency bugs. Like current stress-testing methods, it repeatedly runs a given test program with supplied inputs. However, it improves on stress-testing by finding buggy schedules more effectively and by quantifying the probability of missing concurrency bugs. Key to its design is the characterization of the depth of a concurrency bug as the minimum number of scheduling constraints required to find it. In a single run of a program with n threads and k steps, our scheduler detects a concurrency bug of depth d with probability at least 1/nk(d-1). We hypothesize that in practice, many concurrency bugs (including well-known types such as ordering errors, atomicity violations, and deadlocks) have small bug-depths, and we confirm the efficiency of our schedule randomization by detecting previously unknown and known concurrency bugs in several production-scale concurrent programs.
引用
收藏
页码:167 / 178
页数:12
相关论文
共 50 条
  • [21] ABASH: Finding Bugs in Bash Scripts
    Mazurak, Karl
    Zdancewic, Steve
    PLAS'07: PROCEEDINGS OF THE 2007 ACM SIGPLAN WORKSHOP ON PROGRAMMING LANGUAGES AND ANALYSIS FOR SECURITY, 2007, : 105 - 114
  • [22] UBFUZZ: Finding Bugs in Sanitizer Implementations
    Li, Shaohua
    Su, Zhendong
    PROCEEDINGS OF THE 29TH ACM INTERNATIONAL CONFERENCE ON ARCHITECTURAL SUPPORT FOR PROGRAMMING LANGUAGES AND OPERATING SYSTEMS, ASPLOS 2024, VOL 1, 2024, : 435 - 449
  • [23] Analyze of Probabilistic Algorithms under Indeterministic Scheduler
    Beauquier, Joffroy
    Johnen, Colette
    PROCEEDINGS OF THE 2008 INTERNATIONAL SYMPOSIUM ON PARALLEL AND DISTRIBUTED PROCESSING WITH APPLICATIONS, 2008, : 553 - 558
  • [24] A Scheduler for Smart Homes with Probabilistic User Preferences
    Van Nguyen
    Yeoh, William
    Son, Tran Cao
    Kreinovich, Vladik
    Le, Tiep
    PRINCIPLES AND PRACTICE OF MULTI-AGENT SYSTEMS (PRIMA 2019), 2019, 11873 : 138 - 152
  • [25] An adaptive scheduler to provide QoS guarantees in an input-buffered switch
    Chen, CX
    Komatsu, M
    2002 IEEE INTERNATIONAL CONFERENCE ON COMMUNICATIONS, VOLS 1-5, CONFERENCE PROCEEDINGS, 2002, : 1118 - 1122
  • [26] Numerically Efficient Probabilistic Guarantees for Resource Reservations
    Manica, Nicola
    Palopoli, Luigi
    Abeni, Luca
    2012 IEEE 17TH CONFERENCE ON EMERGING TECHNOLOGIES & FACTORY AUTOMATION (ETFA), 2012,
  • [27] Fast Overcomplete Dictionary Construction with Probabilistic Guarantees
    Au-Yeung, Enrico
    Zanotti, Greg
    BULLETIN OF THE BRAZILIAN MATHEMATICAL SOCIETY, 2020, 51 (03): : 719 - 743
  • [28] Probabilistic guarantees for rendezvous under noisy measurements
    Caicedo-Nunez, Carlos H.
    Zefran, Milos
    2009 AMERICAN CONTROL CONFERENCE, VOLS 1-9, 2009, : 5180 - 5185
  • [29] An Efficient Robotic Exploration Planner with Probabilistic Guarantees
    Ivanov, Alexander
    Campbell, Mark
    2016 IEEE INTERNATIONAL CONFERENCE ON ROBOTICS AND AUTOMATION (ICRA), 2016, : 4215 - 4221
  • [30] Probabilistic Safety Guarantees for Markov Decision Processes
    Wisniewski, Rafal
    Bujorianu, Manuela L.
    IEEE TRANSACTIONS ON AUTOMATIC CONTROL, 2023, 68 (12) : 8095 - 8102