Skip to content

Add stack overflow detection #3

Description

@Cuh4

Detecting stack overflows before Stormworks does would be helpful as it'd allow for tracing to provide traceback for stack overflow errors too. This could also prevent cases I've encountered where stack overflows will cause CTDs with Stormworks providing no useful information.

A max stack size could be set (perhaps configurable? Although probably no need for it), then simply check #SSSW_DBG._stack > MAX_STACK_SIZE in SSSW_DBG._trace_enter as discussed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions