|
From: Ing, G. <gi...@so...> - 2003-08-18 19:13:13
|
Here's an email I just sent to jseward, in case anyone else on this list has ideas or experience with this. Thanks! I received one of your "impossible errors". Have you found a cure for these yet? gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) Red Hat Linux release 8.0 (Psyche) glib-1.2.10-8 valgrind-20030725 As per your FAQ, nothing in my executable modifies (or even reads) environment variables. Command line is: valgrind ./debug/CSAssistServer Any help would be welcome, alas the project is too large to send you as a sample. I'm just about to see if I can generate the error with a test file. <Valgrind works fine on other executables, there is clearly something about this particular one, which is a very large server> Graeme ==9058== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==9058== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward. ==9058== Using valgrind-20030725, a program supervision framework for x86-linux. ==9058== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward. ==9058== Estimated CPU clock rate is 1390 MHz ==9058== For more details, rerun with: -v ==9058== VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH): internal error: what = 1 ld_preload_str = `' ld_library_path_str = `/usr/local/lib/valgrind::/m1/homes/ging/projects/lib:/opt/app/oracle/produc t/8.1.6/lib:/m1/homes/ging/STLport-4.5.3/lib' vg_prel = `(null)' sk_prel = `(null)' coredir2 = `(null)' ==4920== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==4920== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward. ==4920== Using valgrind-20030725, a program supervision framework for x86-linux. ==4920== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward. ==4920== ==4920== My PID = 4920, parent PID = 9893. Prog and args are: ==4920== ./debug/CSAssistServer ==4920== Estimated CPU clock rate is 1391 MHz ==4920== For more details, rerun with: -v ==4920== VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH): internal error: what = 1 ld_preload_str = `' ld_library_path_str = `/usr/local/lib/valgrind::/m1/homes/ging/projects/lib:/opt/app/oracle/produc t/8.1.6/lib:/m1/homes/ging/STLport-4.5.3/lib' vg_prel = `(null)' sk_prel = `(null)' coredir2 = `(null)' VG_LIBDIR = `/usr/local/lib' Note that this is often caused by mis-installation of valgrind. Correct installation procedure is: ./configure --prefix=/install/dir make install And then use /install/dir/bin/valgrind Moving the installation directory elsewhere after 'make install' will cause the above error. Hand-editing the paths in the shell scripts is also likely to cause problems. valgrind: the `impossible' happened: VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH) failed Basic block ctr is approximately 300000 sched status: Thread 1: status = Runnable, associated_mx = 0x0, associated_cv = 0x0 ==4921== at 0x420B0357: __execve (in /lib/i686/libc-2.3.2.so) ==4921== by 0x420B0491: execv (in /lib/i686/libc-2.3.2.so) ==4921== by 0x408A1B05: execv (in /usr/local/parasoft/lib.linux2/libtql_c_gcc.so) ==4921== by 0x409D9F4D: Insure::Process::nativeNewProcess(Insure::NewProcessArgs const &, Insure::ThisThread *, Insure::LibraryCall &) (in /usr/local/parasoft/lib.linux2/libinsure.so) ==4921== by 0x409A2AD1: Insure::Process::newProcess(Insure::NewProcessArgs const &, Insure::ThisThread *, Insure::LibraryCall &) (in /usr/local/parasoft/lib.linux2/libinsure.so) ==4921== by 0x4097A08D: Insure::Pipe::newPipeline(Insure::Pipe *&, Insure::Pipe *&, Insure::Process *&, Insure_Argv_ThisThreadPtr const &, Insure::ThisThread *, Insure::LibraryCall &) (in /usr/local/parasoft/lib.linux2/libinsure.so) Note: see also the FAQ.txt in the source distribution. It contains workarounds to several common problems. If that doesn't help, please report this bug to: js...@ac... In the bug report, send all the above text, the valgrind version, and what Linux distro you are using. Thanks. Graeme "Fippy" Ing Senior Engineer Sony Online Entertainment Inc. gi...@so... (858) 577 3130 |
|
From: Nicholas N. <nj...@ca...> - 2003-08-18 19:35:09
|
On Mon, 18 Aug 2003, Ing, Graeme wrote: > As per your FAQ, nothing in my executable modifies (or even reads) > environment variables. > Command line is: > valgrind ./debug/CSAssistServer > > VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH): internal error: > what = 1 > ld_preload_str = `' Are you completely sure nothing modifies LD_PRELOAD? I ask because, as you can see, it's printed out when this case occurs and it's empty. Unless something else weird is happening... N |