Lune

FSE2021Top-tier venue

Metamorphic testing of Datalog engines

Muhammad Numair Mansur, Maria Christakis, Valentin Wüstholz

Abstract

Datalog is a popular query language with applications in several domains. Like any complex piece of software, Datalog engines may contain bugs. The most critical ones manifest as incorrect results when evaluating queries-we refer to these as query bugs. Given the wide applicability of the language, query bugs may have detrimental consequences, for instance, by compromising the soundness of a program analysis that is implemented and formalized in Datalog. In this paper, we present the first metamorphic-testing approach for detecting query bugs in Datalog engines. We ran our tool on three mature engines and found 13 previously unknown query bugs, some of which are deep and revealed critical semantic issues.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

20 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Detecting Logic Bugs in Graph Database Management Systems via Injective and Surjective Graph Query Transformation cites Finding bugs in database systems via query partitioning
  • Detecting Logic Bugs in Graph Database Management Systems via Injective and Surjective Graph Query Transformation cites Finding bugs in Gremlin-based graph database systems via Randomized differential testing
  • Detecting Logic Bugs in Graph Database Management Systems via Injective and Surjective Graph Query Transformation cites Testing Database Engines via Pivoted Query Synthesis
  • Fuzz4All: Universal Fuzzing with Large Language Models cites Random testing for C and C++ compilers with YARPGen
  • Ethainter: a smart contract security analyzer for composite vulnerabilities cites Securify: Practical Security Analysis of Smart Contracts
  • Finding bugs in database systems via query partitioning cites Testing Database Engines via Pivoted Query Synthesis
  • Dependency-Aware Metamorphic Testing of Datalog Engines cites Ethainter: a smart contract security analyzer for composite vulnerabilities
  • Dependency-Aware Metamorphic Testing of Datalog Engines cites Finding bugs in database systems via query partitioning
  • Dependency-Aware Metamorphic Testing of Datalog Engines cites Random testing for C and C++ compilers with YARPGen
  • Dependency-Aware Metamorphic Testing of Datalog Engines cites Securify: Practical Security Analysis of Smart Contracts
  • Finding bugs in Gremlin-based graph database systems via Randomized differential testing cites Finding bugs in database systems via query partitioning
  • Finding bugs in Gremlin-based graph database systems via Randomized differential testing cites Testing Database Engines via Pivoted Query Synthesis
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. Fuzz4All: Universal Fuzzing with Large Language ModelsChunqiu Steven Xia, Matteo Paltenghi, Jia Le Tian, Michael Pradel et al.ICSE 2024 · 155 citations
  2. Finding bugs in Gremlin-based graph database systems via Randomized differential testingYingying Zheng, Wensheng Dou, Yicheng Wang, Zheng Qin et al.ISSTA 2022 · 36 citations
  3. Automated testing of image captioning systemsBoxi Yu, Zhiqing Zhong, Xinran Qin, Jiayi Yao et al.ISSTA 2022 · 24 citations
  4. Detecting Logic Bugs in Graph Database Management Systems via Injective and Surjective Graph Query TransformationYuancheng Jiang, Jiahao Liu, Jinsheng Ba, Roland H. C. Yap et al.ICSE 2024 · 14 citations
  5. Dependency-Aware Metamorphic Testing of Datalog EnginesMuhammad Numair Mansur, Valentin Wüstholz, Maria ChristakisISSTA 2023 · 10 citations

Builds on12

  1. Securify: Practical Security Analysis of Smart ContractsPetar Tsankov, Andrei Marian Dan, Dana Drachsler-Cohen, Arthur Gervais et al.CCS 2018 · 1,108 citations
  2. Ethainter: a smart contract security analyzer for composite vulnerabilitiesLexi Brent, Neville Grech, Sifis Lagouvardos, Bernhard Scholz et al.PLDI 2020 · 163 citations
  3. Testing Database Engines via Pivoted Query SynthesisManuel Rigger, Zhendong SuOSDI 2020 · 150 citations
  4. Random testing for C and C++ compilers with YARPGenVsevolod Livinskii, Dmitry Babokin, John RegehrOOPSLA 2020 · 140 citations
  5. Finding bugs in database systems via query partitioningManuel Rigger, Zhendong SuOOPSLA 2020 · 116 citations

Related papers

  1. Finding Cross-Rule Optimization Bugs in Datalog EnginesChi Zhang, Linzhang Wang, Manuel RiggerOOPSLA 2024 · 2 citations
  2. ValScope: Value-Semantics-Aware Metamorphic Testing for Detecting Logical Bugs in DBMSsLi Lin, Liehang Chen, Rongxin WuOSDI 2026
  3. Interrogation Testing of Program Analyzers for Soundness and Precision IssuesDavid Kaindlstorfer, Anastasia Isychev, Valentin Wüstholz, Maria ChristakisASE 2024 · 2 citations
  4. Dinkel: State-Aware and Granular Framework for Validating Graph DatabasesCeline Wüst, Zu-Ming Jiang, Zhendong SuVLDB 2026
  5. Automated Debugging of Datalog ProgramsJiashen Wei, Baoyuan Luo, Runshuo Xie, Yun Qi et al.OOPSLA 2026
Dusk over the sea between two cliffs drawn in fine vertical lines