diff --git a/gum/backend-posix/gumexceptor-posix.c b/gum/backend-posix/gumexceptor-posix.c index c330f8ab3..31b7934df 100644 --- a/gum/backend-posix/gumexceptor-posix.c +++ b/gum/backend-posix/gumexceptor-posix.c @@ -253,6 +253,9 @@ gum_exceptor_backend_attach (GumExceptorBackend * self) action.sa_sigaction = gum_exceptor_backend_on_signal; sigemptyset (&action.sa_mask); action.sa_flags = SA_SIGINFO | SA_NODEFER; +#ifdef SA_ONSTACK + action.sa_flags |= SA_ONSTACK; +#endif for (i = 0; i != G_N_ELEMENTS (handled_signals); i++) { gint sig = handled_signals[i];