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
来源
ASPLOS XV: FIFTEENTH INTERNATIONAL CONFERENCE ON ARCHITECTURAL SUPPORT FOR PROGRAMMING LANGUAGES AND OPERATING SYSTEMS | 2010年
关键词
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 条
  • [31] The probabilistic vehicle routing problem with service guarantees
    Chen, Lijian
    Chiang, Wen-Chyuan
    Russell, Robert
    Chen, Jun
    Sun, Dengfeng
    TRANSPORTATION RESEARCH PART E-LOGISTICS AND TRANSPORTATION REVIEW, 2018, 111 : 149 - 164
  • [32] Public transport trajectory planning with probabilistic guarantees
    Varga, Balazs
    Tettamanti, Tamas
    Kulcsar, Balazs
    Qu, Xiaobo
    TRANSPORTATION RESEARCH PART B-METHODOLOGICAL, 2020, 139 : 81 - 101
  • [33] Probabilistic routing in wireless networks with privacy guarantees
    Koh, Jing Yang
    Peters, Gareth W.
    Nevat, Ido
    Leong, Derek
    COMPUTER COMMUNICATIONS, 2020, 151 : 228 - 237
  • [34] Radius Aware Probabilistic Testing of Deadlocks with Guarantees
    Cai, Yan
    Yang, Zijiang
    2016 31ST IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE), 2016, : 356 - 367
  • [35] Probabilistic Recovery Guarantees for Sparsely Corrupted Signals
    Pope, Graeme
    Bracher, Annina
    Studer, Christoph
    IEEE TRANSACTIONS ON INFORMATION THEORY, 2013, 59 (05) : 3104 - 3116
  • [36] Probabilistic Guarantees for Safe Deep Reinforcement Learning
    Bacci, Edoardo
    Parker, David
    FORMAL MODELING AND ANALYSIS OF TIMED SYSTEMS, FORMATS 2020, 2020, 12288 : 231 - 248
  • [37] Fast Overcomplete Dictionary Construction with Probabilistic Guarantees
    Enrico Au-Yeung
    Greg Zanotti
    Bulletin of the Brazilian Mathematical Society, New Series, 2020, 51 : 719 - 743
  • [38] ReGuard: Finding Reentrancy Bugs in Smart Contracts
    Liu, Chao
    Liu, Han
    Cao, Zhao
    Chen, Zhong
    Chen, Bangdao
    Roscoe, Bill
    PROCEEDINGS 2018 IEEE/ACM 40TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING - COMPANION (ICSE-COMPANION, 2018, : 65 - 68
  • [39] Dual analysis for proving safety and finding bugs
    Popeea, Corneliu
    Chin, Wei-Ngan
    SCIENCE OF COMPUTER PROGRAMMING, 2013, 78 (04) : 390 - 411
  • [40] Searching for Bugs Using Probabilistic Suspect Implications
    Veira, Neil
    Poulos, Zissis
    Veneris, Andreas
    IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2020, 39 (12) : 5267 - 5280