From: Nicholas N. <n.n...@gm...> - 2009-05-15 21:17:01
|
On Fri, May 15, 2009 at 6:55 AM, <Pat...@no...> wrote: > > I am using valgrind 3.4.1 to try to find a memory leak. My > program has an initial routine which allocates a lot of memory - > around 1 GB. When I run the program by itself it runs fine, however > when I run it under valgrind, one of the many malloc calls in > the initial routine fails. > > Does anyone know why this would happen? There is plenty of memory > on the machine (64 GB). On my x86-64 machine, which has 4GB of RAM, I tested with a trivial program and was able to malloc up to 8GB successfully. A 9GB allocation failed. So it's not some limit in Valgrind's malloc implementation; I don't know what the problem is. Nick |