Resource limits
When you set resource limits in the /etc/security/limits file, make sure that the limits correspond to the needs of the processes on the system.
In particular, never set the stack size to unlimited. An unlimited stack might overwrite
other segments of the running process. The stack_hard size must also be limited.