Skip to content

in debug builds, detect stack overflow at runtime and output a partial stack trace #1616

Description

@andrewrk

I just debugged a stack overflow on windows that was solved by increasing the stack size for all executables. Once #157 is solved this can be replaced with a value based on call graph analysis.

But we still have chkstck calling @panic. When this happens we try to dump a stack trace, but this uses the stack, which just overflowed. So this can't work. This could potentially be a use case for @newStackCall.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSolving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    Status
    To do

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions