JuliaInterpreter.jl icon indicating copy to clipboard operation
JuliaInterpreter.jl copied to clipboard

Have an option to abort on too long stack

Open KristofferC opened this issue 1 year ago • 0 comments

Would be useful to debug stack overflows. Right now, stuff like

julia> @interpret randMPS(Float64, 6, U1SpinlessFermion.pspace, Rep[U₁](c => 1 for c in -1:1/2:1))

Internal error: during type inference of
handle_err(Any, JuliaInterpreter.Frame, StackOverflowError)
Encountered stack overflow.
This might be caused by recursion over very long tuples or argument lists.
Internal error: during type inference of
handle_err(Any, JuliaInterpreter.Frame, StackOverflowError)
Encountered stack overflow.
This might be caused by recursion over very long tuples or argument lists.
Internal error: encountered unexpected error during compilation of handle_err:
StackOverflowError()
Internal error: during type inference of
handle_err(Any, JuliaInterpreter.Frame, StackOverflowError)
Encountered stack overflow.
This might be caused by recursion over very long tuples or argument lists.
Internal error: encountered unexpected error during compilation of handle_err:
StackOverflowError()

happens

KristofferC avatar May 28 '24 08:05 KristofferC