Debugging Multithreaded Programs as if They Were Sequential
Open Access
- 11 May 2018
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 6, 40024-40040
Abstract
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 study, 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.Keywords
Funding Information
- National Basic Research Program of China (2016YFB1000903)
- National Natural Science Foundation of China (61632015, 61472318, 61532015, 61772408, U1766215, U173632015)
- Fok Ying-Tong Educaion Foundation (151067)
- Ministry of Education Iarch Funds for the Central Universities
This publication has 45 references indexed in Scilit:
- Finding schedule-sensitive branches2015
- Stateless model checking concurrent programs with maximal causality reductionACM SIGPLAN Notices, 2015
- Race detection for Android applicationsACM SIGPLAN Notices, 2014
- CLAPACM SIGPLAN Notices, 2013
- Persuasive prediction of concurrency access anomalies2011
- Generating Data Race Witnesses by an SMT-Based Analysis2011
- GAMBITACM SIGPLAN Notices, 2010
- Towards a framework and a benchmark for testing tools for multi‐threaded programsConcurrency and Computation: Practice and Experience, 2006
- Testing Concurrent Java Programs using Randomized SchedulingElectronic Notes in Theoretical Computer Science, 2002
- Symbolic execution and program testingCommunications of the ACM, 1976