Open
Description
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.