Skip to content

Commit 3054c68

Browse files
authored
Don't use altstack for the sigusr2 handler (JuliaLang#57134)
This works around an rr bug with nested signal handlers and syscalls. But it's also mostly unecessary as it doesn't need to handle stack overflows
1 parent b76fd9f commit 3054c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/signals-unix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ void jl_install_default_signal_handlers(void)
12081208
memset(&act, 0, sizeof(struct sigaction));
12091209
sigemptyset(&act.sa_mask);
12101210
act.sa_sigaction = usr2_handler;
1211-
act.sa_flags = SA_ONSTACK | SA_SIGINFO | SA_RESTART;
1211+
act.sa_flags = SA_SIGINFO | SA_RESTART;
12121212
if (sigaction(SIGUSR2, &act, NULL) < 0) {
12131213
jl_errorf("fatal error: sigaction: %s", strerror(errno));
12141214
}

0 commit comments

Comments
 (0)