Weirdest way to produce a stack overflow As a programmer you certainly know the error of a stack overflow due to an obvious recursion.
But there are certainly many weird and unusual ways to get your favourite language to spit that error out. 

Objectives: 


Must cause a stack overflow which is clearly visible on the error output.
Not allowed to use an obvious recursion.


Examples of invalid programs:

// Invalid, direct obvious recursion.
methodA(){ methodA(); }




// Invalid, indirect, but obvious recursion.
methodA(){ methodB(); }
methodB(){ methodA(); }


The most creative ways are the best as this a popularity-contest. I.e, avoid boring obvious answers like this:

throw new StackOverflowError(); // Valid, but very boring and downvote-deserving.


Even though I accepted an answer now, adding more answers is still okay :)
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.