Skip to content

Crashing option parsing, no options help #468

@eero-t

Description

@eero-t

Try to get options help:

/bloom --help

(no output)

Maybe help is with short option?

$ ./bloom -h
Segmentation fault (core dumped)

What about other options?

$ ./bloom -w
Segmentation fault (core dumped)
$ ./bloom -width
Segmentation fault (core dumped)
$ ./bloom -height
Segmentation fault (core dumped)
$ ./bloom -gpu
Segmentation fault (core dumped)

Some of the options do have argument validation:

$ ./bloom --benchfilename --benchwarmup --benchruntime foo
Filename for benchmark results must not start with a hyphen!
Warmup time for benchmark mode must be specified as a number!
Benchmark run duration must be specified as a number!

But those fail to complain about missing argument:

$ ./bloom --benchfilename
$ ./bloom --benchwarmup
$ ./bloom --benchruntime

And there's no checking for invalid options:

$ ./bloom -argh --hmph

(Should output the help instead.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions