Re: mprotect() failed: Cannot allocate memory

From: Mike Frysinger
Date: Tue Apr 20 2010 - 22:24:24 EST


On Tuesday 20 April 2010 19:44:18 Paweł Sikora wrote:
> so, let's avoid EF and run following test:

good, the info is useful now

> mmap(NULL, 4896, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, -1, 0) =
> 0x7f5fd97df000
> mprotect(0x7f5fd97df000, 4096, PROT_NONE) = -1 ENOMEM (Cannot allocate
> memory)

since you're using funcs that go straight to the kernel, this most likely isnt
related to glibc at all, so sticking to LKML would be best. the next step
would be to look at the linux internals and find out why this is failing.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.