Colvars / colvars

Collective variables library for molecular simulation and analysis programs
http://colvars.github.io/
GNU Lesser General Public License v3.0
196 stars 56 forks source link

Stop initializing cvs after atom group init fail #674

Closed jhenin closed 3 months ago

jhenin commented 3 months ago

Done only to CVs where it is critical because followed by memory allocation assuming that the atom groups were parsed successfully. This fixes segfaults upon trying to load non-existent atomFiles.

giacomofiorin commented 3 months ago

Note for future reference: not backporting this bugfix to release branches, because it only applies to the code after #643