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
Sam writes:
Are you using malloc() for allocating memory or some other function?
Hendrik
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