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

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

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?

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today