LaTeX: 8 characters
\end\end
This is the same code used in this answerthis answer. Essentially, the \end
macro expands itself repeatedly, resulting in a stack overflow: TeX capacity exceeded, sorry [input stack size=5000]
. A more detailed explanation can be found here.