Skip to content

Faulty regex causes frontend to crash with a traceback  #730

@vkarak

Description

@vkarak
$ ./bin/reframe -C config/cscs.py -c cscs-checks/ -n '*.small' -R -l
Command line: ./bin/reframe -C config/cscs.py -c cscs-checks/ -n *.small -R -l
Reframe version: 2.18-dev0
Launched by user: karakasv
Launched on host: daint105
Reframe paths
=============
    Check prefix      :
(R) Check search path : 'cscs-checks/'
    Stage dir prefix     : /users/karakasv/Devel/reframe/stage/
    Output dir prefix    : /users/karakasv/Devel/reframe/output/
    Perf. logging prefix : /users/karakasv/Devel/reframe/perflogs
./bin/reframe: unexpected error: nothing to repeat at position 0
Traceback (most recent call last):
  File "/users/karakasv/Devel/reframe/reframe/frontend/cli.py", line 425, in main
    checks_matched = filter(filters.have_name('|'.join(options.names)),
  File "/users/karakasv/Devel/reframe/reframe/frontend/check_filters.py", line 8, in have_name
    regex = re.compile(patt)
  File "/apps/common/UES/jenkins/SLES12/easybuild/software/Python-bare/3.6.6/lib/python3.6/re.py", line 233, in compile
    return _compile(pattern, flags)
  File "/apps/common/UES/jenkins/SLES12/easybuild/software/Python-bare/3.6.6/lib/python3.6/re.py", line 301, in _compile
    p = sre_compile.compile(pattern, flags)
  File "/apps/common/UES/jenkins/SLES12/easybuild/software/Python-bare/3.6.6/lib/python3.6/sre_compile.py", line 562, in compile
    p = sre_parse.parse(p, flags)
  File "/apps/common/UES/jenkins/SLES12/easybuild/software/Python-bare/3.6.6/lib/python3.6/sre_parse.py", line 855, in parse
    p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
  File "/apps/common/UES/jenkins/SLES12/easybuild/software/Python-bare/3.6.6/lib/python3.6/sre_parse.py", line 416, in _parse_sub
    not nested and not items))
  File "/apps/common/UES/jenkins/SLES12/easybuild/software/Python-bare/3.6.6/lib/python3.6/sre_parse.py", line 616, in _parse
    source.tell() - here + len(this))
sre_constants.error: nothing to repeat at position 0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions