Skip to content

Tmod4 backend crashes when an unexpected installation is found #781

@vkarak

Description

@vkarak

How to reproduce on Arolla:

ln -s /cm/local/apps/environment-modules/4.0.0/libexec/modulecmd.tcl modulecmd
PATH=.:$PATH ./bin/reframe -C config/cscs.py --system=generic -l
 PATH=.:$PATH ./bin/reframe -C config/cscs.py --system=generic -l
Command line: ./bin/reframe -C config/cscs.py --system=generic -l
Reframe version: 2.18-dev2
Launched by user: karakasv
Launched on host: arolla-ln003
Reframe paths
=============
    Check prefix      : /users/karakasv/Devel/reframe
(R) Check search path : '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: '_mlstatus'
Traceback (most recent call last):
  File "/users/karakasv/Devel/reframe/reframe/frontend/cli.py", line 464, in main
    rt.modules_system.unload_module(settings.reframe_module)
  File "/users/karakasv/Devel/reframe/reframe/core/modules.py", line 210, in unload_module
    self._unload_module(m)
  File "/users/karakasv/Devel/reframe/reframe/core/modules.py", line 213, in _unload_module
    self._backend.unload_module(Module(name))
  File "/users/karakasv/Devel/reframe/reframe/core/modules.py", line 463, in unload_module
    msg="could not unload module '%s' correctly" % module)
  File "/users/karakasv/Devel/reframe/reframe/core/modules.py", line 512, in _exec_module_command
    if not namespace['_mlstatus']:
KeyError: '_mlstatus'

It shouldn't crashed, but give an error instead.

That's for an older Tmod4 installation:

Modules Release 4.0.0 (2017-10-16)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions