+ stack_t ss = {
+ .ss_sp = malloc(MINSIGSTKSZ),
+ .ss_size = MINSIGSTKSZ,
+ };
+ T_ASSERT_POSIX_SUCCESS(sigaltstack(&ss, NULL), "sigaltstack");
+
+ struct sigaction sa = {
+ .sa_handler = got_signal,
+ .sa_flags = SA_ONSTACK,
+ };
+ T_ASSERT_POSIX_SUCCESS(sigaction(SIGSEGV, &sa, NULL), "sigaction");