[ET Trac] [Einstein Toolkit] #1685: Access of freed memory in CarpetIOHDF5 during 1-Proc test of recoverML-EE.par

Einstein Toolkit trac-noreply at einsteintoolkit.org
Tue Oct 28 11:12:43 CDT 2014


#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.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1685#comment:3>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list