This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizers] Fix Solaris build
ClosedPublic

Authored by ro on Apr 24 2018, 5:57 AM.

Diff Detail

Event Timeline

ro created this revision.Apr 24 2018, 5:57 AM
Herald added subscribers: Restricted Project, llvm-commits, kubamracek. · View Herald TranscriptApr 24 2018, 5:57 AM
This revision was not accepted when it landed; it landed in state Needs Review.Apr 24 2018, 6:03 AM
This revision was automatically updated to reflect the committed changes.

Can you run tests on SunOS? check-asan, check-ubsan etc.

ro added a comment.Apr 25 2018, 5:01 AM

Can you run tests on SunOS? check-asan, check-ubsan etc.

Of course: that's the first thing I did after fixing the build (run make check-all, that is, which includes the above). Same as before the
breakage.

In D46006#1077941, @ro wrote:

Can you run tests on SunOS? check-asan, check-ubsan etc.

Of course: that's the first thing I did after fixing the build (run make check-all, that is, which includes the above). Same as before the
breakage.

What are the SunOS results? For NetBSD ASan broke badly and results for other sanitizers (UBSan, TSan, MSan) are deteriorated...

I will need to fix it in future again.

ro added a comment.Apr 25 2018, 7:52 AM

What are the SunOS results? For NetBSD ASan broke badly and results for other sanitizers (UBSan, TSan, MSan) are deteriorated...

Failing Tests (23):

  LLVM-Unit :: Support/./SupportTests/FileSystemTest.permissions
  AddressSanitizer-i386-sunos :: TestCases/init-order-atexit.cc
  AddressSanitizer-i386-sunos :: TestCases/intercept-rethrow-exception.cc
  AddressSanitizer-i386-sunos :: TestCases/log-path_test.cc
  AddressSanitizer-i386-sunos :: TestCases/malloc-no-intercept.c
  AddressSanitizer-i386-sunos-dynamic :: TestCases/Posix/start-deactivated.cc
  AddressSanitizer-i386-sunos-dynamic :: TestCases/default_options.cc
  AddressSanitizer-i386-sunos-dynamic :: TestCases/init-order-atexit.cc
  AddressSanitizer-i386-sunos-dynamic :: TestCases/intercept-rethrow-exception.cc
  AddressSanitizer-i386-sunos-dynamic :: TestCases/log-path_test.cc
  AddressSanitizer-i386-sunos-dynamic :: TestCases/malloc-no-intercept.c
  Builtins-i386-sunos :: divsc3_test.c
  Clang :: Driver/baremetal.cpp
  Clang :: Driver/cl-response-file.c
  Clang :: Driver/fuchsia.c
  Clang :: Driver/fuchsia.cpp
  Clang :: Driver/wasm-toolchain.c
  Clang :: Driver/wasm-toolchain.cpp
  Clang :: Sema/wchar.c
  SanitizerCommon-Unit :: ./Sanitizer-i386-Test/MemoryMappingLayout.DumpListOfModules
  SanitizerCommon-Unit :: ./Sanitizer-i386-Test/SanitizerCommon.PthreadDestructorIterations
  SanitizerCommon-Unit :: ./Sanitizer-x86_64-Test/MemoryMappingLayout.DumpListOfModules
  SanitizerCommon-Unit :: ./Sanitizer-x86_64-Test/SanitizerCommon.PthreadDestructorIterations

Expected Passes    : 28406
Expected Failures  : 73
Unsupported Tests  : 11365
Unexpected Failures: 23

I've already analysed some of them, but got distracted by vacation and the GCC 8 release.

Not bad. It looks like FreeBSD ASan broke too... https://bugs.llvm.org/show_bug.cgi?id=37238

I'm currently distracted by kernel bugfixes for debuggers (and porting LLDB) so this will wait a bit unless someone other will step in earlier.