From: Julian Seward Date: Mon, 14 Mar 2005 19:11:10 +0000 (+0000) Subject: Don't read symbol tables for .so's that constitute part of Valgrind X-Git-Tag: svn/VALGRIND_3_0_0~962 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4fa79fe96885b6b498599293cd03f87d3dc2ca89;p=thirdparty%2Fvalgrind.git Don't read symbol tables for .so's that constitute part of Valgrind itself. Doing so -- in this case for libc.so.6 -- confuses the redirection machinery and so messes up redirections to mac_replace_strmem.c, which in turn causes memcheck to report spurious errors. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3356 --- diff --git a/coregrind/vg_memory.c b/coregrind/vg_memory.c index 2a05966517..1290f5f9d4 100644 --- a/coregrind/vg_memory.c +++ b/coregrind/vg_memory.c @@ -708,6 +708,7 @@ VG_(map_file_segment)( Addr addr, SizeT len, file, then try reading symbols from it. */ if (s->symtab == NULL + && (addr+len < VG_(valgrind_base) || addr > VG_(valgrind_last)) && (flags & (SF_MMAP|SF_NOSYMS)) == SF_MMAP) { if (off == 0 && s->fnIdx != -1