Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

incorrect checksum

mcoscona1
Beginner
2,021 Views
Hi all,
I am a recent user of fortran on mac and keep getting this error when I execute my code:
error for object 0x100201c78: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
error for object 0x100201c78: incorrect checksum for freed object - object was probably modified after being freed.*** set a breakpoint in malloc_error_break to debug
Any idea on what the problem is?
It seems related to memory allocation....
Thanks!
Marco
0 Kudos
3 Replies
Steven_L_Intel1
Employee
2,021 Views
Your program is writing outside allocated memory, or are using a pointer after freeing it. This can be very difficult to diagnose, unfortunately.

What I usually do when confronted with such a problem, and where I can't use Intel Inspector XE (which doesn't support Mac, unfortunately for you), is backing up from the point of the error and seeing which code I can selectively remove and still have the error occur. This can help you locate the error source. You may also want to turn on all run-time checking (-C) and also build with -warn interface.
0 Kudos
Marco_Cosconati
Beginner
2,021 Views
Dear Steve,
unofrtunately I keep getting this problem. In particular when i simply try to print something out of my code. No matter what is (even a simple "hello") I still get the same error.
Any idea??
Thanks
-marco
0 Kudos
Steven_L_Intel1
Employee
2,021 Views
Same answer, really - something is corrupting memory. The PRINT just happens to be the place it gets reported. Same advice as I gave earlier.
0 Kudos
Reply