arrow
Return

Validity-Preserving Delta Debugging via Generator Trace Reduction

delete2025-02-24
delete0
delete
OA
AI
L
Luyao Ren
X
Xing Zhang
Z
Ziyue Hua
Y
Yanyan Jiang
何
何啸 (Xiao He)
Y
Yingfei Xiong
Tao Xie cover
Tao Xie (Tao Xie)
DOI:10.1145/3705305delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Reducing test inputs that trigger bugs is crucial for efficient debugging. Delta debugging is the most popular approach for this purpose. When test inputs need to conform to certain specifications, existing delta debugging practice encounters a validity problem: it blindly applies reduction rules, producing a large number of invalid test inputs that do not satisfy the required specifications. This overall diminishing effectiveness and efficiency becomes even more pronounced when the specifications extend beyond syntactical structures. Our key insight is that we should leverage input generators, which are aware of these specifications, to generate valid reduced inputs, rather than straightforwardly performing reduction on test inputs. In this article, we propose a generator-based delta debugging method, namely GReduce, which derives validity-preserving reducers. Specifically, given a generator and its execution, demonstrating how the bug-inducing test input is generated, GReduce searches for other executions on the generator that yield reduced, valid test inputs. The evaluation results on five benchmarks (i.e., graphs, DL models, JavaScript programs, SymPy, and algebraic data types) show that GReduce substantially outperforms state-of-the-art syntax-based reducers including Perses and T-PDD, and also outperforms QuickCheck, SmartCheck, as well as the state-of-the-art choice-sequence-based reducer Hypothesis, demonstrating the effectiveness, efficiency, and versatility of GReduce.
Keywords:
delta debugging
generator-based testing
software debugging

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.2K
Citations:
3.4K

Organization

G
Gansu Prov Hepatobiliary Pancreat Dis Precis Diag
Scholars:
951
Papers: 402
Citations: 148
Cited Papers

Cited Papers

err
IF0
err
err0
PREAI
err
errShare
errSave
Crystallographic structure and magnetic properties of polycrystalline FePd thin films on glass substrate
err2015-01-22
err0
PREAI
errS. H. Liu; C. C. Chen; S. N. Hsiao; S. K. Chen; Y. C. Chang; S. H. Su; K. F. Chiu
errShare
errSave
errShare
errSave
Delta Debugging Microservice Systems with Parallel Optimization
err2022-01-01
err26
errOAAI
errZhou, Xiang; Peng, Xin; Xie, Tao; Sun, Jun; Ji, Chao; Li, Wenhai; Ding, Dan
errShare
errSave
Is hypoxia vulnerability in fishes a by-product of maximum metabolic rate?
err2021-06-29
err0
errOAAI
errAndrew J. Esbaugh; Kerri L. Ackerly; Angelina M. Dichiera; Benjamin Negrete
errShare
errSave
Bioturbation supplying young carbon into West Antarctic continental margin sediment
err2022-09-01
err0
PREAI
errSunghan Kim; Robert M. McKay; Jae Il Lee; Kyu-Cheul Yoo; Min Kyung Lee; Heung Soo Moon
errShare
errSave
T-Rec: Fine-Grained Language-Agnostic Program Reduction Guided by Lexical Syntax
err2025-01-24
err0
PREAI
errXu, Zhenyang; Tian, Yongqiang; Zhang, Mengxiao; Zhang, Jiarui; Liu, Puzhuo; Jiang, Yu; Sun, Chengnian
errShare
errSave
researcher View more