Skip to main content
CenXiv.org
This website is in trial operation, support us!
We gratefully acknowledge support from all contributors.
Contribute
Donate
cenxiv logo > cs > arXiv:2402.04623v2

Help | Advanced Search

Computer Science > Software Engineering

arXiv:2402.04623v2 (cs)
[Submitted on 7 Feb 2024 (v1) , revised 18 Sep 2024 (this version, v2) , latest version 4 Dec 2024 (v3) ]

Title: Validity-Preserving Delta Debugging via Generator Trace Reduction

Title: 通过生成器跟踪缩减的保持有效性的Delta调试

Authors:Luyao Ren, Xing Zhang, Ziyue Hua, Yanyan Jiang, Xiao He, Yingfei Xiong, Tao Xie
Abstract: 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 paper, 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 show that GReduce significantly outperforms the state-of-the-art syntax-based reducer Perses: 28.5%, 34.6%, 75.6% in size of those from Perses with 17.5%, 0.6%, 65.4% time taken by Perses, and also outperforms the state-of-the-art choice-sequence-based reducer Hypothesis, demonstrating the effectiveness, efficiency, and versatility of GReduce.
Abstract: 减少触发错误的测试输入对于高效的调试至关重要。 Delta调试是为此目的最流行的方法。 当测试输入需要符合某些规范时,现有的Delta调试实践会遇到有效性问题:它盲目地应用简化规则,生成大量不满足所需规范的无效测试输入。 当规范超出语法结构时,这种整体效果和效率的下降变得更加明显。 我们的关键见解是,我们应该利用了解这些规范的输入生成器来生成有效的简化输入,而不是直接对测试输入进行简化。 在本文中,我们提出了一种基于生成器的Delta调试方法,即GReduce,它能够推导出保持有效性的简化器。 具体而言,给定一个生成器及其执行,展示导致错误的测试输入是如何生成的,GReduce会在生成器上搜索其他执行,以产生简化且有效的测试输入。 在五个基准上的评估结果表明,GReduce显著优于最先进的基于语法的简化器Perses: 在大小方面分别高出28.5%、34.6%、75.6%,而Perses所花费的时间分别为17.5%、0.6%、65.4%,并且还优于最先进的基于选择序列的简化器Hypothesis,证明了GReduce的有效性、效率和通用性。
Subjects: Software Engineering (cs.SE)
Cite as: arXiv:2402.04623 [cs.SE]
  (or arXiv:2402.04623v2 [cs.SE] for this version)
  https://doi.org/10.48550/arXiv.2402.04623
arXiv-issued DOI via DataCite

Submission history

From: Luyao Ren [view email]
[v1] Wed, 7 Feb 2024 07:12:27 UTC (5,365 KB)
[v2] Wed, 18 Sep 2024 08:50:00 UTC (9,627 KB)
[v3] Wed, 4 Dec 2024 15:09:31 UTC (10,670 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled
  • View Chinese PDF
  • View PDF
  • HTML (experimental)
  • Other Formats
view license
Current browse context:
cs.SE
< prev   |   next >
new | recent | 2024-02
Change to browse by:
cs

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender (What is IArxiv?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack

京ICP备2025123034号