I've been running it through a debugger, but what I can glean from it is minimal.
I'll give some code:
for(...){
/* initializing matrix (matrix subroutine below) */
X=matrix(1, x, 1, y);
...
/* freeing matrix */
free_matrix(X, 1, x, 1, y);
}
float **matrix(long nrl, long nrh, long ncl...
It's strange. The error always occurs when freeing memory.
The code is located within a loop. So I allocate memory for a 2D pointer, then when I'm finished with the pointer I free it up for use during the next iteration. This works fine for 5-10 iterations and then this bug appears. The pointer...
When I run a program it spits out the following message:
*** glibc detected *** corrupted double-linked list: 0x08b9cb08 ***
Aborted (core dumped)
It is reproducible for certain parameter values, but for most there is no problem.
Backtrace listed the following:
#0 0xffffe410 in ?? ()
#1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.