[etherlab-users] ethercos: memory allocation problem fix.

Len Remmerswaal lremmerswaal at revolutioncontrols.com
Wed Apr 27 13:32:26 CEST 2011


Hi all,

Just to inform anyone working with ethercos (are there any?)

If you are trying to run an ethercos generated code application without root privileges, you may run into a segmentation fault, caused by a memory allocation problem. Running as root avoids this problem.

If you want to be able to run as user joe anyway, run "ulimit -l" and/or check /etc/security/limits.conf.

The ethercos runtime locks a lot of memory, and some distributions (like Debian Lenny) limit this for normal users.

If you change /etc/security/limits.conf such that memlock is something like 32768 (a number that works for me) this problem is over.

Cheers,

Len.

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20110427/44031632/attachment-0003.htm>


More information about the Etherlab-users mailing list