uninitialized use of py::object #226
Labels
bug
gmxapi
pertains to this repository and the Python module support
sample_restraint
pertains specifically to kassonlab/sample_restraint
I think py::object is initialized with a nullptr member pointer, but this is not the same thing as being a reference to None. In any case, both the main python package and the sample_restraint code need to be checked and updated to make sure that we don't try to access attributes of uninitialized
py::object
s because evidence suggests it could cause segmentation faults rather than raising exceptions.Relates to #221 and #188
If such checks resolve issues with test cases built on #224 then I think we can call this a bug fix and not necessitate an API version bump to accompany #221
The text was updated successfully, but these errors were encountered: