in bash: ulimit -v 200000 to limit memory and check for uncaught exception