Skip to content

Have an option to abort on too long stack #627

@KristofferC

Description

@KristofferC

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions