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 条
  • [41] DUAL-C: Building a "soft error efficient"on-the-fly compression mechanism for raw video data at edge devices
    Wei, Xiaohui
    Wang, Xiaonan
    Yue, Hengshan
    Jiang, Nan
    Zhao, Jianpeng
    Qiu, Meikang
    [J]. FUTURE GENERATION COMPUTER SYSTEMS-THE INTERNATIONAL JOURNAL OF ESCIENCE, 2024, 153 : 276 - 286
  • [42] An Efficient Common Substrings Algorithm for On-the-Fly Behavior-Based Malware Detection and Analysis
    Acosta, Jaime C.
    Mendoza, Humberto
    Medina, Brenda G.
    [J]. 2012 IEEE MILITARY COMMUNICATIONS CONFERENCE (MILCOM 2012), 2012,
  • [43] SNKC: An Efficient On-the-fly Pollution Detection Scheme for Content Distribution with Linear Network Coding
    Wang, Junsheng
    Wang, Jin
    Zhu, Yanqin
    Lu, Kejie
    [J]. 2013 IEEE 15TH INTERNATIONAL CONFERENCE ON HIGH PERFORMANCE COMPUTING AND COMMUNICATIONS & 2013 IEEE INTERNATIONAL CONFERENCE ON EMBEDDED AND UBIQUITOUS COMPUTING (HPCC_EUC), 2013, : 2298 - 2305
  • [44] Scalable data structure detection and classification for C/C++ binaries
    Istvan Haller
    Asia Slowinska
    Herbert Bos
    [J]. Empirical Software Engineering, 2016, 21 : 778 - 810
  • [45] Flash-Aware Buffering Scheme with the On-the-Fly Redo for Efficient Data Management in Flash Storage
    Jeong, Kyosung
    Lim, Sungchae
    Lee, Kichun
    Kim, Sang-Wook
    [J]. COMPUTER SCIENCE AND INFORMATION SYSTEMS, 2017, 14 (02) : 369 - 392
  • [46] Context-Sensitive Data Race Detection for Concurrent Programs
    Zhang, Yang
    Liu, Huan
    Qiao, Liu
    [J]. IEEE ACCESS, 2021, 9 : 20861 - 20867
  • [47] Static Data Race Detection for Concurrent Programs with Asynchronous Calls
    Kahlon, Vineet
    Sinha, Nishant
    Kruus, Erik
    Zhang, Yun
    [J]. 7TH JOINT MEETING OF THE EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND THE ACM SIGSOFT SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, 2009, : 13 - 22
  • [48] Static analysis for concurrent programs with applications to data race detection
    Kahlon V.
    Sankaranarayanan S.
    Gupta A.
    [J]. International Journal on Software Tools for Technology Transfer, 2013, 15 (4) : 321 - 336
  • [49] Refined method for dynamic data race detection of BPEL programs
    Lu, Weina
    Lu, Faming
    Bao, Yunxia
    Zeng, Qingtian
    Duan, Hua
    [J]. Jisuanji Jicheng Zhizao Xitong/Computer Integrated Manufacturing Systems, CIMS, 2022, 28 (10): : 3064 - 3080
  • [50] Parallel Data Race Detection for Task Parallel Programs with Locks
    Yoga, Adarsh
    Nagarakatte, Santosh
    Gupta, Aarti
    [J]. FSE'16: PROCEEDINGS OF THE 2016 24TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON FOUNDATIONS OF SOFTWARE ENGINEERING, 2016, : 833 - 845