Weirdest way to produce a stack overflow
Python

import sys
sys.setrecursionlimit(1)


This will cause the interpreter to fail immediately:

$ cat test.py
import sys
sys.setrecursionlimit(1)
$ python test.py
Exception RuntimeError: 'maximum recursion depth exceeded' in &lt;function _remove at 0x10e947b18&gt; ignored
Exception RuntimeError: 'maximum recursion depth exceeded' in &lt;function _remove at 0x10e8f6050&gt; ignored
$ 


Instead of using recursion, it just shrinks the stack so it will overflow immediately.