并发跟踪的错误不变量
Error Invariants for Concurrent Traces
摘要:
错误不变量是断言,其过度近似错误跟踪中给定位置处的可达程序状态,同时仅捕获如果跟踪的执行从该位置继续则仍将导致失败的状态。这样的断言反映了错误的根本原因及其传播所涉及的语句的效果,从而允许对不会导致错误的语句进行切片。以前关于错误不变量的工作主要集中在顺序程序上。我们将错误不变量推广到并发跟踪,通过增加有关危险的额外信息,例如写后写事件,这些事件通常涉及竞争条件和原子性违规。通过提供的选项,包括不同层次的细节错误不变量,如危险和分支信息,我们的方法允许程序员系统地分析各个方面的错误trace.We实现了一个危险敏感的切片工具的并发痕迹的错误不变量的基础上,并评估它的基准涵盖了广泛的现实世界中的并发错误。危险敏感切片显著减少了所考虑的跟踪的长度,并且仍然保持了并发错误的根本原因。
英文摘要:
Error invariants are assertions that over-approximate the reachable program states at a given position in an error trace while only capturing states that will still lead to failure if execution of the trace is continued from that position. Such assertions reflect the effect of statements that are involved in the root cause of an error and its propagation, enabling slicing of statements that do not contribute to the error. Previous work on error invariants focused on sequential programs. We generalize error invariants to concurrent traces by augmenting them with additional information about hazards such as write-after-write events, which are often involved in race conditions and atomicity violations. By providing the option to include varying levels of details in error invariants-such as hazards and branching information-our approach allows the programmer to systematically analyze individual aspects of an error trace.We have implemented a hazard-sensitive slicing tool for concurrent traces based on error invariants and evaluated it on benchmarks covering a broad range of real-world concurrency bugs. Hazard-sensitive slicing significantly reduced the length of the considered traces and still maintained the root causes of the concurrency bugs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。