Lune

ICSE2024顶会

Detecting Logic Bugs in Graph Database Management Systems via Injective and Surjective Graph Query Transformation

Yuancheng Jiang, Jiahao Liu, Jinsheng Ba, Roland H. C. Yap, Zhenkai Liang, Manuel Rigger

摘要

Graph Database Management Systems (GDBMSs) store graphs as data. They are used naturally in applications such as social networks, recommendation systems and program analysis. However, they can be affected by logic bugs, which cause the GDBMSs to compute incorrect results and subsequently affect the applications relying on them. In this work, we propose injective and surjective Graph Query Transformation (GQT) to detect logic bugs in GDBMSs. Given a query 𝑄, we derive a mutated query 𝑄 ′ , so that either their result sets are: (i) semantically equivalent; or (ii) variant based on the mutation to be either a subset or superset of each other. When the expected relationship between the results does not hold, a logic bug in the GDBMS is detected. The key insight to mutate 𝑄 is that the graph pattern in graph queries enables systematic query transformations derived from injective and surjective mappings of the directed edge sets between 𝑄 and 𝑄 ′ . We implemented injective and surjective Graph Query Transformation (GQT) as a tool called GraphGenie and evaluated it on 6 popular and mature GDBMSs. GraphGenie has found 25 unknown bugs, comprising 16 logic bugs, 3 internal errors, and 6 performance issues. Our results demonstrate the practicality and effectiveness of GraphGenie in detecting logic bugs in GDBMSs which has the potential for improving the reliability of applications relying on these GDBMSs.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 14 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Keep It Simple: Testing Databases via Differential Query Plans 引用了 Finding bugs in database systems via query partitioning
  • Keep It Simple: Testing Databases via Differential Query Plans 引用了 Detecting optimization bugs in database engines via non-optimizing reference engine construction
  • Keep It Simple: Testing Databases via Differential Query Plans 引用了 Testing Database Engines via Pivoted Query Synthesis
  • Keep It Simple: Testing Databases via Differential Query Plans 引用了 Evaluating Fuzz Testing
  • Finding Logic Bugs in Spatial Database Engines via Affine Equivalent Inputs 引用了 Finding bugs in database systems via query partitioning
  • Finding Logic Bugs in Spatial Database Engines via Affine Equivalent Inputs 引用了 Detecting optimization bugs in database engines via non-optimizing reference engine construction
  • Finding Logic Bugs in Spatial Database Engines via Affine Equivalent Inputs 引用了 Testing Database Engines via Pivoted Query Synthesis
  • Proving Cypher Query Equivalence 引用了 Testing Gremlin-Based Graph Database Systems via Query Disassembling
  • Finding bugs in database systems via query partitioning 引用了 Detecting optimization bugs in database engines via non-optimizing reference engine construction
  • Finding bugs in database systems via query partitioning 引用了 Testing Database Engines via Pivoted Query Synthesis
  • Detecting optimization bugs in database engines via non-optimizing reference engine construction 引用了 Testing Database Engines via Pivoted Query Synthesis
  • Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database Construction 引用了 Keep It Simple: Testing Databases via Differential Query Plans
  • Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database Construction 引用了 Finding bugs in database systems via query partitioning
  • Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database Construction 引用了 Detecting optimization bugs in database engines via non-optimizing reference engine construction
  • Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database Construction 引用了 Testing Database Engines via Pivoted Query Synthesis
  • Testing Gremlin-Based Graph Database Systems via Query Disassembling 引用了 Finding bugs in database systems via query partitioning
  • Testing Gremlin-Based Graph Database Systems via Query Disassembling 引用了 Detecting optimization bugs in database engines via non-optimizing reference engine construction
  • Testing Gremlin-Based Graph Database Systems via Query Disassembling 引用了 Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database Construction
  • Testing Gremlin-Based Graph Database Systems via Query Disassembling 引用了 Testing Database Engines via Pivoted Query Synthesis
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper14

  1. Keep It Simple: Testing Databases via Differential Query PlansJinsheng Ba, Manuel RiggerSIGMOD 2024 · 23 次引用
  2. Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database ConstructionJiansen Song, Wensheng Dou, Yu Gao, Ziyu Cui 等VLDB 2024 · 13 次引用
  3. Testing Gremlin-Based Graph Database Systems via Query DisassemblingYingying Zheng, Wensheng Dou, Lei Tang, Ziyu Cui 等ISSTA 2024 · 6 次引用
  4. Finding Logic Bugs in Spatial Database Engines via Affine Equivalent InputsWenjing Deng, Qiuyang Mang, Chengyu Zhang, Manuel RiggerSIGMOD 2025 · 3 次引用
  5. Proving Cypher Query EquivalenceLei Tang, Wensheng Dou, Yingying Zheng, Lijie Xu 等ICDE 2025 · 3 次引用

它引用的 Paper17

  1. Evaluating Fuzz TestingGeorge Klees, Andrew Ruef, Benji Cooper, Shiyi Wei 等CCS 2018 · 753 次引用
  2. SHADEWATCHER: Recommendation-guided Cyber Threat Analysis using System Audit RecordsJun Zeng, Xiang Wang, Jiahao Liu, Yinfang Chen 等S&P 2022 · 187 次引用
  3. Testing Database Engines via Pivoted Query SynthesisManuel Rigger, Zhendong SuOSDI 2020 · 150 次引用
  4. Finding bugs in database systems via query partitioningManuel Rigger, Zhendong SuOOPSLA 2020 · 116 次引用
  5. Detecting optimization bugs in database engines via non-optimizing reference engine constructionManuel Rigger, Zhendong SuFSE 2020 · 104 次引用

相关 Paper

  1. Finding bugs in Gremlin-based graph database systems via Randomized differential testingYingying Zheng, Wensheng Dou, Yicheng Wang, Zheng Qin 等ISSTA 2022 · 36 次引用
  2. Testing Graph Database Systems via Graph-Aware Metamorphic RelationsZeyang Zhuang, Penghui Li, Pingchuan Ma, Wei Meng 等VLDB 2024 · 23 次引用
  3. Testing Graph Database Engines via Query PartitioningMatteo Kamm, Manuel Rigger, Chengyu Zhang, Zhendong SuISSTA 2023 · 29 次引用
  4. Understanding Query Optimization Bugs in Graph Database SystemsYuyu Chen, Zhongxing YuASPLOS 2026 · 1 次引用
  5. Finding Logic Bugs in Graph-processing Systems via Graph-cuttingQiuyang Mang, Jinsheng Ba, Pinjia He, Manuel RiggerSIGMOD 2025 · 4 次引用
黄昏的海面,两侧是细线勾勒的悬崖