[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stack Overflow



I am running code that is well-tested and works reliably, but I am for
the first time reading a particularly long input file using a recursive
function.  MCL breaks with an error of "stack overflow" at the depth of
frame 5213, preventing the my program from continuing.  There is enough
memory available.

Is there a way to increase the stack size?  I would prefer to do that
rather than rewriting my code.

If the stack size cannot be increased, this limitation and its limit
value should be placed in the documentation so that people don't rely on
recursive code which could overflow the stack under certain conditions.

Thanks,
Tom Herbig

Princeton University
Physics Department