On Wed, 22 Oct 2008, Juan David Hernandez wrote:

> I am a new user of valgrind.
> I'm using a matrix/vector library, meschach, it uses static variables. I'm 
> extending that library, to have some new data types. I tried to debug the 
> memory to find possible leaks; unfortunately, when I run valgrind I got this 
> error:
>
> valgrind: mmap(0x8054000, 1006632960) failed in UME with error 22 (Invalid 
> argument).
> valgrind: this can be caused by executables with very large text, data or bss 
> segments.
>
> Does anybody know the reason? Is there any solution?
> Thanks for any help.

I guess you've got an enormous statically-allocated array somewhere.  If you 
can take it out and instead allocate it on startup with malloc, you'll have 
a much better chance.

Nick

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to