|
From: Dirk M. <dm...@me...> - 2004-04-30 00:00:42
|
I'm not getting the following error messages when I run my code. I've been unable to produce a simple test case that causes this. My program doesnt modify env variables in any way (to my knowledge . Anyone know what (in my program) might be causing this? Or a workaround? I'm running Debian testing: Linux timmy 2.6.2 #4 Mon Feb 23 16:53:47 PST 2004 i686 GNU/Linux gcc version 3.3.3 (Debian 20040401) Error message: VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH): internal error: what = 0 ld_preload_str = `(null)' ld_library_path_str = `(null)' 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 0 ==27557== at 0x40177F78: vgPlain_core_panic (vg_mylibc.c:1121) ==27557== by 0x40177F77: panic (vg_mylibc.c:1117) ==27557== by 0x40177FAA: vgPlain_core_panic (vg_mylibc.c:1122) ==27557== by 0x40172AFA: vgPlain_mash_LD_PRELOAD_and_LD_LIBRARY_PATH (vg_main.c:1937) |
|
From: Nicholas N. <nj...@ca...> - 2004-04-30 10:12:48
|
On Thu, 29 Apr 2004, Dirk Morris wrote: > I'm not getting the following error messages when I run my code. > I've been unable to produce a simple test case that causes this. > My program doesnt modify env variables in any way (to my knowledge . > > Anyone know what (in my program) might be causing this? > Or a workaround? > > I'm running Debian testing: > Linux timmy 2.6.2 #4 Mon Feb 23 16:53:47 PST 2004 i686 GNU/Linux > gcc version 3.3.3 (Debian 20040401) > > > Error message: > VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH): internal error: > what = 0 > ld_preload_str = `(null)' > ld_library_path_str = `(null)' > vg_prel = `(null)' > sk_prel = `(null)' > coredir2 = `(null)' > VG_LIBDIR = `/usr/local/lib' You don't mention which Valgrind version you're using, but I guess it's 2.0.0 or earlier. Are you zeroing all the environment variables, including LD_PRELOAD and/or LD_LIBRARY_PATH? Those versions of Valgrind couldn't handle that. It's fixed in 2.1.0 and later versions, IIRC. N |
|
From: Dirk M. <dm...@me...> - 2004-04-30 16:53:36
|
Nicholas Nethercote wrote: > >You don't mention which Valgrind version you're using, but I guess it's >2.0.0 or earlier. Are you zeroing all the environment variables, >including LD_PRELOAD and/or LD_LIBRARY_PATH? Those versions of Valgrind >couldn't handle that. It's fixed in 2.1.0 and later versions, IIRC. > > Oops, I'm using 2.1.0 and 2.1.1. I don't see this problem anymore, and I have no idea why! :o I'm looking into the different versions of the libraries I use. |