Skip to content

Proposal: print informative reports for failed runtime checks #866

Open
@dopelsunce

Description

@dopelsunce

Currently, a failed runtime check causes SIGILL on x86 with no other useful information to help diagnosis. Attaching a debugger is inconvenient for getting the information about the failed check.

It would be great to show an ASAN-style report for the failed check before the program aborts. The report can show the location of the failed check, the values of the operands used in the check (e.g., the pointers and the bounds variables), and the stack trace. It would also be great to have a compiler flag to enable or disable this feature. The feature can be enabled in testing and debugging, and disabled in production.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis labels new features and enhancements.future workThis labels issues that need further triaging and discussion.suggestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions