Efficient on-the-fly data race detection in multithreaded C++ programs

被引:0
|
作者
Pozniansky, E [1 ]
Schuster, A [1 ]
机构
[1] Technion Israel Inst Technol, Dept Comp Sci, IL-32000 Haifa, Israel
关键词
algorithms; performance; data race; concurrency; multithreading; instrumentation; synchronization;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Data race detection is highly essential for debugging multithreaded programs and assuring their correctness, Nevertheless, there is no single universal technique capable of handling the task efficiently, since the data race detection problem is computationally hard in the general case. Thus, to approximate the possible races in a program, all currently available tools take different "short-cuts", such as using strong assumptions on the program structure or applying various heuristics. When applied to some general case program, however, they usually result in excessive false alarms or in a large number of undetected races. Another major drawback of many currently available tools is that they are restricted, for performance reasons, to detection units of fixed size. Thus, they all suffer from the same problem-choosing a small unit might result in missing some of the data races, while choosing a large one might lead to false detection. In this paper we present a novel testing tool, called Multi-Race, which combines improved versions of Djit and Lockset-two very powerful on-the-fly algorithms for dynamic detection of apparent data races. Both extended algorithms detect races in multithreaded programs that may execute on weak consistency systems, and may use two-way as well as global synchronization primitives. By employing novel technologies, MultiRace adjusts its detection to the native granularity of objects and variables in the program under examination. In order to monitor all accesses to each of the shared locations, MultiRace instruments the C++ source code of the program. It lets the user fine-tune the detection process, but otherwise is completely automatic and transparent. This paper describes the algorithms employed in MultiRace, discusses some of its implementation issues, and proposes several optimizations to it. The paper shows that the overheads imposed by MultiRace are often much smaller (orders of magnitude) than those obtained by other existing dynamic techniques.
引用
收藏
页码:178 / 189
页数:12
相关论文
共 50 条
  • [21] Eraser: A dynamic data race detector for multithreaded programs
    Savage, S
    Burrows, M
    Nelson, G
    Sobalvarro, P
    Anderson, T
    [J]. ACM TRANSACTIONS ON COMPUTER SYSTEMS, 1997, 15 (04): : 391 - 411
  • [22] A protocol-centric approach to on-the-fly race detection
    Perkovic, D
    Keleher, PJ
    [J]. IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2000, 11 (10) : 1058 - 1072
  • [23] BlockRace: A Big Data Approach to Dynamic Block-based Data Race Detection for Multithreaded Programs
    Mei, Xiupei
    Wei, Zhengyuan
    Zhang, Hao
    Chan, W. K.
    [J]. 2020 IEEE/ACM 15TH INTERNATIONAL CONFERENCE ON AUTOMATION OF SOFTWARE TEST, AST, 2020, : 71 - 80
  • [24] Efficient Data Race Detection for C/C plus plus Programs Using Dynamic Granularity
    Song, Young Wn
    Lee, Yann-Hang
    [J]. 2014 IEEE 28TH INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM, 2014,
  • [25] On-the-fly Data Compression for Efficient TCP Transmission
    Wang, Min
    Wang, Junfeng
    Mou, Xuan
    Han, Sunyoung
    [J]. KSII TRANSACTIONS ON INTERNET AND INFORMATION SYSTEMS, 2013, 7 (03): : 471 - 489
  • [26] A dynamic predictive race detector for C/C++ programs
    Peng Luo
    Deqing Zou
    Hai Jin
    Yajuan Du
    Jinan Shen
    [J]. The Journal of Supercomputing, 2017, 73 : 3999 - 4019
  • [27] Lightweight Labeling Scheme for On-the-fly Race Detection of Signal Handlers
    Tchamgoue, Guy Martin
    Ha, Ok-Kyoon
    Kim, Kyong-Hoon
    Jun, Yong-Kee
    [J]. UBIQUITOUS COMPUTING AND MULTIMEDIA APPLICATIONS, PT II, 2011, 151 : 201 - 208
  • [28] On-the-Fly Data Synopses: Efficient Data Exploration in the Simulation Sciences
    Heinis, Thomas
    Ham, David A.
    [J]. SIGMOD RECORD, 2015, 44 (02) : 23 - 28
  • [29] An automatic defect detection for C++ programs
    Sarala, S
    Valli, S
    [J]. Advanced Reliability Modeling, 2004, : 419 - 426
  • [30] C.OPEN and ANNOTATOR:: Tools for on-the-fly model checking C programs
    del Mar Gallardo, Maria
    Joubert, Christophe
    Merino, Pedro
    Sanan, David
    [J]. MODEL CHECKING SOFTWARE, PROCEEDINGS, 2007, 4595 : 268 - +