Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions compiler-rt/lib/asan/asan_posix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ void PlatformTSDDtor(void *tsd) {
#endif

void InstallAtForkHandler() {
# if SANITIZER_SOLARIS || SANITIZER_NETBSD
return; // FIXME: Implement FutexWait.
# endif
auto before = []() {
if (CAN_SANITIZE_LEAKS) {
__lsan::LockGlobal();
Expand Down
3 changes: 3 additions & 0 deletions compiler-rt/lib/lsan/lsan_posix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ void InstallAtExitCheckLeaks() {
}

void InstallAtForkHandler() {
# if SANITIZER_SOLARIS || SANITIZER_NETBSD
return; // FIXME: Implement FutexWait.
# endif
auto before = []() {
LockGlobal();
LockThreads();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
// FIXME: False stack overflow report
// UNSUPPORTED: android && asan

// FIXME: Requires `FutexWait` implementation. See __asan::InstallAtForkHandler.
// UNSUPPORTED: target={{.*solaris.*}}
// UNSUPPORTED: target={{.*netbsd.*}}

// Forking in multithread environment is unsupported. However we already have
// some workarounds, and will add more, so this is the test.
// The test try to check two things:
Expand Down