[sanitizer] [Darwin] Disable InstallAtForkHandler

This is a followup to d01be3c63109986627c1c029d6d0130f76a63a2f.
This commit is contained in:
Azharuddin Mohammed 2023-12-18 10:59:56 -08:00
parent 6c1f56fdb5
commit 2a03854e4c
3 changed files with 3 additions and 2 deletions

View File

@ -149,7 +149,7 @@ void PlatformTSDDtor(void *tsd) {
#endif
void InstallAtForkHandler() {
# if SANITIZER_SOLARIS || SANITIZER_NETBSD
# if SANITIZER_SOLARIS || SANITIZER_NETBSD || SANITIZER_APPLE
return; // FIXME: Implement FutexWait.
# endif
auto before = []() {

View File

@ -101,7 +101,7 @@ void InstallAtExitCheckLeaks() {
}
void InstallAtForkHandler() {
# if SANITIZER_SOLARIS || SANITIZER_NETBSD
# if SANITIZER_SOLARIS || SANITIZER_NETBSD || SANITIZER_APPLE
return; // FIXME: Implement FutexWait.
# endif
auto before = []() {

View File

@ -15,6 +15,7 @@
// FIXME: Requires `FutexWait` implementation. See __asan::InstallAtForkHandler.
// UNSUPPORTED: target={{.*solaris.*}}
// UNSUPPORTED: target={{.*netbsd.*}}
// UNSUPPORTED: target={{.*apple.*}}
// Forking in multithread environment is unsupported. However we already have
// some workarounds, and will add more, so this is the test.