From: Leonard m. <spa...@ya...> - 2003-06-10 11:04:49
|
> Pulled CVS today and I'm getting 10s of thousands of Mismatched free > errors that aren't mismatched, a known issue reported earlier in the > archives. Thanks for the replies. I'll try gcc 2.96. Here's more info for those working on the CVS head. This program: int main() { int *block, *block_list; block = new int; block_list = new int[ 10 ]; delete block; delete [] block_list; } generates these errors: ==29084== Mismatched free() / delete / delete [] ==29084== at 0x40026350: __builtin_delete (vg_replace_malloc.c:233) ==29084== by 0x40026370: operator delete(void*) (vg_replace_malloc.c:242) ==29084== by 0x8048506: main (tst.C:7) ==29084== by 0x4031D4A1: __libc_start_main (in /lib/libc.so.6) ==29084== Address 0x411190D4 is 0 bytes inside a block of size 4 alloc'd ==29084== at 0x40026020: malloc (vg_replace_malloc.c:153) ==29084== by 0x402B194D: operator new(unsigned) (in /usr/lib/libstdc++.so.5.0.0) ==29084== by 0x80484E5: main (tst.C:5) ==29084== by 0x4031D4A1: __libc_start_main (in /lib/libc.so.6) ==29084== ==29084== Mismatched free() / delete / delete [] ==29084== at 0x400263EC: __builtin_vec_delete (vg_replace_malloc.c:252) ==29084== by 0x4002640C: operator delete[](void*) (vg_replace_malloc.c:261) ==29084== by 0x804851A: main (tst.C:8) ==29084== by 0x4031D4A1: __libc_start_main (in /lib/libc.so.6) ==29084== Address 0x41119108 is 0 bytes inside a block of size 40 alloc'd ==29084== at 0x40026020: malloc (vg_replace_malloc.c:153) ==29084== by 0x402B194D: operator new(unsigned) (in /usr/lib/libstdc++.so.5.0.0) ==29084== by 0x402B1AAE: operator new[](unsigned) (in /usr/lib/libstdc++.so.5.0.0) ==29084== by 0x80484F5: main (tst.C:6) using valgrind from CVS yesterday with gcc 3.2 and glibc 2.2.5 (SuSE 8.1). Randall __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |