Problems with test on ppc

Bill,

For some reason the llvm-symbolizer tests fail on ppc:

http://lab.llvm.org:8011/builders/clang-ppc64le-linux/builds/182/steps/ninja%20check%201/logs/stdio

because it can’t be started:

/home/buildbots/ppc64le-clang-test/clang-ppc64le/stage1/./bin/llvm-symbolizer: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21’ not found (required by /home/buildbots/ppc64le-clang-test/clang-ppc64le/stage1/./bin/llvm-symbolizer)

Alexey has remembered that you were going to do some gcc-related work buildbots. Do you know if that could be related here?

I installed a newer version of gcc for use in building llvm. However, I thought it had been running OK for a while with that version. I will investigate what is going wrong.

The problems started occurring with revision 258849 (258848 works fine). It happens across multiple powerpc64 machines for both big and little endian including ones not affected by the compiler updates I did on the buildbot machines.

Failing Tests (119):
     AddressSanitizer-powerpc64le-linux :: TestCases/Linux/initialization-bug-any-order.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Linux/malloc_delete_mismatch.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Linux/ptrace.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Linux/stack-trace-dlclose.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Linux/syscalls.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Posix/closed-fds.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Posix/interception-in-shared-lib-test.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Posix/ioctl.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Posix/new_array_cookie_test.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Posix/shared-lib-test.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Posix/stack-use-after-return.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Posix/start-deactivated.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Posix/wait.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Posix/wait3.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Posix/wait4.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/Posix/waitid.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/deep_stack_uaf.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/deep_tail_call.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/double-free.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/global-overflow.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/heap-overflow.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/heavy_uar_test.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/initialization-bug.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/intra-object-overflow.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/invalid-free.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/large_func_test.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/malloc_context_size.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/memcmp_test.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/memset_test.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/null_deref.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/print_summary.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/sanity_check_pure_c.c
     AddressSanitizer-powerpc64le-linux :: TestCases/stack-buffer-overflow.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/stack-frame-demangle.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/stack-oob-frames.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/strdup_oob_test.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/strip_path_prefix.c
     AddressSanitizer-powerpc64le-linux :: TestCases/strncpy-overflow.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/suppressions-exec-relative-location.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/suppressions-function.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/unaligned_loads_and_stores.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/use-after-delete.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/use-after-free-right.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/use-after-free.cc
     AddressSanitizer-powerpc64le-linux :: TestCases/use-after-poison.cc
     SanitizerCommon-asan :: print-stack-trace.cc
     SanitizerCommon-tsan :: print-stack-trace.cc
     ThreadSanitizer :: atomic_free3.cc
     ThreadSanitizer :: atomic_stack.cc
     ThreadSanitizer :: blacklist2.cc
     ThreadSanitizer :: cond_race.cc
     ThreadSanitizer :: deadlock_detector_stress_test.cc
     ThreadSanitizer :: deep_stack1.cc
     ThreadSanitizer :: fd_location.cc
     ThreadSanitizer :: fd_pipe_race.cc
     ThreadSanitizer :: fd_stdout_race.cc
     ThreadSanitizer :: fd_tid_recycled.cc
     ThreadSanitizer :: free_race.c
     ThreadSanitizer :: free_race2.c
     ThreadSanitizer :: global_race.cc
     ThreadSanitizer :: global_race2.cc
     ThreadSanitizer :: global_race3.cc
     ThreadSanitizer :: inlined_memcpy_race.cc
     ThreadSanitizer :: inlined_memcpy_race2.cc
     ThreadSanitizer :: load_shared_lib.cc
     ThreadSanitizer :: longjmp3.cc
     ThreadSanitizer :: longjmp4.cc
     ThreadSanitizer :: malloc_stack.cc
     ThreadSanitizer :: memcmp_race.cc
     ThreadSanitizer :: memcpy_race.cc
     ThreadSanitizer :: mutex_bad_read_lock.cc
     ThreadSanitizer :: mutex_bad_read_unlock.cc
     ThreadSanitizer :: mutex_bad_unlock.cc
     ThreadSanitizer :: mutex_cycle2.c
     ThreadSanitizer :: mutex_destroy_locked.cc
     ThreadSanitizer :: mutex_double_lock.cc
     ThreadSanitizer :: mutexset1.cc
     ThreadSanitizer :: mutexset2.cc
     ThreadSanitizer :: mutexset3.cc
     ThreadSanitizer :: mutexset4.cc
     ThreadSanitizer :: mutexset5.cc
     ThreadSanitizer :: mutexset6.cc
     ThreadSanitizer :: mutexset8.cc
     ThreadSanitizer :: race_on_heap.cc
     ThreadSanitizer :: race_on_read.cc
     ThreadSanitizer :: race_on_write.cc
     ThreadSanitizer :: race_top_suppression.cc
     ThreadSanitizer :: race_with_finished_thread.cc
     ThreadSanitizer :: signal_errno.cc
     ThreadSanitizer :: signal_malloc.cc
     ThreadSanitizer :: simple_race.cc
     ThreadSanitizer :: simple_stack.c
     ThreadSanitizer :: simple_stack2.cc
     ThreadSanitizer :: sleep_sync.cc
     ThreadSanitizer :: suppressions_global.cc
     ThreadSanitizer :: suppressions_race.cc
     ThreadSanitizer :: suppressions_race2.cc
     ThreadSanitizer :: thread_end_with_ignore.cc
     ThreadSanitizer :: thread_end_with_ignore2.cc
     ThreadSanitizer :: thread_end_with_ignore3.cc
     ThreadSanitizer :: thread_leak3.c
     ThreadSanitizer :: write_in_reader_lock.cc
     ThreadSanitizer-Unit :: rtl/TsanRtlTest/ThreadSanitizer.RaceWithDeadThread
     ThreadSanitizer-Unit :: rtl/TsanRtlTest/ThreadSanitizer.RaceWithOffset2
     ThreadSanitizer-Unit :: rtl/TsanRtlTest/ThreadSanitizer.ReportDeadThread
     ThreadSanitizer-Unit :: rtl/TsanRtlTest/ThreadSanitizer.ReportRace
     ThreadSanitizer-Unit :: rtl/TsanRtlTest/ThreadSanitizer.WriteReadRace
     UBSan-ASan-powerpc64le :: TestCases/Integer/suppressions.cpp
     UBSan-ASan-powerpc64le :: TestCases/Misc/missing_return.cpp
     UBSan-ASan-powerpc64le :: TestCases/TypeCheck/misaligned.cpp
     UBSan-ASan-powerpc64le :: TestCases/TypeCheck/vptr.cpp
     UBSan-Standalone-powerpc64le :: TestCases/Integer/suppressions.cpp
     UBSan-Standalone-powerpc64le :: TestCases/Misc/missing_return.cpp
     UBSan-Standalone-powerpc64le :: TestCases/TypeCheck/misaligned.cpp
     UBSan-Standalone-powerpc64le :: TestCases/TypeCheck/vptr.cpp
     UBSan-TSan-powerpc64le :: TestCases/Integer/suppressions.cpp
     UBSan-TSan-powerpc64le :: TestCases/Misc/missing_return.cpp
     UBSan-TSan-powerpc64le :: TestCases/TypeCheck/misaligned.cpp
     UBSan-TSan-powerpc64le :: TestCases/TypeCheck/vptr.cpp

   Expected Passes : 25138
   Expected Failures : 160
   Unsupported Tests : 547
   Unexpected Failures: 119

The issue is fixed:

http://lab.llvm.org:8011/builders/sanitizer-ppc64le-linux/builds/92

Thanks a lot for help.