Skip to content

SIGSEGV when --benchmark-samples 0 #3040

Closed

Description

@bddap

Reproduction steps

Build and run a benchmark with --benchmark-samples 0
./bench --benchmark-samples 0

terminated by signal SIGSEGV (Address boundary error)

Platform information:

  • OS: linux
  • Compiler+version: GCC v14.3.0
  • Catch version: v3.4.0

Activity

  1. horenmar commented on Oct 14, 2025

    @horenmar
    Member

    That doesn't make sense as a config, but it should be rejected while parsing the arguments rather than crash later.

  2. added
    Good First Issue
    on Oct 14, 2025
  3. zarathustrasdream commented on Nov 14, 2025

    @zarathustrasdream

    I'd like to work on this for a pr to add argument validation so it's rejected before.

  4. horenmar commented on Nov 17, 2025

    @horenmar
    Member

    @zarathustrasdream Feel free to. There is a PR open, but first it didn't have test(s), and after the author added them, they didn't bother fixing the red CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugGood First Issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions