Explicitly set the pValue pointer to NULL.
PyTuple_SetItem “steals” a reference to pValue, but does not set it to NULL after dereferencing it. It causes segmentation fault when running lammps on some systems and on multiple processors since it is trying to decrement the reference count for an object which does not exist.
Loading
Please sign in to comment