RaceFixer —— 一个自动化数据竞争修复工具
RaceFixer -- An Automated Data Race Fixer
AI总结:
提出自动化修复单变量原子性违规并发缺陷的工具 RaceFixer,结合 ThreadSanitizer 报告与静态分析生成并合并补丁,提升修复质量、性能与代码可读性。
摘要:
修复软件缺陷一直是软件开发中一个至关重要且耗时的过程。在多核时代,修复并发缺陷变得尤为关键。然而,由于非确定性的失败和棘手的并行推理,修复并发缺陷极具挑战性。除了正确修复软件中的原始问题外,一个好的补丁还应避免引入新缺陷、不必要地降低性能或损害软件可读性。现有工具无法自动化整个修复过程并提供高质量的补丁。我们提出了 RaceFixer,这是一种自动化修复一种常见并发缺陷的工具:单变量原子性违规。RaceFixer 从现有缺陷检测工具 ThreadSanitizer 的缺陷报告开始。它通过静态分析来增强这些报告,为每个缺陷报告构建合适的补丁。它尝试合并多个缺陷的补丁,以获得更好的性能和代码可读性。最后,我们在 ThreadSanitizer 的基准测试上测试了 RaceFixer。
英文摘要:
Fixing software bugs has always been an essential and time-consuming process in software development. Fixing concurrency bugs has become especially critical in the multicore era. However, fixing concurrency bugs is challenging due to non-deterministic failures and tricky parallel reasoning. Beyond correctly fixing the original problem in the software, a good patch should also avoid introducing new bugs, degrading performance unnecessarily, or damaging software readability. Existing tools cannot automate the whole fixing process and provide good-quality patches. We present RaceFixer, a tool that automates the process of fixing one common type of concurrency bug: single-variable atomicity violations. RaceFixer starts from the bug reports of an existing bug-detection tool ThreadSanitizer. It augments these with static analysis to construct a suitable patch for each bug report. It tries to combine the patches of multiple bugs for better performance and code readability. Finally, we test RaceFixer on benchmarks from TheadSanitizer.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。