I ran into the same issue. After increasing swap, I am now able to login again.
However, every bash process now uses over 1 GB of virtual memory: 18541 pts/2 Ss 0:00 241 1021 1069166 4828 0.4 /bin/bash 18553 pts/3 Ss 0:01 120 1021 1069234 1628 0.1 /bin/bash 18639 pts/4 Ss+ 0:01 22 1021 1069166 6740 0.6 /bin/bash 18647 pts/2 S+ 0:01 76 1021 1069170 740240 72.5 bash It seems that there is some typo that causes bash to allocate 800 MB + 8 Bytes instead of just 8 Bytes ("xmalloc: cannot allocate 800000008“), and this fails on systems with limited memory.