Metraipolis › archive › dc_a02944d8a7e1

Fix One, Miss Another: Leveraging Historical Bug Fixes to Uncover Residual Bugs in Database Systems — arXiv:2611.07739

Source
arXiv (en)
Original
https://arxiv.org/abs/2611.07739
License (as archived)
CC0-1.0
Archived
2026-11-06T14:51:29.494Z
SHA-256 of the archived text
7201b67346fae066caeb08703238c9e3f2099dd2d0705c82303c3ea5ab9cda6d
Stable URL of this page
https://metraipolis.com/documento/dc_a02944d8a7e1

How to cite

Fix One, Miss Another: Leveraging Historical Bug Fixes to Uncover Residual Bugs in Database Systems — arXiv:2611.07739 — arXiv (en), https://arxiv.org/abs/2611.07739 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a02944d8a7e1 (Metraipolis archive dc_a02944d8a7e1, sha256 7201b67346fae066caeb08703238c9e3f2099dd2d0705c82303c3ea5ab9cda6d)
BibTeX
@misc{dca02944d8a7e1,
  title = {Fix One, Miss Another: Leveraging Historical Bug Fixes to Uncover Residual Bugs in Database Systems — arXiv:2611.07739},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2611.07739},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a02944d8a7e1; sha256 7201b67346fae066caeb08703238c9e3f2099dd2d0705c82303c3ea5ab9cda6d},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.07739. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Database management systems (DBMSs) implement SQL constructs through grammar-driven dispatch handlers. Although handlers for syntactic siblings implement different SQL constructs, they often share a common implementation pattern, including argument extraction, type checking, and permission validation. Consequently, a bug fix that hardens the handler exercised by a historical bug may leave the corresponding logic in sibling handlers vulnerable to the same semantic flaw. We refer to such defects as sibling bugs. Despite the structural similarity among sibling handlers, existing bug-finding techniques rarely exploit historical fixes to systematically uncover these related defects. We present Reaper, a novel approach for detecting sibling bugs guided by historical bug fixes. Reaper first analyzes a bug fix to infer a trigger profile, which characterizes the conditions under which the defect is exposed, and a validation profile, which captures the semantic evidence needed to distinguish buggy behavior from correct behavior. It then projects the trigger profile onto syntactic siblings through grammar-guided test mutation, generating tests that exercise corresponding semantic paths in sibling handlers. Finally, Reaper validates suspicious behaviors using the inferred validation profile through a staged validation process, reducing false positives caused by complex DBMS behavior. We evaluate Reaper on four widely used DBMSs, including MariaDB, MySQL, OceanBase, and CockroachDB. Reaper uncovers 61 previously unknown bugs, of which 57 have been confirmed by developers and 13 have been fixed at the time of writing. These results demonstrate that historical bug fixes contain actionable semantic knowledge that can be systematically transferred across syntactic siblings to uncover otherwise overlooked defects.

Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.SE, nuovi lavori del giorno).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2611.07739 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-11-06T14:21:57.531Z dalla pagina https://arxiv.org/list/cs.SE/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).