I get error shown below when I try to test my program. It appears to be
coming directly out of the unit test framework, though this is after a
test, and so my code could have done something. Can anyone help me
determine what is going on or how to fix it?
Valgrind shows the error, but it's source is mysterious.
This was generated on Debian GNU/Linux etch with 64 bit Xeon and gcc.
The same tests run fine on Debian testing with 32 bit AMD and OS-X on 64
bit powerpc (although I think the older version of the OS on the machine
is mostly 32 bit).
*** glibc detected *** corrupted double-linked list: 0x00000000005fd2a0
***
Program received signal SIGABRT, Aborted.
0x00002affd559207b in *__GI_raise () from /usr/lib/debug/libc.so.6
Current language: auto; currently c
(gdb) where
#0 0x00002affd559207b in *__GI_raise () from /usr/lib/debug/libc.so.6
#1 0x00002affd559384e in *__GI_abort () from /usr/lib/debug/libc.so.6
#2 0x00002affd55c85f9 in __libc_message ()
from /usr/lib/debug/libc.so.6
#3 0x00002affd55cd9cc in malloc_consolidate ()
from /usr/lib/debug/libc.so.6
#4 0x00002affd55cf789 in _int_malloc () from /usr/lib/debug/libc.so.6
#5 0x00002affd55d116d in *__GI___libc_malloc ()
from /usr/lib/debug/libc.so.6
#6 0x00002affd518f93d in operator new () from /usr/lib/libstdc++.so.6
#7 0x00002affd516e5d1 in std::string::_Rep::_S_create ()
from /usr/lib/libstdc++.so.6
#8 0x00002affd516ef8b in std::string::_Rep::_M_clone ()
from /usr/lib/libstdc++.so.6
#9 0x00002affd516f895 in std::string::reserve () from /usr/lib/libstdc
++.so.6
#10 0x00002affd51690a5 in std::basic_stringbuf