Skip to content

Commit 2a03854

Browse files
author
Azharuddin Mohammed
committed
[sanitizer] [Darwin] Disable InstallAtForkHandler
This is a followup to d01be3c.
1 parent 6c1f56f commit 2a03854

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

compiler-rt/lib/asan/asan_posix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void PlatformTSDDtor(void *tsd) {
149149
#endif
150150

151151
void InstallAtForkHandler() {
152-
# if SANITIZER_SOLARIS || SANITIZER_NETBSD
152+
# if SANITIZER_SOLARIS || SANITIZER_NETBSD || SANITIZER_APPLE
153153
return; // FIXME: Implement FutexWait.
154154
# endif
155155
auto before = []() {

compiler-rt/lib/lsan/lsan_posix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void InstallAtExitCheckLeaks() {
101101
}
102102

103103
void InstallAtForkHandler() {
104-
# if SANITIZER_SOLARIS || SANITIZER_NETBSD
104+
# if SANITIZER_SOLARIS || SANITIZER_NETBSD || SANITIZER_APPLE
105105
return; // FIXME: Implement FutexWait.
106106
# endif
107107
auto before = []() {

compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// FIXME: Requires `FutexWait` implementation. See __asan::InstallAtForkHandler.
1616
// UNSUPPORTED: target={{.*solaris.*}}
1717
// UNSUPPORTED: target={{.*netbsd.*}}
18+
// UNSUPPORTED: target={{.*apple.*}}
1819

1920
// Forking in multithread environment is unsupported. However we already have
2021
// some workarounds, and will add more, so this is the test.

0 commit comments

Comments
 (0)