Skip to content

Commit 028e755

Browse files
[compiler-rt] Also consider SIGPROF as a synchronous signal
Blocking that signal causes inter-blocking for profilers that monitor threads through that signal. Fix #83844 and #83561
1 parent 071f72a commit 028e755

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2168,7 +2168,8 @@ static bool is_sync_signal(ThreadSignalContext *sctx, int sig,
21682168
return false;
21692169
#endif
21702170
return sig == SIGSEGV || sig == SIGBUS || sig == SIGILL || sig == SIGTRAP ||
2171-
sig == SIGABRT || sig == SIGFPE || sig == SIGPIPE || sig == SIGSYS;
2171+
sig == SIGABRT || sig == SIGFPE || sig == SIGPIPE || sig == SIGSYS ||
2172+
sig == SIGPROF;
21722173
}
21732174

21742175
void sighandler(int sig, __sanitizer_siginfo *info, void *ctx) {

0 commit comments

Comments
 (0)