arrow
Return

Achieving High MAP-Coverage Through Pattern Constraint Reduction

delete2023-01-01
delete2
delete
OA
AI
Y
Yingquan Zhao
Z
Zan Wang
刘爽 cover
刘爽 (Shuang Liu) *
孙俊 cover
孙俊 (Jun Sun)
J
Junjie Chen
X
Xiang Chen
DOI:10.1109/TSE.2022.3144480delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Testing multi-threaded programs is challenging due to the enormous space of thread interleavings. Recently, a code coverage criterion for multi-threaded programs called MAP-coverage has been proposed and shown to be effective for testing concurrent programs. Existing approaches for achieving high MAP-coverage are based on random testing with simple heuristics, which is ineffective in systematically triggering rare thread interleavings. In this study, we propose a novel approach called pattern constraint reduction (PCR), which employs optimized constraint solving to generate thread interleavings for high MAP-coverage. The idea is to iteratively encode and solve path conditions to generate thread interleavings which are guaranteed to improve MAP-coverage. Furthermore, we effectively apply interpolation techniques to reduce the efforts of constraint solving by avoiding solving infeasible constraints. The experiment results on 20 benchmark programs show that our approach complements existing random testing based approaches when there are rare failure-inducing interleaving in the whole search space. Specifically, PCR finds concurrency bugs faster in 18 out of 20 programs, with an average speedup of 4.2x and a maximum speedup of 11.4x.
Keywords:
Computer bugs
Concurrent computing
Instruction sets
Programming
Message systems
Systematics
Sun
Concurrency bug detection
constraint solving
coverage criteria
thread-safe class

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.8K
Citations:
1.1W

Organization

T
tianjin university
Scholars:
7.8W
Papers: 5.7W
Citations: 88
S
Singapore Management University
Scholars:
1.5K
Papers: 2.5K
Citations: 3.5K
N
Nantong University
Scholars:
1.9W
Papers: 1.1W
Citations: 2.0W
researcher View more organizations