danigeos / tisc

TISC is a code to model isostasy, erosion/sediment transport/sedimentation, and tectonic kinematics, mostly for the study of sedimentary basins and source to sink systems.
https://sites.google.com/site/daniggcc/software/tisc
16 stars 2 forks source link

Memory Error #16

Closed mberry28 closed 6 years ago

mberry28 commented 6 years ago

Hello!

I recently spontaneously started getting this error listed below. I was making adjustments with a .UNIT file and it started to get this error. I can't seem to make it go away, even if I removed the UNIT file I was working with. It will run for several (more than 10) dt iterations then suddenly crash with this error.

I have restarted my machine, simplified my model, reinstalled TISC, cleared background RAM uses, and it seems to persist.

Any ideas?

tisc(64210,0x7fff75aec000) malloc: *** error for object 0x7fd3bac74f68: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
mberry28 commented 6 years ago

I also should note, that I have spent some time Googling the solution and the error, but none of the solutions seem to work for this or it's outside my experience. I will keep toying with it and report back if I find a solution.

danigeos commented 6 years ago

that seems a memory error and my usual valgrind is currently not working for mac, for some version issue. Otherwise i would ask you the input files and try reproducing it. I you don't use mac try running the memory checker "valgrind", it should give you the line of the memory leak.

On Wed, Nov 29, 2017 at 5:28 AM, Michael Berry notifications@github.com wrote:

I also should note, that I have spent some time Googling the solution and the error, but none of the solutions seem to work for this or it's outside my experience. I will keep toying with it and report back if I find a solution.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/danigeos/tisc/issues/16#issuecomment-347749502, or mute the thread https://github.com/notifications/unsubscribe-auth/ALBQihfmzNebvsiQY_cER6jRqv7Dua0wks5s7N1VgaJpZM4QuZ2N .

mberry28 commented 6 years ago

As spontaneously as it seemed to start, the problem doesn't seem to be happening anymore. I am sure something changed, but I am not sure what it is.

BTW, Valgrind kept repeatedly having segmentation faults when using TISC, perhaps also a version issue?