mshinwell told me the backtrace is useless so I elided it.
Forgot to add seems to happen both on linux and osx.
I could reproduced it on trunk.
The stack overflow happens during CSE.
The failing code is a large generated file containing arrays.
The entry function initializing the arrays is very large.
This reduces the size of the code, hence preventing the stack overflow on that file. This does not prevent it on a much larger one.
This can be closed. It was fixed in 4.04.1.