On Fri, May 15, 2009 at 6:55 AM,  <[email protected]> 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

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to