Logo OS Reviews

Reviewing Freedom.

Start new topic

From: Sam
Subject: efence mmap errors
Posted on 2009-03-28 05:02

Reply to this

Hi,

I am trying to run efence 2.2.0 to detect a memory corruption problem, but I keep getting this message:

ElectricFence Exiting: mmap() failed: Cannot allocate memory

My program does not allocate a lot of memory. I recompiled and ran my code on a 64bit machine to make sure that I am not hitting the memory limit, but I got a slightly different error message:

ElectricFence Exiting: mprotect() failed: Cannot allocate memory


Any idea what could be wrong?

Thanks,
Sam

From: Hendrik Weimer
Subject: Re: efence mmap errors
Posted on 2009-04-02 07:44

Reply to this

Sam writes:

Any idea what could be wrong?

Are you using malloc() for allocating memory or some other function?

Hendrik

  • Advertisement