BugForge: 构建并利用DBMS bug仓库以增强DBMS测试
BugForge: Constructing and Utilizing DBMS Bug Repository to Enhance DBMS Testing
AI总结:
本文提出BugForge框架,通过构建标准化的DBMS bug仓库生成高质量测试用例,提升DBMS测试效果,已在PostgreSQL等数据库上实现,发现35个未知bug。
摘要:
DBMSs是易出错的复杂系统,可能导致系统故障或数据完整性问题。建立统一的DBMS bug仓库对于系统化组织bug数据、促进代码改进和支持自动化测试至关重要。bug报告常包含有价值的测试输入和触发bug的线索,有助于探索罕见执行路径并暴露关键bug行为,从而指导自动化DBMS测试。然而,bug报告的异质性及内容不完整或不准确,使建立统一仓库和转换为高质量测试用例变得困难。本文提出BugForge框架,逐步收集bug报告,通过语法感知处理和输入自适应的原始PoC提取构建DBMS bug仓库。仓库存储结构化的bug相关数据,包括bug元数据和包含潜在bug触发语义的原始PoCs。这些数据通过语义引导的适应进一步精炼为高质量测试用例,从而实现增强的DBMS测试方法,包括DBMS模糊测试、回归测试和跨数据库bug发现。我们实现了BugForge用于PostgreSQL、MySQL、MariaDB和MonetDB,总共整合了37,632个bug报告,覆盖至28年。基于该仓库,BugForge发现了35个之前未知的bug,其中22个已由开发者确认,证明了构建和利用bug仓库对于DBMS测试的价值。
英文摘要:
DBMSs are complex systems prone to bugs that may lead to system failures or compromise data integrity. Establishing unified DBMS bug repositories is crucial for systematically organizing bug-related data, enabling code improvement, and supporting automated testing. In particular, bug reports often contain valuable test inputs and bug-triggering clues that help explore rare execution paths and expose critical buggy behavior, thereby guiding automated DBMS testing. However, the heterogeneity of bug reports, along with their incomplete or inaccurate content, makes it challenging to build unified repositories and convert them into high-quality test cases. In this paper, we propose BugForge, a framework that constructs standardized DBMS bug repositories and leverages them to generate high-quality test cases to enhance DBMS testing. Specifically, BugForge progressively collects bug reports, then employs syntax-aware processing and input-adaptive raw PoC extraction to construct a DBMS bug repository. The repository stores structured bug-related data, including bug metadata and raw PoCs that entail potential bug-triggering semantics. These data are further refined into high-quality test cases through semantic-guided adaptation, thereby enabling enhanced DBMS testing methods, including DBMS fuzzing, regression testing, and cross-DBMS bug discovery. We implemented BugForge for PostgreSQL, MySQL, MariaDB, and MonetDB, totally integrated 37,632 bug reports spanning up to 28 years. Based on the repository, BugForge uncovered 35 previously unknown bugs with 22 confirmed by developers, demonstrating the value of constructing and utilizing bug repositories for DBMS testing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。