From: Melchior F. <mf...@kd...> - 2003-06-10 09:16:31
|
* Leonard mckinley -- Tuesday 10 June 2003 00:05: > 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. I can confirm that cvs/head gives hundreds of bogus error messages about mismatched allocation. I only checked one of them and saw that the concerned code creates an automatic variable of a c++ object. valgrind obviously complains when the auto var is to be destroyed at function end. The bug was introduced with "vg_replace_malloc.c" revision 1.7. (1.6 did still work.) Example error message from debugging FlightGear/gcc 3.2/Linux 2.4.21-pre6: ==10706== Mismatched free() / delete / delete [] ==10706== at 0x400263EC: __builtin_vec_delete (vg_replace_malloc.c:252) ==10706== by 0x4002640C: operator delete[](void*) (vg_replace_malloc.c:261) ==10706== by 0x8491E79: ulRTTITypeinfo::ulRTTITypeinfo(char const*, ulRTTITypeinfo const**, void* (*)(int, void*), void* (*)()) (ulRTTI.cxx:50) ==10706== Address 0x42B4EA2C is 0 bytes inside a block of size 4 alloc'd ==10706== at 0x40026020: malloc (vg_replace_malloc.c:153) ==10706== by 0x4033789D: operator new(unsigned) (in /usr/lib/libGLU.so.1.3) ==10706== by 0x403379FE: operator new[](unsigned) (in /usr/lib/libGLU.so.1.3) ==10706== by 0x8491E34: ulRTTITypeinfo::ulRTTITypeinfo(char const*, ulRTTITypeinfo const**, void* (*)(int, void*), void* (*)()) (ulRTTI.cxx:67) And then: line 123 in configure.in from cvs/head causes the following error when running ./autogen.sh: running: autoconf configure.in:123: error: possibly undefined macro: AC_PROG_EGREP error: while running 'autoconf' Commenting this check out makes ./autogen.sh work. The funny thing is, that if I run autoconf manually, then I do neither get a complaint about AC_PROG_EGREP, nor an error return value. (WTF??) m. PS: I didn't mean to be ungrateful when I complained about my joystick patch being ignored for a month. I =am= grateful for that wonderful tool and all your work on it! :-) |