[runtime] Report crash when receiving crashing signals (#2052)
authormonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 6 Feb 2020 00:05:02 +0000 (19:05 -0500)
committerGitHub <noreply@github.com>
Thu, 6 Feb 2020 00:05:02 +0000 (19:05 -0500)
commit8c941a5229f5b03f38e00fca1f916bcf1c5050ab
tree0ce93afddb804cbe103eaa7e0abae5a77918ca74
parentd89fc6da24f5c042b8723e0e1cfd0b22ba2305be
[runtime] Report crash when receiving crashing signals (#2052)

The default handlers for SIGTRAP, SIGSYS on macOS and Linux crash the process, so we now have Mono report this.

This change also changes the presentation of the signal name on the stacktrace report dumped on error (from e.g. "SIGSEGV" to "segv").

Co-authored-by: Alexis Christoforides <alexis@thenull.net>
15 files changed:
src/mono/configure.ac
src/mono/mono/metadata/icall.c
src/mono/mono/mini/exceptions-amd64.c
src/mono/mono/mini/exceptions-ppc.c
src/mono/mono/mini/exceptions-x86.c
src/mono/mono/mini/mini-posix.c
src/mono/mono/mini/mini-runtime.c
src/mono/mono/mini/mini-runtime.h
src/mono/mono/mini/mini-windows.c
src/mono/mono/utils/Makefile.am
src/mono/mono/utils/mono-merp.c
src/mono/mono/utils/mono-signal-handler.c [new file with mode: 0644]
src/mono/mono/utils/mono-signal-handler.h
src/mono/msvc/libmonoutils-common.targets
src/mono/msvc/libmonoutils-common.targets.filters