geodynamics / aspect

A parallel, extensible finite element code to simulate convection in both 2D and 3D models.
https://aspect.geodynamics.org/
Other
227 stars 237 forks source link

Do not throw in destructor of ManagerBase during stack unwinding #6107

Closed gassmoeller closed 1 month ago

gassmoeller commented 1 month ago

Noticed while working on #6097. If we throw an exception while parsing the parameters of the manager class the size of plugin_names and plugin_objects may not be the same. But if we throw an exception during the stack unwinding the program crashes without helpful error message. So only throw if during a regular destruction the size does not match.