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

*** glibc detected *** ./a.out: double free or corruption

davidbhatt
Beginner
621 Views
i m getting the following error while running a sime fortran coding.
the program runs well but gives junk output and gives following error.

*** glibc detected *** ./a.out: free(): invalid next size (fast): 0x000000000069
1590 ***


can u help me?
0 Kudos
1 Reply
TimP
Honored Contributor III
621 Views
Intentionally or not, you are invoking the free() C runtime function with bad data. We can't guess whether you have Fortran with dynamic allocation, or actually call malloc() and free() in C. If your program is correct in going there, you may have clobbered memory by writing beyond array bounds.
0 Kudos
Reply