paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Controlled concurrency testing via periodical scheduling

基于周期性调度的受控并发测试
ICSE Proceedings of the 44th International Conference on Software Engineering2022匹配度 2/10 · 该论文研究受控并发测试(CCT),属于动态测试与缺陷检测方向,与用户的静态分析、LLM/Agent 交叉、浮点程序分析及贝叶斯程序分析等核心方向均无直接关联;仅在广义的程序语言与软件工程领域有微弱交集。引用 29 inbox
Cheng Wen, Mengda He, Bohao Wu, Zhiwu Xu, Shengchao Qin
crossref: 2026-09-12

AI 速览

一句话:提出周期性调度的受控并发测试技术 Period,系统探索线程交错以更高效检测并发缺陷。

受控并发测试(CCT)通过控制线程执行顺序来探索并发程序的交错空间,是检测并发缺陷的有前途技术,但现有方法仍面临效果不佳和缺乏系统性的挑战。本文提出一种新的 CCT 技术 Period:它将并发程序的执行建模为周期性执行,并系统探索可能的交错空间;探索过程由周期性调度引导,并受到先前已测试交错的影响。作者在 10 个真实 CVE 和 36 个广泛使用的基准程序上评估 Period。实验结果表明,Period 在缺陷检测有效性和运行时开销方面均优于其他 CCT 技术,并在真实程序中发现 5 个此前未知的并发缺陷。

问题
现有受控并发测试技术虽能通过控制线程调度检测并发缺陷,但效果有限且方法较为 ad-hoc,缺乏系统性的交错空间探索。
方法
Period 将并发程序执行建模为周期性执行,利用周期性调度引导对可能交错的系统探索,并参考先前测试过的交错来影响后续探索。
评估
在 10 个真实 CVE 与 36 个基准程序上,与其它 CCT 技术比较有效性和运行时开销,并发现 5 个新的真实并发缺陷。
原文摘要(Abstract)

Controlled concurrency testing (CCT) techniques have been shown promising for concurrency bug detection. Their key insight is to control the order in which threads get executed, and attempt to explore the space of possible interleavings of a concurrent program to detect bugs. However, various challenges remain in current CCT techniques, rendering them ineffective and ad-hoc. In this paper, we propose a novel CCT technique Period. Unlike previous works, Period models the execution of concurrent programs as periodical execution, and systematically explores the space of possible inter-leavings, where the exploration is guided by periodical scheduling and influenced by previously tested interleavings. We have evaluated Period on 10 real-world CVEs and 36 widely-used benchmark programs, and our experimental results show that Period demonstrates superiority over other CCT techniques in both effectiveness and runtime overhead. Moreover, we have discovered 5 previously unknown concurrency bugs in real-world programs.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot6912,
  title = {Controlled concurrency testing via periodical scheduling},
  author = {Cheng Wen and Mengda He and Bohao Wu and Zhiwu Xu and Shengchao Qin},
  booktitle = {ICSE},
  year = {2022},
  doi = {10.1145/3510003.3510178}
}