From: Julian Seward Date: Sun, 24 Mar 2002 12:03:00 +0000 (+0000) Subject: Print suggested fix to avoid this panic: X-Git-Tag: svn/VALGRIND_1_0_3~423 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b710076fa5cffd7f418db9e457728c4823bab21;p=thirdparty%2Fvalgrind.git Print suggested fix to avoid this panic: VG_ASSUMED_EXE_BASE doesn't match reality git-svn-id: svn://svn.valgrind.org/valgrind/trunk@23 --- diff --git a/coregrind/vg_memory.c b/coregrind/vg_memory.c index 13ae157951..eea86acd61 100644 --- a/coregrind/vg_memory.c +++ b/coregrind/vg_memory.c @@ -1514,6 +1514,14 @@ void init_memory_audit_callback ( "FATAL: executable base addr not as assumed."); VG_(message)(Vg_UserMsg, "name %s, actual %p, assumed %p.", filename, start, VG_ASSUMED_EXE_BASE); + VG_(message)(Vg_UserMsg, + "One reason this could happen is that you have a shared object"); + VG_(message)(Vg_UserMsg, + " whose name doesn't contain the characters \".so\", so Valgrind "); + VG_(message)(Vg_UserMsg, + "naively assumes it is the executable. "); + VG_(message)(Vg_UserMsg, + "In that case, rename it appropriately."); VG_(panic)("VG_ASSUMED_EXE_BASE doesn't match reality"); } } diff --git a/vg_memory.c b/vg_memory.c index 13ae157951..eea86acd61 100644 --- a/vg_memory.c +++ b/vg_memory.c @@ -1514,6 +1514,14 @@ void init_memory_audit_callback ( "FATAL: executable base addr not as assumed."); VG_(message)(Vg_UserMsg, "name %s, actual %p, assumed %p.", filename, start, VG_ASSUMED_EXE_BASE); + VG_(message)(Vg_UserMsg, + "One reason this could happen is that you have a shared object"); + VG_(message)(Vg_UserMsg, + " whose name doesn't contain the characters \".so\", so Valgrind "); + VG_(message)(Vg_UserMsg, + "naively assumes it is the executable. "); + VG_(message)(Vg_UserMsg, + "In that case, rename it appropriately."); VG_(panic)("VG_ASSUMED_EXE_BASE doesn't match reality"); } }