[2020-02][runtime] Improve handling crashing signals (#19019)
commit544930719ed8ad1c22d05a570c1ccb13d0792c5b
authorAlexis Christoforides <alexis@thenull.net>
Sat, 29 Feb 2020 02:10:14 +0000 (28 21:10 -0500)
committerGitHub <noreply@github.com>
Sat, 29 Feb 2020 02:10:14 +0000 (28 21:10 -0500)
treea84156562909756f7a000eb5062e971d37e4acec
parent69d8e50279d41030ae7ba3c1eb7432b992ca1136
[2020-02][runtime] Improve handling crashing signals (#19019)

* [runtime] Improve handling crashing signals

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

This patch also changes how the name of the signal is acquired for passing on to the crash reporting functions, allowing code reuse on crashing signals.

* [mono] Remove SIGTRAP handler, as it interferes with debugging

See https://github.com/mono/mono/pull/18243#issuecomment-586013427

* Fix lack of cleanup for SIGSYS
15 files changed:
configure.ac
mono/metadata/icall.c
mono/mini/exceptions-amd64.c
mono/mini/exceptions-ppc.c
mono/mini/exceptions-x86.c
mono/mini/mini-posix.c
mono/mini/mini-runtime.c
mono/mini/mini-runtime.h
mono/mini/mini-windows.c
mono/utils/Makefile.am
mono/utils/mono-merp.c
mono/utils/mono-signal-handler.c [new file with mode: 0644]
mono/utils/mono-signal-handler.h
msvc/libmonoutils-common.targets
msvc/libmonoutils-common.targets.filters