I am using electric fence 2.1.13 to try to find a memory allocation problem that occurs after my application runs for about 3 hours. When I link to the electric fence library, I get "ElectricFence Exiting: mprotect() failed: Cannot allocate memory" during initialization. Could this be the source of the error that takes 3 hours to occur? I wonder because all I see at this point is a 12 byte malloc.
According to a comment in efence.c, "On some systems it will be necessary to increase the amount of swap space in order to debug large programs that perform lots of allocation, because of the per-buffer overhead." How does one increase the amount of swap space? I am running Linux 2.6.26 on an MPC8248.