Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

deallocation error

jft27
Beginner
509 Views
Hi,
I've got some code in which I used derived type array pointers. At the end I deallocate them and get the following message,

*** glibc detected *** double free or corruption (top): 0x08249b38 ***
forrtl: error (76): IOT trap signal

Now I'm assuming this means that the array is not allocated already but I was wondering why I get this error message rather than the usual "array not allocated" message from the fortran run time?

Also, does anyone have any hints on debugging these types of errors?

thanks
Jeremy
0 Kudos
1 Reply
Steven_L_Intel1
Employee
509 Views
There may be some situations where the Fortran run-time can't test this (for example, if you have two pointers to the same or overlapping storage and deallocate both of them.) If you think your program is correct, please send a test case to Intel Premier Support.
0 Kudos
Reply