Skip to content

Crash function detection #111

Description

@Mr-Wiseguy

When a crash (namely a segfault/access violation) occurs, the runtime should be able to scan the addresses of all functions in a crash handler to find which contains the crashed function.

For vanilla functions it's not as easy because there aren't well defined function bounds that the program can access for each, meaning it'd have to guess by sorting all the game functions by their native address to try to see how big each one is.

For mod functions, the sizes of each function are known due to the live recompilation process. This means crashes in mod functions can be determined exactly. A revision of the mod symbol format would allow carrying over function names from the elf when the mod tool is run, which would allow a very helpful error message for mod developers.

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