If you create a very simple script, simply pointing at itself ie:
/home/user/loop.sh
and then executes the script in terminal (as regular user), it starts to consume more and more memory, until the user sessions crashes. All memory used for the session is lost and lightdm is restarted.
Why does ubuntu not protect itself against application that try to take up more memory than the system can offer?
(14.04 64 bit)