arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.13128cs.SE
收藏

通过编译步骤分析隔离编译器缺陷

Isolating Compiler Bugs through Compilation Steps Analysis

Key Laboratory of High Confidence Software Technologies (Peking University), Ministry of Education(教育部软件高可信技术重点实验室);School of Computer Science, Peking University(北京大学计算机学院);ZTE Corporation(中兴通讯股份有限公司)

Yujie Liu, Mingxuan Zhu, Shengyu Cheng, Dan Hao

AI总结:

本文提出CompSCAN,通过分析编译步骤序列来隔离编译器缺陷,在185个真实LLVM和GCC缺陷上优于现有技术,显著提升隔离效果与效率。

摘要:

编译器对软件系统至关重要,其缺陷可能传播到依赖的软件中。确保编译器的正确性至关重要。然而,由于编译器执行的内部复杂性,隔离编译器缺陷仍然具有挑战性。现有技术主要通过对编译输入进行变异来生成通过和失败的测试,但往往缺乏对内部步骤的因果分析,限制了其有效性。为应对这一局限,我们提出CompSCAN,一种新颖的编译器缺陷隔离技术,该技术对编译步骤序列进行分析。CompSCAN遵循三阶段流程:(1)提取导致原始失败的编译步骤数组,(2)识别导致缺陷的步骤并收集相应的编译器代码元素,(3)计算每个代码元素的可疑分数,并输出可疑排名列表作为缺陷隔离结果。我们在185个真实的LLVM和GCC缺陷上评估了CompSCAN。结果表明,CompSCAN在有效性和效率上均优于最先进的技术。CompSCAN在Top-1/3/5/10排名中分别成功隔离了50、85、100和123个缺陷。与两种最先进的编译器缺陷隔离技术ETEM和ODFL相比,CompSCAN在这些指标上相对于ETEM实现了44.51% / 50.18% / 36.24% / 24.49%的相对改进,相对于ODFL实现了31.58% / 49.12% / 44.93% / 21.78%的相对改进。此外,CompSCAN在平均每个缺陷上的运行速度均快于两个基线。

英文摘要:

Compilers are essential to software systems, and their bugs can propagate to dependent software. Ensuring compiler correctness is critical. However, isolating compiler bugs remains challenging due to the internal complexity of compiler execution. Existing techniques primarily mutate compilation inputs to generate passing and failing tests, but often lack causal analysis of internal steps, limiting their effectiveness. To address this limitation, we propose CompSCAN, a novel compiler bug isolation technique that applies analysis over the sequence of compilation steps. CompSCAN follows a three-stage process: (1) extracting the array of compilation steps that leads to the original failure, (2) identifying bug-causing steps and collecting corresponding compiler code elements, and (3) calculating suspicious scores for each code element and outputting a suspicious ranking list as the bug isolation result. We evaluate CompSCAN on 185 real-world LLVM and GCC bugs. Results show that CompSCAN outperforms state-of-the-art techniques in both effectiveness and efficiency. CompSCAN successfully isolates 50, 85, 100, and 123 bugs within the Top-1/3/5/10 ranks, respectively. Compared with ETEM and ODFL, two state-of-the-art compiler bug isolation techniques, CompSCAN achieves relative improvements of 44.51% / 50.18% / 36.24% / 24.49% over ETEM, and 31.58% / 49.12% / 44.93% / 21.78% over ODFL on those metrics. Moreover, CompSCAN runs faster on average per bug than both baselines.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑