From ed12fa7e42489e748ac7d08cc4d0374404a91463 Mon Sep 17 00:00:00 2001 From: monojenkins Date: Tue, 18 Feb 2020 16:33:53 -0500 Subject: [PATCH] [mono] Remove SIGTRAP handler, as it interferes with debugging (#32264) See https://github.com/mono/mono/pull/18243#issuecomment-586013427 Co-authored-by: Alexis Christoforides --- src/mono/mono/mini/mini-posix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mono/mono/mini/mini-posix.c b/src/mono/mono/mini/mini-posix.c index 2d11b56..47f7a10 100644 --- a/src/mono/mono/mini/mini-posix.c +++ b/src/mono/mono/mini/mini-posix.c @@ -456,8 +456,6 @@ mono_runtime_posix_install_handlers (void) add_signal_handler (SIGUSR2, sigusr2_signal_handler, SA_RESTART); sigaddset (&signal_set, SIGUSR2); } - add_signal_handler (SIGTRAP, mono_crashing_signal_handler, 0); - sigaddset (&signal_set, SIGTRAP); add_signal_handler (SIGSYS, mono_crashing_signal_handler, 0); sigaddset (&signal_set, SIGSYS); @@ -504,6 +502,7 @@ mono_runtime_cleanup_handlers (void) remove_signal_handler (SIGBUS); if (mono_jit_trace_calls != NULL) remove_signal_handler (SIGUSR2); + remove_signal_handler (SIGSYS); remove_signal_handler (SIGABRT); -- 2.7.4