Hans Wennborg via llvm-dev
2017-Jul-31 17:26 UTC
[llvm-dev] [cfe-dev] [5.0.0 Release] Release Candidate 1 tagged
On Sat, Jul 29, 2017 at 4:59 AM, Dimitry Andric <dimitry at andric.com> wrote:> On 27 Jul 2017, at 00:41, Hans Wennborg via cfe-dev <cfe-dev at lists.llvm.org> wrote: >> >> 5.0.0-rc1 has just been tagged. >> >> Please build, test and upload binaries to the sftp. Let me know if >> there are any issues. > > Built and tested rc1. Test failures on amd64-freebsd10: > > FAIL: LLVM-Unit :: ExecutionEngine/Orc/./OrcJITTests/DummyRPC.TestClearHandlers (1346 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.DoubleFreeTest (2480 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.ReallocFreedPointerTest (2505 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.UseThenFreeThenUseTest (2542 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.WrongFreeTest (2546 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.DoubleFreeTest (2589 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.ReallocFreedPointerTest (2615 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.UseThenFreeThenUseTest (2651 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.WrongFreeTest (2655 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-inline-Test/AddressSanitizer.DoubleFreeTest (2698 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-inline-Test/AddressSanitizer.ReallocFreedPointerTest (2723 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-inline-Test/AddressSanitizer.UseThenFreeThenUseTest (2762 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-inline-Test/AddressSanitizer.WrongFreeTest (2765 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-with-calls-Test/AddressSanitizer.DoubleFreeTest (2808 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-with-calls-Test/AddressSanitizer.ReallocFreedPointerTest (2833 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-with-calls-Test/AddressSanitizer.UseThenFreeThenUseTest (2870 of 38616) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-with-calls-Test/AddressSanitizer.WrongFreeTest (2875 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/asan-sigbus.cpp (2998 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/asan-symbolize-sanity-test.cc (3000 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/closed-fds.cc (3001 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/deep_thread_stack.cc (3005 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/fread_fwrite.cc (3007 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/interception-in-shared-lib-test.cc (3019 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/shared-lib-test.cc (3029 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/stack-use-after-return.cc (3030 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/strndup_oob_test.cc (3035 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/wait.cc (3037 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/wait3.cc (3038 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/wait4.cc (3040 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/waitid.cc (3139 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_big_alignment.cc (3140 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_detect_custom_size_.cc (3142 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_overflow_partial.cc (3144 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_overflow_right.cc (3146 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_underflow_left.cc (3148 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/debug_double_free.cc (3163 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/debug_stacks.cc (3167 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/debug_report.cc (3168 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/deep_stack_uaf.cc (3170 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/describe_address.cc (3172 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/double-free.cc (3173 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/frexp_interceptor.cc (3178 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/global-overflow.cc (3180 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/heap-overflow.cc (3184 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/heavy_uar_test.cc (3185 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/initialization-bug.cc (3188 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/invalid-free.cc (3195 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/invalid-pointer-pairs.cc (3197 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/large_func_test.cc (3198 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/null_deref.cc (3209 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/partial_right.cc (3211 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/print_summary.cc (3214 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/sanity_check_pure_c.c (3224 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/stack-buffer-overflow.cc (3230 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/strdup_oob_test.cc (3244 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/strncpy-overflow.cc (3247 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/time_interceptor.cc (3267 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-free-right.cc (3271 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-delete.cc (3272 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-free.cc (3274 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-scope-inlined.cc (3279 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/vla_chrome_testcase.cc (3288 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/vla_condition_overflow.cc (3290 of 38616) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/vla_loop_overfow.cc (3291 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/asan-sigbus.cpp (3395 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/asan-symbolize-sanity-test.cc (3399 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/closed-fds.cc (3400 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/deep_thread_stack.cc (3404 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/interception-in-shared-lib-test.cc (3419 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/new_array_cookie_uaf_test.cc (3424 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/shared-lib-test.cc (3429 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/stack-use-after-return.cc (3430 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/strndup_oob_test.cc (3435 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/wait.cc (3437 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/wait3.cc (3438 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/wait4.cc (3440 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/waitid.cc (3539 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/alloca_detect_custom_size_.cc (3541 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/alloca_big_alignment.cc (3542 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/alloca_overflow_partial.cc (3545 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/alloca_overflow_right.cc (3546 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/alloca_underflow_left.cc (3548 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/debug_double_free.cc (3562 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/contiguous_container.cc (3565 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/debug_stacks.cc (3568 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/debug_report.cc (3569 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/deep_stack_uaf.cc (3571 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/describe_address.cc (3573 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/double-free.cc (3574 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/frexp_interceptor.cc (3577 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/global-overflow.cc (3581 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/heap-overflow.cc (3585 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/heavy_uar_test.cc (3587 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/initialization-bug.cc (3590 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/invalid-free.cc (3598 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/invalid-pointer-pairs.cc (3599 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/large_func_test.cc (3600 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/longjmp.cc (3601 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/null_deref.cc (3610 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/partial_right.cc (3613 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/print_summary.cc (3615 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/sanity_check_pure_c.c (3624 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/scariness_score_test.cc (3626 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/stack-buffer-overflow.cc (3631 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/strdup_oob_test.cc (3646 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/strncpy-overflow.cc (3647 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/throw_catch.cc (3667 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/uar_and_exceptions.cc (3669 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/time_interceptor.cc (3670 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/use-after-free-right.cc (3672 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/use-after-delete.cc (3673 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/use-after-free.cc (3674 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/use-after-scope-inlined.cc (3681 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/vla_chrome_testcase.cc (3690 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/vla_condition_overflow.cc (3691 of 38616) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/vla_loop_overfow.cc (3697 of 38616) > FAIL: LLVM :: Bindings/Go/go.test (17478 of 38616) > FAIL llvm.org/llvm/bindings/go/llvm [build failed] > FAIL: ThreadSanitizer-x86_64 :: strerror_r.cc (36584 of 38616) > FAIL: ThreadSanitizer-x86_64 :: signal_reset.cc (38615 of 38616) > FAIL: ThreadSanitizer-x86_64 :: signal_sync2.cc (38616 of 38616) > FAIL: LLVM-Unit :: ExecutionEngine/Orc/./OrcJITTests/DummyRPC.TestClearHandlers (1351 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.DoubleFreeTest (2514 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.ReallocFreedPointerTest (2540 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.UseThenFreeThenUseTest (2574 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.WrongFreeTest (2580 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.DoubleFreeTest (2623 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.ReallocFreedPointerTest (2649 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.UseThenFreeThenUseTest (2683 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.WrongFreeTest (2690 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-inline-Test/AddressSanitizer.DoubleFreeTest (2732 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-inline-Test/AddressSanitizer.ReallocFreedPointerTest (2757 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-inline-Test/AddressSanitizer.UseThenFreeThenUseTest (2792 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-inline-Test/AddressSanitizer.WrongFreeTest (2798 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-with-calls-Test/AddressSanitizer.DoubleFreeTest (2842 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-with-calls-Test/AddressSanitizer.ReallocFreedPointerTest (2867 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-with-calls-Test/AddressSanitizer.UseThenFreeThenUseTest (2905 of 38650) > FAIL: AddressSanitizer-Unit :: ./Asan-x86_64-with-calls-Test/AddressSanitizer.WrongFreeTest (2909 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/asan-sigbus.cpp (3030 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/asan-symbolize-sanity-test.cc (3034 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/closed-fds.cc (3036 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/deep_thread_stack.cc (3039 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/fread_fwrite.cc (3042 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/interception-in-shared-lib-test.cc (3053 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/shared-lib-test.cc (3063 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/stack-use-after-return.cc (3064 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/strndup_oob_test.cc (3069 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/wait.cc (3071 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/wait3.cc (3072 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/wait4.cc (3074 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/waitid.cc (3172 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_big_alignment.cc (3173 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_detect_custom_size_.cc (3177 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_overflow_partial.cc (3179 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_overflow_right.cc (3180 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_underflow_left.cc (3183 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/debug_double_free.cc (3196 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/debug_report.cc (3201 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/debug_stacks.cc (3202 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/deep_stack_uaf.cc (3204 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/describe_address.cc (3206 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/double-free.cc (3207 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/frexp_interceptor.cc (3211 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/global-overflow.cc (3214 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/heap-overflow.cc (3218 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/heavy_uar_test.cc (3219 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/initialization-bug.cc (3222 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/invalid-free.cc (3230 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/large_func_test.cc (3231 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/invalid-pointer-pairs.cc (3232 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/null_deref.cc (3243 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/partial_right.cc (3245 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/print_summary.cc (3248 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/sanity_check_pure_c.c (3258 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/stack-buffer-overflow.cc (3264 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/strdup_oob_test.cc (3277 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/strncpy-overflow.cc (3281 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/time_interceptor.cc (3301 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-delete.cc (3305 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-free-right.cc (3306 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-free.cc (3307 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-scope-inlined.cc (3314 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/vla_chrome_testcase.cc (3323 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/vla_condition_overflow.cc (3324 of 38650) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/vla_loop_overfow.cc (3325 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/asan-sigbus.cpp (3428 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/closed-fds.cc (3433 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/asan-symbolize-sanity-test.cc (3434 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/deep_thread_stack.cc (3439 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/interception-in-shared-lib-test.cc (3453 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/new_array_cookie_uaf_test.cc (3458 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/shared-lib-test.cc (3463 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/stack-use-after-return.cc (3465 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/strndup_oob_test.cc (3468 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/wait.cc (3472 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/wait3.cc (3473 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/wait4.cc (3474 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/Posix/waitid.cc (3572 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/alloca_big_alignment.cc (3575 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/alloca_detect_custom_size_.cc (3576 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/alloca_overflow_partial.cc (3578 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/alloca_overflow_right.cc (3581 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/alloca_underflow_left.cc (3583 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/debug_double_free.cc (3596 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/contiguous_container.cc (3599 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/debug_report.cc (3602 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/debug_stacks.cc (3604 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/deep_stack_uaf.cc (3605 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/describe_address.cc (3607 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/double-free.cc (3608 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/frexp_interceptor.cc (3610 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/global-overflow.cc (3615 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/heap-overflow.cc (3619 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/heavy_uar_test.cc (3622 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/initialization-bug.cc (3624 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/invalid-free.cc (3632 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/large_func_test.cc (3633 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/invalid-pointer-pairs.cc (3634 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/longjmp.cc (3635 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/null_deref.cc (3644 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/partial_right.cc (3647 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/print_summary.cc (3648 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/sanity_check_pure_c.c (3658 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/scariness_score_test.cc (3660 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/stack-buffer-overflow.cc (3666 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/strdup_oob_test.cc (3680 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/strncpy-overflow.cc (3681 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/throw_catch.cc (3701 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/time_interceptor.cc (3703 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/uar_and_exceptions.cc (3704 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/use-after-delete.cc (3706 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/use-after-free-right.cc (3707 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/use-after-free.cc (3709 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/use-after-scope-inlined.cc (3714 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/vla_chrome_testcase.cc (3724 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/vla_condition_overflow.cc (3725 of 38650) > FAIL: AddressSanitizer-x86_64-freebsd :: TestCases/vla_loop_overfow.cc (3729 of 38650) > FAIL: LLVM :: Bindings/Go/go.test (17579 of 38650) > FAIL llvm.org/llvm/bindings/go/llvm [build failed] > FAIL: ThreadSanitizer-x86_64 :: strerror_r.cc (36618 of 38650) > FAIL: ThreadSanitizer-x86_64 :: signal_reset.cc (38649 of 38650) > FAIL: ThreadSanitizer-x86_64 :: race_on_mutex2.c (38650 of 38650) > > Test failures on i386-freebsd10: > > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.DoubleFreeTest (2480 of 36865) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.ReallocFreedPointerTest (2505 of 36865) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.UseThenFreeThenUseTest (2542 of 36865) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.WrongFreeTest (2546 of 36865) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.DoubleFreeTest (2589 of 36865) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.ReallocFreedPointerTest (2614 of 36865) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.UseThenFreeThenUseTest (2650 of 36865) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.WrongFreeTest (2655 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/asan-sigbus.cpp (2776 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/asan-symbolize-sanity-test.cc (2780 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/closed-fds.cc (2781 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/deep_thread_stack.cc (2786 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/fread_fwrite.cc (2788 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/interception-in-shared-lib-test.cc (2799 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/shared-lib-test.cc (2809 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/stack-use-after-return.cc (2810 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/strndup_oob_test.cc (2815 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/wait.cc (2817 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/wait3.cc (2818 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/wait4.cc (2820 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/waitid.cc (2918 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_big_alignment.cc (2919 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_detect_custom_size_.cc (2922 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_overflow_partial.cc (2925 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_underflow_left.cc (2927 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_overflow_right.cc (2928 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/debug_double_free.cc (2945 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/debug_stacks.cc (2947 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/debug_report.cc (2948 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/deep_stack_uaf.cc (2950 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/describe_address.cc (2952 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/double-free.cc (2953 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/frexp_interceptor.cc (2956 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/global-overflow.cc (2961 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/heap-overflow.cc (2964 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/heavy_uar_test.cc (2965 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/initialization-bug.cc (2968 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/invalid-free.cc (2975 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/large_func_test.cc (2977 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/invalid-pointer-pairs.cc (2978 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/null_deref.cc (2989 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/partial_right.cc (2991 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/print_summary.cc (2994 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/sanity_check_pure_c.c (3004 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/stack-buffer-overflow.cc (3010 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/strdup_oob_test.cc (3023 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/strncpy-overflow.cc (3027 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/time_interceptor.cc (3047 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-delete.cc (3051 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-free-right.cc (3052 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-free.cc (3053 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-scope-inlined.cc (3059 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/vla_chrome_testcase.cc (3068 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/vla_condition_overflow.cc (3070 of 36865) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/vla_loop_overfow.cc (3071 of 36865) > FAIL: LLVM :: Bindings/Go/go.test (16654 of 36865) > FAIL llvm.org/llvm/bindings/go/llvm [build failed] > FAIL: lldb :: Expr/TestCallUserDefinedFunction.test (36526 of 36865) > FAIL: lldb :: Expr/TestCallUserAnonTypedef.test (36527 of 36865) > FAIL: lldb :: Expr/TestCallStopAndContinue.test (36528 of 36865) > FAIL: lldb-Unit :: Utility/./UtilityTests/TaskPoolTest.RunTasks (36865 of 36865) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.DoubleFreeTest (2514 of 36899) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.ReallocFreedPointerTest (2539 of 36899) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.UseThenFreeThenUseTest (2577 of 36899) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.WrongFreeTest (2580 of 36899) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.DoubleFreeTest (2623 of 36899) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.ReallocFreedPointerTest (2648 of 36899) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.UseThenFreeThenUseTest (2684 of 36899) > FAIL: AddressSanitizer-Unit :: ./Asan-i386-with-calls-Test/AddressSanitizer.WrongFreeTest (2689 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/asan-sigbus.cpp (2811 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/asan-symbolize-sanity-test.cc (2814 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/closed-fds.cc (2816 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/deep_thread_stack.cc (2819 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/fread_fwrite.cc (2821 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/interception-in-shared-lib-test.cc (2834 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/shared-lib-test.cc (2843 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/stack-use-after-return.cc (2844 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/strndup_oob_test.cc (2848 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/wait.cc (2851 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/wait3.cc (2852 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/wait4.cc (2853 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/waitid.cc (2952 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_big_alignment.cc (2953 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_detect_custom_size_.cc (2956 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_overflow_partial.cc (2959 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_overflow_right.cc (2960 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/alloca_underflow_left.cc (2963 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/debug_double_free.cc (2977 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/debug_stacks.cc (2981 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/debug_report.cc (2982 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/deep_stack_uaf.cc (2984 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/describe_address.cc (2986 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/double-free.cc (2987 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/frexp_interceptor.cc (2991 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/global-overflow.cc (2994 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/heap-overflow.cc (2997 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/heavy_uar_test.cc (2999 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/initialization-bug.cc (3002 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/invalid-free.cc (3009 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/invalid-pointer-pairs.cc (3011 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/large_func_test.cc (3012 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/null_deref.cc (3023 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/partial_right.cc (3025 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/print_summary.cc (3028 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/sanity_check_pure_c.c (3038 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/stack-buffer-overflow.cc (3044 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/strdup_oob_test.cc (3057 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/strncpy-overflow.cc (3061 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/time_interceptor.cc (3081 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-delete.cc (3085 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-free-right.cc (3087 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-free.cc (3088 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/use-after-scope-inlined.cc (3093 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/vla_chrome_testcase.cc (3103 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/vla_condition_overflow.cc (3104 of 36899) > FAIL: AddressSanitizer-i386-freebsd :: TestCases/vla_loop_overfow.cc (3105 of 36899) > FAIL: LLVM :: Bindings/Go/go.test (16672 of 36899) > FAIL llvm.org/llvm/bindings/go/llvm [build failed] > FAIL: lldb :: Expr/TestCallUserAnonTypedef.test (36560 of 36899) > FAIL: lldb :: Expr/TestCallUserDefinedFunction.test (36561 of 36899) > FAIL: lldb :: Expr/TestCallStopAndContinue.test (36562 of 36899)Do we know what's up with all of these ASan failures? Is there a bug for it?
Dimitry Andric via llvm-dev
2017-Jul-31 18:13 UTC
[llvm-dev] [cfe-dev] [5.0.0 Release] Release Candidate 1 tagged
On 31 Jul 2017, at 19:26, Hans Wennborg <hans at chromium.org> wrote:> > On Sat, Jul 29, 2017 at 4:59 AM, Dimitry Andric <dimitry at andric.com> wrote: >> On 27 Jul 2017, at 00:41, Hans Wennborg via cfe-dev <cfe-dev at lists.llvm.org> wrote: >>> >>> 5.0.0-rc1 has just been tagged. >>> >>> Please build, test and upload binaries to the sftp. Let me know if >>> there are any issues. >> >> Built and tested rc1. Test failures on amd64-freebsd10: >> >> FAIL: LLVM-Unit :: ExecutionEngine/Orc/./OrcJITTests/DummyRPC.TestClearHandlers (1346 of 38616) >> FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.DoubleFreeTest (2480 of 38616) >> FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.ReallocFreedPointerTest (2505 of 38616) >> FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.UseThenFreeThenUseTest (2542 of 38616) >> FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.WrongFreeTest (2546 of 38616)...> Do we know what's up with all of these ASan failures? Is there a bug for it?I spent a limited amount of debugging on it, but the common problem is that on i386 (aka 32-bit x86) all programs compiled with -fsanitize=address now die with: ==11122==AddressSanitizer CHECK failed: /usr/src/contrib/compiler-rt/lib/asan/asan_poisoning.cc:36 "((AddrIsAlignedByGranularity(addr))) != (0)" (0x0, 0x0) #0 0x806f163 in __asan::AsanCheckFailed(char const*, int, char const, unsigned long long, unsigned long long) (/share/dim/src/misc/hw+0x806f163) #1 0x805dce3 in __sanitizer::CheckFailed(char const*, int, char const, unsigned long long, unsigned long long) (/share/dim/src/misc/hw+0x805dce3) #2 0x80dfc65 in __asan::PoisonShadow(unsigned long, unsigned long, unsigned char) (/share/dim/src/misc/hw+0x80dfc65) #3 0x80696dd in __asan::AsanThread::Init(void) (/share/dim/src/misc/hw+0x80696dd) #4 0x806997f in __asan::AsanThread::ThreadStart(unsigned long, __sanitizer::atomic_uintptr_t*) (/share/dim/src/misc/hw+0x806997f) #5 0x806ecf3 in __asan::AsanInitInternal(void) (/share/dim/src/misc/hw+0x806ecf3) #6 0x8092785 in clock_gettime (/share/dim/src/misc/hw+0x8092785) When I put some printfs in there, it showed that the expected address granularity is 8, but the address to be checked was aligned on 4 bytes: DBG: addr=0x284429f4, granularity=8 Tracing back the definitions, I found: #define SHADOW_GRANULARITY (1ULL << SHADOW_SCALE) then: #define SHADOW_SCALE kDefaultShadowScale then: static const u64 kDefaultShadowScale = 3; So this seems to be hardcoded. There is a similar declaration in llvm's lib/Transforms/Instrumentation/AddressSanitizer.cpp. I know that it *did* work at some point in the past, but it got broken in recent history. I will have to do some archeology to figure out what happened. Does anybody know whether the shadow granularity was different at some point? -Dimitry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 223 bytes Desc: Message signed with OpenPGP URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170731/723dbb20/attachment.sig>
Hans Wennborg via llvm-dev
2017-Jul-31 23:45 UTC
[llvm-dev] [cfe-dev] [5.0.0 Release] Release Candidate 1 tagged
On Mon, Jul 31, 2017 at 11:13 AM, Dimitry Andric <dimitry at andric.com> wrote:> On 31 Jul 2017, at 19:26, Hans Wennborg <hans at chromium.org> wrote: >> >> On Sat, Jul 29, 2017 at 4:59 AM, Dimitry Andric <dimitry at andric.com> wrote: >>> On 27 Jul 2017, at 00:41, Hans Wennborg via cfe-dev <cfe-dev at lists.llvm.org> wrote: >>>> >>>> 5.0.0-rc1 has just been tagged. >>>> >>>> Please build, test and upload binaries to the sftp. Let me know if >>>> there are any issues. >>> >>> Built and tested rc1. Test failures on amd64-freebsd10: >>> >>> FAIL: LLVM-Unit :: ExecutionEngine/Orc/./OrcJITTests/DummyRPC.TestClearHandlers (1346 of 38616) >>> FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.DoubleFreeTest (2480 of 38616) >>> FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.ReallocFreedPointerTest (2505 of 38616) >>> FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.UseThenFreeThenUseTest (2542 of 38616) >>> FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.WrongFreeTest (2546 of 38616) > ... >> Do we know what's up with all of these ASan failures? Is there a bug for it? > > I spent a limited amount of debugging on it, but the common problem is that on i386 (aka 32-bit x86) all programs compiled with -fsanitize=address now die with: > > ==11122==AddressSanitizer CHECK failed: /usr/src/contrib/compiler-rt/lib/asan/asan_poisoning.cc:36 "((AddrIsAlignedByGranularity(addr))) != (0)" (0x0, 0x0) > #0 0x806f163 in __asan::AsanCheckFailed(char const*, int, char const, unsigned long long, unsigned long long) (/share/dim/src/misc/hw+0x806f163) > #1 0x805dce3 in __sanitizer::CheckFailed(char const*, int, char const, unsigned long long, unsigned long long) (/share/dim/src/misc/hw+0x805dce3) > #2 0x80dfc65 in __asan::PoisonShadow(unsigned long, unsigned long, unsigned char) (/share/dim/src/misc/hw+0x80dfc65) > #3 0x80696dd in __asan::AsanThread::Init(void) (/share/dim/src/misc/hw+0x80696dd) > #4 0x806997f in __asan::AsanThread::ThreadStart(unsigned long, __sanitizer::atomic_uintptr_t*) (/share/dim/src/misc/hw+0x806997f) > #5 0x806ecf3 in __asan::AsanInitInternal(void) (/share/dim/src/misc/hw+0x806ecf3) > #6 0x8092785 in clock_gettime (/share/dim/src/misc/hw+0x8092785) > > When I put some printfs in there, it showed that the expected address granularity is 8, but the address to be checked was aligned on 4 bytes: > > DBG: addr=0x284429f4, granularity=8 > > Tracing back the definitions, I found: > > #define SHADOW_GRANULARITY (1ULL << SHADOW_SCALE) > > then: > > #define SHADOW_SCALE kDefaultShadowScale > > > then: > > static const u64 kDefaultShadowScale = 3; > > So this seems to be hardcoded. There is a similar declaration in llvm's lib/Transforms/Instrumentation/AddressSanitizer.cpp. > > I know that it *did* work at some point in the past, but it got broken in recent history. I will have to do some archeology to figure out what happened. > > Does anybody know whether the shadow granularity was different at some point?Kostya, does this ring any bells for you?
Dimitry Andric via llvm-dev
2017-Aug-04 13:08 UTC
[llvm-dev] [Release-testers] [cfe-dev] [5.0.0 Release] Release Candidate 1 tagged
On 31 Jul 2017, at 20:13, Dimitry Andric via Release-testers <release-testers at lists.llvm.org> wrote:> > On 31 Jul 2017, at 19:26, Hans Wennborg <hans at chromium.org> wrote: >> >> On Sat, Jul 29, 2017 at 4:59 AM, Dimitry Andric <dimitry at andric.com> wrote: >>> On 27 Jul 2017, at 00:41, Hans Wennborg via cfe-dev <cfe-dev at lists.llvm.org> wrote: >>>> >>>> 5.0.0-rc1 has just been tagged. >>>> >>>> Please build, test and upload binaries to the sftp. Let me know if >>>> there are any issues. >>> >>> Built and tested rc1. Test failures on amd64-freebsd10: >>> >>> FAIL: LLVM-Unit :: ExecutionEngine/Orc/./OrcJITTests/DummyRPC.TestClearHandlers (1346 of 38616) >>> FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.DoubleFreeTest (2480 of 38616) >>> FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.ReallocFreedPointerTest (2505 of 38616) >>> FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.UseThenFreeThenUseTest (2542 of 38616) >>> FAIL: AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.WrongFreeTest (2546 of 38616) > ... >> Do we know what's up with all of these ASan failures? Is there a bug for it? > > I spent a limited amount of debugging on it, but the common problem is that on i386 (aka 32-bit x86) all programs compiled with -fsanitize=address now die with: > > ==11122==AddressSanitizer CHECK failed: /usr/src/contrib/compiler-rt/lib/asan/asan_poisoning.cc:36 "((AddrIsAlignedByGranularity(addr))) != (0)" (0x0, 0x0)...> I know that it *did* work at some point in the past, but it got broken in recent history. I will have to do some archeology to figure out what happened. > > Does anybody know whether the shadow granularity was different at some point?Ok, some further research showed that I have been conflating two different issues here. The first issue is that FreeBSD 12-CURRENT recently received an update to jemalloc, our default memory allocator, in https://reviews.freebsd.org/rS319971. For some reason, this causes an alignment problem now when ASan is initializing. E.g. exactly the same ASan test case works as expected on FreeBSD 10 and 11, but on 12 it results in: ==22338==AddressSanitizer CHECK failed: /home/dim/llvm-4.0.1/final/llvm.src/projects/compiler-rt/lib/asan/asan_poisoning.cc:36 "((AddrIsAlignedByGranularity(addr))) != (0)" (0x0, 0x0) #0 0x80b5960 in __asan::AsanCheckFailed(char const*, int, char const, unsigned long long, unsigned long long) /home/dim/llvm-4.0.1/final/llvm.src/projects/compiler-rt/lib/asan/asan_rtl.cc:69:3 #1 0x80c754a in __sanitizer::CheckFailed(char const*, int, char const, unsigned long long, unsigned long long) /home/dim/llvm-4.0.1/final/llvm.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_termination.cc:79:5 #2 0x80af5e8 in __asan::PoisonShadow(unsigned long, unsigned long, unsigned char) /home/dim/llvm-4.0.1/final/llvm.src/projects/compiler-rt/lib/asan/asan_poisoning.cc:36:3 #3 0x80b74e7 in ClearShadowForThreadStackAndTLS /home/dim/llvm-4.0.1/final/llvm.src/projects/compiler-rt/lib/asan/asan_thread.cc:285:5 #4 0x80b74e7 in __asan::AsanThread::Init(void) /home/dim/llvm-4.0.1/final/llvm.src/projects/compiler-rt/lib/asan/asan_thread.cc:232 #5 0x80b768d in __asan::AsanThread::ThreadStart(unsigned long, __sanitizer::atomic_uintptr_t*) /home/dim/llvm-4.0.1/final/llvm.src/projects/compiler-rt/lib/asan/asan_thread.cc:241:3 #6 0x80b55dc in __asan::AsanInitInternal(void) /home/dim/llvm-4.0.1/final/llvm.src/projects/compiler-rt/lib/asan/asan_rtl.cc:591:16 #7 0x807a648 in clock_gettime /home/dim/llvm-4.0.1/final/llvm.src/projects/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:1882:3 While this is pretty unfortunate, it is not really a problem with the 5.0.0 release, since it also happens with ASan-instrumented executables compiled by earlier versions of clang. The other issue, which I encountered while building 5.0.0 rc1 on FreeBSD 10, is in compiler-rt itself. It's apparently being caused by https://reviews.llvm.org/rL305058 ("Fix ASan internal failure in AllocateFromLocalPool"), meant to address PR 33206. Before this commit, on FreeBSD 10, I got just two ASan-related failures (both of which are pretty old, I think): Failing Tests (5): AddressSanitizer-i386-freebsd :: TestCases/Posix/asan-sigbus.cpp AddressSanitizer-i386-freebsd :: TestCases/Posix/fread_fwrite.cc LLVM :: Bindings/Go/go.test LLVM :: DebugInfo/PDB/pdbdump-debug-subsections.test LLVM :: tools/llvm-objdump/X86/macho-literals.test After r305058, that ballooned to 55 ASan-related failures: Failing Tests (58): AddressSanitizer-Unit :: Asan-i386-inline-Test/AddressSanitizer.DoubleFreeTest AddressSanitizer-Unit :: Asan-i386-inline-Test/AddressSanitizer.ReallocFreedPointerTest AddressSanitizer-Unit :: Asan-i386-inline-Test/AddressSanitizer.UseThenFreeThenUseTest AddressSanitizer-Unit :: Asan-i386-inline-Test/AddressSanitizer.WrongFreeTest AddressSanitizer-Unit :: Asan-i386-with-calls-Test/AddressSanitizer.DoubleFreeTest AddressSanitizer-Unit :: Asan-i386-with-calls-Test/AddressSanitizer.ReallocFreedPointerTest AddressSanitizer-Unit :: Asan-i386-with-calls-Test/AddressSanitizer.UseThenFreeThenUseTest AddressSanitizer-Unit :: Asan-i386-with-calls-Test/AddressSanitizer.WrongFreeTest AddressSanitizer-i386-freebsd :: TestCases/Posix/asan-sigbus.cpp AddressSanitizer-i386-freebsd :: TestCases/Posix/asan-symbolize-sanity-test.cc AddressSanitizer-i386-freebsd :: TestCases/Posix/closed-fds.cc AddressSanitizer-i386-freebsd :: TestCases/Posix/deep_thread_stack.cc AddressSanitizer-i386-freebsd :: TestCases/Posix/fread_fwrite.cc AddressSanitizer-i386-freebsd :: TestCases/Posix/interception-in-shared-lib-test.cc AddressSanitizer-i386-freebsd :: TestCases/Posix/shared-lib-test.cc AddressSanitizer-i386-freebsd :: TestCases/Posix/stack-use-after-return.cc AddressSanitizer-i386-freebsd :: TestCases/Posix/strndup_oob_test.cc AddressSanitizer-i386-freebsd :: TestCases/Posix/wait.cc AddressSanitizer-i386-freebsd :: TestCases/Posix/wait3.cc AddressSanitizer-i386-freebsd :: TestCases/Posix/wait4.cc AddressSanitizer-i386-freebsd :: TestCases/Posix/waitid.cc AddressSanitizer-i386-freebsd :: TestCases/alloca_big_alignment.cc AddressSanitizer-i386-freebsd :: TestCases/alloca_detect_custom_size_.cc AddressSanitizer-i386-freebsd :: TestCases/alloca_overflow_partial.cc AddressSanitizer-i386-freebsd :: TestCases/alloca_overflow_right.cc AddressSanitizer-i386-freebsd :: TestCases/alloca_underflow_left.cc AddressSanitizer-i386-freebsd :: TestCases/debug_double_free.cc AddressSanitizer-i386-freebsd :: TestCases/debug_report.cc AddressSanitizer-i386-freebsd :: TestCases/debug_stacks.cc AddressSanitizer-i386-freebsd :: TestCases/deep_stack_uaf.cc AddressSanitizer-i386-freebsd :: TestCases/describe_address.cc AddressSanitizer-i386-freebsd :: TestCases/double-free.cc AddressSanitizer-i386-freebsd :: TestCases/frexp_interceptor.cc AddressSanitizer-i386-freebsd :: TestCases/global-overflow.cc AddressSanitizer-i386-freebsd :: TestCases/heap-overflow.cc AddressSanitizer-i386-freebsd :: TestCases/heavy_uar_test.cc AddressSanitizer-i386-freebsd :: TestCases/initialization-bug.cc AddressSanitizer-i386-freebsd :: TestCases/invalid-free.cc AddressSanitizer-i386-freebsd :: TestCases/invalid-pointer-pairs.cc AddressSanitizer-i386-freebsd :: TestCases/large_func_test.cc AddressSanitizer-i386-freebsd :: TestCases/null_deref.cc AddressSanitizer-i386-freebsd :: TestCases/partial_right.cc AddressSanitizer-i386-freebsd :: TestCases/print_summary.cc AddressSanitizer-i386-freebsd :: TestCases/sanity_check_pure_c.c AddressSanitizer-i386-freebsd :: TestCases/stack-buffer-overflow.cc AddressSanitizer-i386-freebsd :: TestCases/strdup_oob_test.cc AddressSanitizer-i386-freebsd :: TestCases/strncpy-overflow.cc AddressSanitizer-i386-freebsd :: TestCases/time_interceptor.cc AddressSanitizer-i386-freebsd :: TestCases/use-after-delete.cc AddressSanitizer-i386-freebsd :: TestCases/use-after-free-right.cc AddressSanitizer-i386-freebsd :: TestCases/use-after-free.cc AddressSanitizer-i386-freebsd :: TestCases/use-after-scope-inlined.cc AddressSanitizer-i386-freebsd :: TestCases/vla_chrome_testcase.cc AddressSanitizer-i386-freebsd :: TestCases/vla_condition_overflow.cc AddressSanitizer-i386-freebsd :: TestCases/vla_loop_overfow.cc LLVM :: Bindings/Go/go.test LLVM :: DebugInfo/PDB/pdbdump-debug-subsections.test LLVM :: tools/llvm-objdump/X86/macho-literals.test The AddressSanitizer-Unit tests all fail because of a new CHECK failure: [ RUN ] AddressSanitizer.DoubleFreeTest /share/dim/src/llvm/trunk/projects/compiler-rt/lib/asan/tests/asan_test.cc:463: Failure Death test: DoubleFree() Result: died but not with expected error. Expected: ERROR: AddressSanitizer: attempting double-free.*is located 0 bytes inside of 400-byte region.*freed by thread T0 here.*previously allocated by thread T0 here Actual msg: [ DEATH ] DoubleFree: x=0x2b003e40 [ DEATH ] ================================================================ [ DEATH ] ==84873==AddressSanitizer CHECK failed: /share/dim/src/llvm/trunk/projects/compiler-rt/lib/asan/asan_errors.h:99 "((second_free_stack->size)) > ((0))" (0x0, 0x0) [ DEATH ] #0 0x80e5e56 (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x80e5e56) [ DEATH ] #1 0x80fb0e4 (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x80fb0e4) [ DEATH ] #2 0x80e11c0 (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x80e11c0) [ DEATH ] #3 0x8073a66 (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x8073a66) [ DEATH ] #4 0x80714bd (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x80714bd) [ DEATH ] #5 0x80dc41e (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x80dc41e) [ DEATH ] #6 0x81f69f6 (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x81f69f6) [ DEATH ] #7 0x81867fd (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x81867fd) [ DEATH ] #8 0x81420e1 (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x81420e1) [ DEATH ] #9 0x814470a (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x814470a) [ DEATH ] #10 0x8146252 (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x8146252) [ DEATH ] #11 0x815f02b (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x815f02b) [ DEATH ] #12 0x8187e97 (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x8187e97) [ DEATH ] #13 0x815e185 (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x815e185) [ DEATH ] #14 0x830ed1f (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x830ed1f) [ DEATH ] #15 0x8070a19 (/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/lib/asan/tests/default/Asan-i386-inline-Test+0x8070a19) [ DEATH ] [ DEATH ] [ FAILED ] AddressSanitizer.DoubleFreeTest (15 ms) [----------] 1 test from AddressSanitizer (15 ms total) The rest of the tests are now failing because the printed thread ID is different than before, e.g. it expects "T0" while the actual ID is "T16777215": ******************** FAIL: AddressSanitizer-i386-freebsd :: TestCases/Posix/closed-fds.cc (323 of 616) ******************** TEST 'AddressSanitizer-i386-freebsd :: TestCases/Posix/closed-fds.cc' FAILED ******************** Script: -- rm -f /home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/test/asan/I386FreeBSDConfig/TestCases/Posix/Output/closed-fds.cc.tmp.log.* /home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m32 -O0 /share/dim/src/llvm/trunk/projects/compiler-rt/test/asan/TestCases/Posix/closed-fds.cc -o /home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/test/asan/I386FreeBSDConfig/TestCases/Posix/Output/closed-fds.cc.tmp env ASAN_OPTIONS=log_path='"/home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/test/asan/I386FreeBSDConfig/TestCases/Posix/Output/closed-fds.cc.tmp.log"':verbosity=2 not /home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/test/asan/I386FreeBSDConfig/TestCases/Posix/Output/closed-fds.cc.tmp FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/asan/TestCases/Posix/closed-fds.cc --check-prefix=CHECK-FILE < /home/dim/obj/llvm-305058-trunk-freebsd10-i386-ninja-rel-1/projects/compiler-rt/test/asan/I386FreeBSDConfig/TestCases/Posix/Output/closed-fds.cc.tmp.log.* -- Exit Code: 1 Command Output (stderr): -- Closing streams. /share/dim/src/llvm/trunk/projects/compiler-rt/test/asan/TestCases/Posix/closed-fds.cc:32:17: error: expected string not found in input // CHECK-FILE: {{WRITE of size 1 at 0x.* thread T0}} ^ <stdin>:30:1: note: scanning from here WRITE of size 1 at 0x2a200791 thread T16777215 ^ I do not yet have any clue why r305058 causes these failures. Any hints are appreciated. :) -Dimitry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 223 bytes Desc: Message signed with OpenPGP URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170804/05ec98e5/attachment.sig>