>> When the mmap() fails with EINVAL, then look at the address space using
>>      cat /proc/<pid>/maps
>> and see if there is 80MB contiguous space available.

> Doesn't mmap() return ENOSPC in this case rather than EINVAL?

The manual page says ENOMEM; the code in linux/mm/mmap.c has no "ENOSPC".
But things have already "gone wrong" when an 80GB request is not honored
on x86_64, so it may be worthwhile to consider other "impossible" conditions.

-- 

-------------------------------------------------------------------------
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