From 6b710076fa5cffd7f418db9e457728c4823bab21 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Sun, 24 Mar 2002 12:03:00 +0000 Subject: [PATCH] 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 --- coregrind/vg_memory.c | 8 ++++++++ vg_memory.c | 8 ++++++++ 2 files changed, 16 insertions(+) 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"); } } -- 2.47.2