From: Julian Seward Date: Sat, 13 Jul 2002 12:20:35 +0000 (+0000) Subject: Print additional useful information immediately prior to X-Git-Tag: svn/VALGRIND_1_0_3~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2349ee6191e4f08cf097b2fe67b1e73d35954c0c;p=thirdparty%2Fvalgrind.git Print additional useful information immediately prior to VG_(panic)("VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH) failed\n"); git-svn-id: svn://svn.valgrind.org/valgrind/trunk@491 --- diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c index 695d2a615f..1095aa5122 100644 --- a/coregrind/vg_main.c +++ b/coregrind/vg_main.c @@ -1312,6 +1312,18 @@ void VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH) ( Char* ld_preload_str, what, ld_preload_str, ld_library_path_str, p_prel, p_path, VG_LIBDIR ); + VG_(printf)( + "\n" + "Note that this is often caused by mis-installation of valgrind.\n" + "Correct installation procedure is:\n" + " ./configure --prefix=/install/dir\n" + " make install\n" + "And then use /install/dir/bin/valgrind\n" + "Moving the installation directory elsewhere after 'make install'\n" + "will cause the above error. Hand-editing the paths in the shell\n" + "scripts is also likely to cause problems.\n" + "\n" + ); VG_(panic)("VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH) failed\n"); } diff --git a/vg_main.c b/vg_main.c index 695d2a615f..1095aa5122 100644 --- a/vg_main.c +++ b/vg_main.c @@ -1312,6 +1312,18 @@ void VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH) ( Char* ld_preload_str, what, ld_preload_str, ld_library_path_str, p_prel, p_path, VG_LIBDIR ); + VG_(printf)( + "\n" + "Note that this is often caused by mis-installation of valgrind.\n" + "Correct installation procedure is:\n" + " ./configure --prefix=/install/dir\n" + " make install\n" + "And then use /install/dir/bin/valgrind\n" + "Moving the installation directory elsewhere after 'make install'\n" + "will cause the above error. Hand-editing the paths in the shell\n" + "scripts is also likely to cause problems.\n" + "\n" + ); VG_(panic)("VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH) failed\n"); }