|
From: Nuno L. <nun...@sa...> - 2007-01-10 23:03:38
|
> On Wed, 10 Jan 2007, Nuno Lopes wrote: > >> So it seems that valgrind only uses the function names from the debug >> data, >> and doesn't use the symbol table. Would it be possible to use the symbol >> table? (I mean fallback to it when no debug symbols are found) > > It already does this. That's why you get error messages like this if > there is no debug info: > > ==29800== Use of uninitialised value of size 4 > ==29800== at 0x80483B9: main (in /home/njn/grind/trunk5/a.out) At least not valgrind 3.2.1 or at least not always. I get this: ==4643== Invalid read of size 8 ==4643== at 0x8807EB8: (within /p2/var/php_gcov/PHP_5_2/sapi/cli/php) ==4643== Address 0x637A0F8 is 96 bytes inside a block of size 102 alloc'd ==4643== at 0x401CD95: realloc (vg_replace_malloc.c:306) (...) Clearly it misses the function name. Nuno |