librascal icon indicating copy to clipboard operation
librascal copied to clipboard

Dead Kernel when passing an empty array to get_subset function

Open hurricane642 opened this issue 2 years ago • 1 comments

Hello everyone! Attempting to use get_subset function for rascal.neighbourlist.structure_manager.AtomsList with argument equal to [] causes Dead Kernel. Need to check the input data for this function

hurricane642 avatar Apr 11 '22 13:04 hurricane642

The segmentation fault probably comes from #400 (or something closely related) after get_subset(), which does no bounds checking, passes through an empty selection.

max-veit avatar Apr 11 '22 13:04 max-veit