This is an archive of the discontinued LLVM Phabricator instance.

[NFC][sanitizer] Extract ScopedBlockSignals
ClosedPublic

Authored by vitalybuka on Nov 8 2021, 7:04 PM.

Diff Detail

Event Timeline

vitalybuka requested review of this revision.Nov 8 2021, 7:04 PM
vitalybuka created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptNov 8 2021, 7:04 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
eugenis accepted this revision.Nov 9 2021, 5:23 PM

LGTM

This revision is now accepted and ready to land.Nov 9 2021, 5:23 PM
This revision was landed with ongoing or failed builds.Nov 9 2021, 6:24 PM
This revision was automatically updated to reflect the committed changes.
ro added a subscriber: ro.Nov 10 2021, 1:10 AM

This patch broke the Solaris/amd64 buildbot:

[71/467] Generating I386SunOSConfig/Asan-i386-calls-Noinst-Test
FAILED: projects/compiler-rt/lib/asan/tests/I386SunOSConfig/Asan-i386-calls-Noinst-Test 
cd /opt/llvm-buildbot/home/solaris11-amd64/clang-solaris11-amd64/stage1/projects/compiler-rt/lib/asan/tests && /opt/llvm-buildbot/home/solaris11-amd64/clang-solaris11-amd64/stage1/./bin/clang++ ASAN_NOINST_TEST_OBJECTS.gtest-all.cc.i386-calls.o ASAN_NOINST_TEST_OBJECTS.asan_fake_stack_test.cpp.i386-calls.o ASAN_NOINST_TEST_OBJECTS.asan_noinst_test.cpp.i386-calls.o ASAN_NOINST_TEST_OBJECTS.asan_test_main.cpp.i386-calls.o /opt/llvm-buildbot/home/solaris11-amd64/clang-solaris11-amd64/stage1/projects/compiler-rt/lib/asan/tests/libRTAsanTest.i386.a -o /opt/llvm-buildbot/home/solaris11-amd64/clang-solaris11-amd64/stage1/projects/compiler-rt/lib/asan/tests/I386SunOSConfig/./Asan-i386-calls-Noinst-Test -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -g --driver-mode=g++ -lm -ldl -lrt -pthread -m32
Undefined			first referenced
 symbol  			    in file
_ZN11__sanitizer18ScopedBlockSignalsD1Ev /opt/llvm-buildbot/home/solaris11-amd64/clang-solaris11-amd64/stage1/projects/compiler-rt/lib/asan/tests/libRTAsanTest.i386.a(sanitizer_linux.cpp.o)
_ZN11__sanitizer18ScopedBlockSignalsC1EPNS_20__sanitizer_sigset_tE /opt/llvm-buildbot/home/solaris11-amd64/clang-solaris11-amd64/stage1/projects/compiler-rt/lib/asan/tests/libRTAsanTest.i386.a(sanitizer_linux.cpp.o)
ld: fatal: symbol referencing errors

The definitions are within a !SANITIZER_SOLARIS && !SANITIZER_NETBSD block.

ro added a comment.Nov 11 2021, 1:48 AM

Sorry, 3330a6670ee8d725f16c61fa127ba93613f1fc1f should fix.

It did indeed: the buildbot is (mostly) green again. Thanks.