Comment 43 for bug 418781

Revision history for this message
In , Milan (milan-redhat-bugs) wrote :

(In reply to comment #23)
> Andrea suggests checking whether these programs are calling madvise() with
> bogus flags

Not explicitly, but probably forgot to unlock memory - try this code:

#include <sys/mman.h>

int main (int argc, char *argv[])
{
        mlockall(MCL_CURRENT | MCL_FUTURE);
// munlockall();

        return 0;
}