Skip to content

Commit 48dae8d

Browse files
committed
Add note on SIGBUS
1 parent e01c9b0 commit 48dae8d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compiler-rt/test/sanitizer_common/TestCases/Linux/cloak_sigaction.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ int main(int argc, char *argv[]) {
4343
fflush(stdout);
4444

4545
// Trying to organically segfault by dereferencing a pointer can be tricky
46-
// in builds with assertions.
46+
// in builds with assertions. Additionally, some older platforms may SIGBUS
47+
// instead.
4748
raise(SIGSEGV);
4849
// CUSTOM: Custom signal handler
4950
// SANITIZER: Sanitizer:DEADLYSIGNAL

compiler-rt/test/sanitizer_common/TestCases/Linux/cloak_signal.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ int main(int argc, char *argv[]) {
3838
fflush(stdout);
3939

4040
// Trying to organically segfault by dereferencing a pointer can be tricky
41-
// in builds with assertions.
41+
// in builds with assertions. Additionally, some older platforms may SIGBUS
42+
// instead.
4243
raise(SIGSEGV);
4344
// CUSTOM: Custom signal handler
4445
// SANITIZER: Sanitizer:DEADLYSIGNAL

0 commit comments

Comments
 (0)