#1685: Access of freed memory in CarpetIOHDF5 during 1-Proc test of recoverML- EE.par ----------------------+----------------------------------------------------- Reporter: sbrandt | Owner: eschnett Type: defect | Status: new Priority: major | Milestone: Component: Carpet | Version: development version Resolution: | Keywords: ----------------------+-----------------------------------------------------
Comment (by knarf):
It looks like IOUtil uses its own 'verbose' parameter (a keyword, and by that a string) during recovery of the parameters. String parameter pointers will/might get reset in that process, freeing their old pointers. The pointer in the GH is updated, but the copy made by CCTK_PARAMETERS inside the recovery routine itself is not. One of two solutions come to mind: either we make a copy of the whole string in this routine (and free it later), or we don't access parameters here directly, but always go through the GH.