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 0xbfff7954 in ?? ()
#2 0x00000006 in ?? ()
#3 0x0000655e in ?? ()
#4 0xb7eb96e5 in raise () from /lib/tls/libc.so.6
#5 0xb7ebb049 in abort () from /lib/tls/libc.so.6
#6 0xb7eed7ba in __fsetlocking () from /lib/tls/libc.so.6
#7 0xb7ef41f8 in malloc_trim () from /lib/tls/libc.so.6
#8 0xb7ef437a in free () from /lib/tls/libc.so.6
#9 0x0804e200 in free_matrix (m=0x8b9ca20, nrl=1, nrh=57, ncl=1, nch=57)
at nrutil.c:257
#10 0x0804b6d1 in main (argc=5, argv=0xbffff674) at struccons.c:638
struccons is my program, and free_matrix is used to free up an allocated 2d pointer that runs from nrl-nrh in the first dimension, and ncl-nch in the second dimension (this is a pre-written sub-routine from Numerical Recipes).
Anyone have any idea what's going on?
*** 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 0xbfff7954 in ?? ()
#2 0x00000006 in ?? ()
#3 0x0000655e in ?? ()
#4 0xb7eb96e5 in raise () from /lib/tls/libc.so.6
#5 0xb7ebb049 in abort () from /lib/tls/libc.so.6
#6 0xb7eed7ba in __fsetlocking () from /lib/tls/libc.so.6
#7 0xb7ef41f8 in malloc_trim () from /lib/tls/libc.so.6
#8 0xb7ef437a in free () from /lib/tls/libc.so.6
#9 0x0804e200 in free_matrix (m=0x8b9ca20, nrl=1, nrh=57, ncl=1, nch=57)
at nrutil.c:257
#10 0x0804b6d1 in main (argc=5, argv=0xbffff674) at struccons.c:638
struccons is my program, and free_matrix is used to free up an allocated 2d pointer that runs from nrl-nrh in the first dimension, and ncl-nch in the second dimension (this is a pre-written sub-routine from Numerical Recipes).
Anyone have any idea what's going on?