|
From: Ilkka H. <ihu...@cc...> - 2005-01-27 07:59:10
|
Hi, I'm using Gentoo Linux 2.4. I installed Valgrind yesterday, first with emerge tool, then compiling manually from the sources. With either way, whenever I try to run it, I get this: # valgrind Executable range 0xb0000000-0xb01f4b40 is outside the acceptable range 0x80d0000-0x7ffff000 valgrind: failed to load /usr/lib/valgrind/stage2: Cannot allocate memory What might be wrong? Wine is not in use, the I try to use the normal Valgrind. Ilkka |
|
From: Tom H. <th...@cy...> - 2005-01-28 14:21:21
|
In message <000801c50446$16459d50$152ca8c0@nd>
Ilkka Huotari <ihu...@cc...> wrote:
> I'm using Gentoo Linux 2.4. I installed Valgrind yesterday, first with
> emerge tool, then compiling manually from the sources.
>
> With either way, whenever I try to run it, I get this:
>
> # valgrind
> Executable range 0xb0000000-0xb01f4b40 is outside the
> acceptable range 0x80d0000-0x7ffff000
> valgrind: failed to load /usr/lib/valgrind/stage2: Cannot allocate memory
>
> What might be wrong?
It looks likes your valgrind is build for a 3:1 user:kernel memory
split but your system has a 2:2 split so stage2 can't be loaded as
the address it was built for is up in kernel space.
You can rebuild valgrind with KICKSTART_BASE changed to a lower
address but with only 2Gb of address space you may have problems
running large programs under valgrind.
Do you know why Gentoo is using a 2:2 split? Most systems these seem
to be moving to a 4:0 split if anything.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|