Debugging Multithreaded Programs as if They Were Sequential

被引:1
|
作者
Zhang, Xiaodong [1 ]
Yang, Zijiang [4 ]
Zheng, Qinghua [3 ]
Hao, Yu [3 ]
Liu, Pei [1 ]
Yu, Lechen [3 ]
Liu, Ting [2 ]
机构
[1] Xi An Jiao Tong Univ, Dept Comp Sci & Technol, Xian 710049, Shaanxi, Peoples R China
[2] Xi An Jiao Tong Univ, Syst Engn Inst, Xian 710049, Shaanxi, Peoples R China
[3] Xi An Jiao Tong Univ, Xian 710049, Shaanxi, Peoples R China
[4] Western Michgian Univ, Comp Sci, Kalamazoo, MI 49008 USA
来源
IEEE ACCESS | 2018年 / 6卷
基金
中国国家自然科学基金;
关键词
Testing; debugging; multithreaded programs; symbolic analysis; constraint solving; CONCURRENT PROGRAMS; SYMBOLIC EXECUTION; RACE DETECTION; BUGS;
D O I
10.1109/ACCESS.2018.2835672
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Debugging multithread programs is extremely difficult because the basic assumption that underlies sequential program debugging, that is, the program behavior is deterministic under a fixed input, is no longer valid due to the nondeterminism attributed to thread scheduling. It is because the programs behavior is non-deterministic due to the nondeterminism of parallel execution, which makes debugging or testing multithreaded programs extremely difficult. In this paper, we propose a proactive debugging method to restore this basic assumption so that programmers can debug multithreaded programs as if they were sequential. Our approach is based on the synergistic integration of symbolic analysis and dynamic analysis techniques. In particular, symbolic analysis investigates the program behavior under the same input to search whether there is a thread schedule would trigger a bug or a not-yet-explored path. Dynamic analysis is to execute these new paths with the guide of the generated thread schedules, thereby further guiding the symbolic analysis. The net effect of applying this feedback loop is a systematic and complete coverage of the program behavior under a fixed test input. We implement the proposed approach in a prototype tool called proactive-debugger. Our experiments show that proactive-debugger outperforms both ESBMC and Maple, which are two powerful and well-known testing tools for failure detection in multithreaded programs.
引用
收藏
页码:40024 / 40040
页数:17
相关论文
共 50 条
  • [31] Security of Multithreaded Programs by Compilation
    Barthe, Gilles
    Rezk, Tamara
    Russo, Alejandro
    Sabelfeld, Andrei
    [J]. ACM TRANSACTIONS ON INFORMATION AND SYSTEM SECURITY, 2010, 13 (03)
  • [32] Visualizing Potential Deadlocks in Multithreaded Programs
    Kim, Byung-Chul
    Jun, Sang-Woo
    Hwang, Dae Joon
    Jun, Yong-Kee
    [J]. PARALLEL COMPUTING TECHNOLOGIES, PROCEEDINGS, 2009, 5698 : 321 - +
  • [33] Pointer and escape analysis for multithreaded programs
    Salcianu, A
    Rinard, M
    [J]. ACM SIGPLAN NOTICES, 2001, 36 (07) : 12 - 23
  • [34] Constraint graph analysis of multithreaded programs
    Cain, HW
    Lipasti, MH
    Nair, R
    [J]. 12TH INTERNATIONAL CONFERENCE ON PARALLEL ARCHITECTURES AND COMPILATION TECHNIQUES, PROCEEDINGS, 2003, : 4 - 14
  • [35] ADAPT: A Framework for Coscheduling Multithreaded Programs
    Pusukuri, Kishore Kumar
    Gupta, Rajiv
    Bhuyan, Laxmi N.
    [J]. ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2013, 9 (04)
  • [36] Reachability in Binary Multithreaded Programs Is Polynomial
    Malkis, Alexander
    Borgwardt, Steffen
    [J]. 2017 IEEE 37TH INTERNATIONAL CONFERENCE ON DISTRIBUTED COMPUTING SYSTEMS (ICDCS 2017), 2017, : 2083 - 2088
  • [37] UNDERSTANDING AND DEBUGGING NOVICE PROGRAMS
    JOHNSON, WL
    [J]. ARTIFICIAL INTELLIGENCE, 1990, 42 (01) : 51 - 97
  • [38] DEBUGGING ADA TASKING PROGRAMS
    HELMBOLD, D
    LUCKHAM, D
    [J]. IEEE SOFTWARE, 1985, 2 (02) : 47 - 57
  • [39] WRITING AND DEBUGGING COMPUTER PROGRAMS
    PHELAN, PF
    [J]. CHEMICAL ENGINEERING, 1973, 80 (13) : 98 - 106
  • [40] Statistical debugging of sampled programs
    Zheng, AX
    Jordan, MI
    Liblit, B
    Aiken, A
    [J]. ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 16, 2004, 16 : 603 - 610