Sound and precise analysis of parallel programs through schedule specialization

Author:

Wu Jingyue1,Tang Yang1,Hu Gang1,Cui Heming1,Yang Junfeng1

Affiliation:

1. Columbia University, New York, NY, USA

Abstract

Parallel programs are known to be difficult to analyze. A key reason is that they typically have an enormous number of execution interleavings, or schedules . Static analysis over all schedules requires over-approximations, resulting in poor precision; dynamic analysis rarely covers more than a tiny fraction of all schedules. We propose an approach called schedule specialization to analyze a parallel program over only a small set of schedules for precision, and then enforce these schedules at runtime for soundness of the static analysis results. We build a schedule specialization framework for C/C++ multithreaded programs that use Pthreads. Our framework avoids the need to modify every analysis to be schedule-aware by specializing a program into a simpler program based on a schedule, so that the resultant program can be analyzed with stock analyses for improved precision. Moreover, our framework provides a precise schedule-aware def-use analysis on memory locations, enabling us to build three highly precise analyses: an alias analyzer, a data-race detector, and a path slicer. Evaluation on 17 programs, including 2 real-world programs and 15 popular benchmarks, shows that analyses using our framework reduced may-aliases by 61.9%, false race reports by 69%, and path slices by 48.7%; and detected 7 unknown bugs in well-checked programs.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference38 articles.

1. The LLVM compiler framework. http://llvm.org. The LLVM compiler framework. http://llvm.org.

2. The Princeton application repository for shared-memory computers (PARSEC). http://parsec.cs.princeton.edu/. The Princeton application repository for shared-memory computers (PARSEC). http://parsec.cs.princeton.edu/.

3. Parallel BZIP2 (PBZIP2). http://compression.ca/pbzip2/. Parallel BZIP2 (PBZIP2). http://compression.ca/pbzip2/.

4. Stanford parallel applications for shared memory (SPLASH). http://www-flash.stanford.edu/apps/SPLASH/. Stanford parallel applications for shared memory (SPLASH). http://www-flash.stanford.edu/apps/SPLASH/.

5. STP Constraint Solver. https://sites.google.com/site/stpfastprover/. STP Constraint Solver. https://sites.google.com/site/stpfastprover/.

Cited by 9 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Detect atomicity violations in concurrent programs through user assistance and identification of suspicious variable access patterns;Journal of Software: Evolution and Process;2024-09-03

2. Understanding and Reaching the Performance Limit of Schedule Tuning on Stable Synchronization Determinism;Proceedings of the International Conference on Parallel Architectures and Compilation Techniques;2022-10-08

3. Canary: practical static detection of inter-thread value-flow bugs;Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation;2021-06-18

4. On Scheduling Constraint Abstraction for Multi-Threaded Program Verification;IEEE Transactions on Software Engineering;2020-05-01

5. P/Taint: unified points-to and taint analysis;Proceedings of the ACM on Programming Languages;2017-10-12

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3