When executing my program inside an Amazon EC2 instance (t2.small, Oregon, Ubuntu 16.04), I get the error
ElectricFence Exiting: mprotect() failed: Cannot allocate memory
The steps I follow after launching the instance are:
Install build-essentials, pip and cmake
sudo apt-get update && sudo apt-get install build-essential python-pip cmakeInstall the conan package manager
pip install conanClone the repository
git clone https://github.com/oyarsa/faptp.gitCd into repo, create build folder, install dependencies and run cmake
mkdir build && cd build conan install .. -s compiler=gcc -s compiler.libcxx=libstdc++11 --build=missing cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release cmake --build .After compilation, I go back to the root directory and try to run the program
cd .. && ./build/bin/faptp
In doing this, the program executes for a while and then exits with this output:
SA-ILS
ElectricFence Exiting: mprotect() failed: Cannot allocate memory
The SA-ILS is output from my program. The error from ElectricFence is the problem. I've never heard of that before, and this is the first time I run this program inside EC2, so I assume it has something to do with it.
The source code is at https://github.com/oyarsa/faptp, if it helps.