arXiv:2502.01937cs.SEcs.RO2025-02中稿 · FSE 2025被引 3

分析1331个自动驾驶系统漏洞修复模式,提升系统可靠性与安全性。

A Comprehensive Study of Bug-Fix Patterns in Autonomous Driving Systems

  • 通过分析阿波罗与自航项目提交记录和漏洞报告,挖掘修复模式。
  • 发现路径规划、数据流和配置管理是主要问题领域,部分漏洞反复出现。
  • 提出15种语法级和27种语义级修复模式,助力自动化调试工具开发。

随着自动驾驶系统(ADSes)日益复杂并融入日常生活,理解其软件缺陷的性质与应对策略变得愈发重要。由于需处理实时决策且故障后果严重,维护工作面临巨大挑战。尽管自动化工具前景广阔,但对人工调试中实际难题与应对策略的认知仍不足。本文基于对两个主流自动驾驶项目——阿波罗(Apollo)与自航(Autoware)——的1,331次漏洞修复记录,分析了漏洞症状、根本原因及修复模式。研究揭示了路径规划、数据流和配置管理等关键修复模式,并发现不同类别漏洞的修复频率差异显著,某些类型漏洞具有重复性与顽固性。据此,我们构建了自动驾驶系统漏洞的层级结构,并提出15种语法级与27种语义级修复模式分类体系,为漏洞识别与修复提供指导。同时,我们公开了一个包含1,331个实例的基准数据集。

原文摘要 · Abstract (English)

As autonomous driving systems (ADSes) become increasingly complex and integral to daily life, the importance of understanding the nature and mitigation of software bugs in these systems has grown correspondingly. Addressing the challenges of software maintenance in autonomous driving systems (e.g., handling real-time system decisions and ensuring safety-critical reliability) is crucial due to the unique combination of real-time decision-making requirements and the high stakes of operational failures in ADSes. The potential of automated tools in this domain is promising, yet there remains a gap in our comprehension of the challenges faced and the strategies employed during manual debugging and repair of such systems. In this paper, we present an empirical study that investigates bug-fix patterns in ADSes, with the aim of improving reliability and safety. We have analyzed the commit histories and bug reports of two major autonomous driving projects, Apollo and Autoware, from 1,331 bug fixes with the study of bug symptoms, root causes, and bug-fix patterns. Our study reveals several dominant bug-fix patterns, including those related to path planning, data flow, and configuration management. Additionally, we find that the frequency distribution of bug-fix patterns varies significantly depending on their nature and types and that certain categories of bugs are recurrent and more challenging to exterminate. Based on our findings, we propose a hierarchy of ADS bugs and two taxonomies of 15 syntactic bug-fix patterns and 27 semantic bug-fix patterns that offer guidance for bug identification and resolution. We also contribute a benchmark of 1,331 ADS bug-fix instances.

自动驾驶漏洞修复代码分析经验研究

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。