Thank you very much for determining the cause of the problem and supplying the patch. It will be included with SLURM version 2.3.2 when released. The patch can be found here:
https://github.com/SchedMD/slurm/commit/6443e89fae30a38e9f781989ca8adb5098ec2cf4

Quoting Александр Берсенев <[email protected]>:

Hello,

I use task/cgroup plugin. When I enabling ConstrainDevices=yes in
cgroups.conf tasks refuses to run.
The error is: sinfo: bitstring.c:238: bit_nclear: Assertion `(start) <
((b)[1])' failed.

The error occurs while calling
gres_conf_lines = gres_plugin_node_config_devices_path(dev_path,
gres_name,  PATH_MAX);
from src/plugins/task/cgroup/task_cgroup_devices.c.

This function assumes that another function
gres_plugin_node_config_load was called before.

I've added gres_plugin_node_config_load call into
task_cgroup_devices_init function and problem disappears. The patch is
in attachment.

Alexander Bersenev, Institute of Mathematics and Mechanics, Russia




Reply via email to