Regression

AddressSanitizer-x86_64-iossim.TestCases/Posix.strndup_oob_test.cc (from AddressSanitizer-x86_64-iossim)

Failing for the past 1 build (Since Failed#296 )
Took 1.3 sec.

Stacktrace

Script:
--
/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk  -shared-libasan -O0 /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test.cc -o /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/tools/clang/runtime/compiler-rt-bins/test/asan/IOSSimX86_64Config/TestCases/Posix/Output/strndup_oob_test.cc.tmp && not /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/tools/clang/runtime/compiler-rt-bins/test/asan/IOSSimX86_64Config/TestCases/Posix/Output/strndup_oob_test.cc.tmp 2>&1 | FileCheck /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test.cc
/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk  -shared-libasan -O1 /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test.cc -o /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/tools/clang/runtime/compiler-rt-bins/test/asan/IOSSimX86_64Config/TestCases/Posix/Output/strndup_oob_test.cc.tmp && not /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/tools/clang/runtime/compiler-rt-bins/test/asan/IOSSimX86_64Config/TestCases/Posix/Output/strndup_oob_test.cc.tmp 2>&1 | FileCheck /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test.cc
/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk  -shared-libasan -O2 /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test.cc -o /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/tools/clang/runtime/compiler-rt-bins/test/asan/IOSSimX86_64Config/TestCases/Posix/Output/strndup_oob_test.cc.tmp && not /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/tools/clang/runtime/compiler-rt-bins/test/asan/IOSSimX86_64Config/TestCases/Posix/Output/strndup_oob_test.cc.tmp 2>&1 | FileCheck /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test.cc
/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk  -shared-libasan -O3 /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test.cc -o /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/tools/clang/runtime/compiler-rt-bins/test/asan/IOSSimX86_64Config/TestCases/Posix/Output/strndup_oob_test.cc.tmp && not /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/tools/clang/runtime/compiler-rt-bins/test/asan/IOSSimX86_64Config/TestCases/Posix/Output/strndup_oob_test.cc.tmp 2>&1 | FileCheck /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test.cc
/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk  -shared-libasan -O3 -xc /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test.cc -o /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/tools/clang/runtime/compiler-rt-bins/test/asan/IOSSimX86_64Config/TestCases/Posix/Output/strndup_oob_test.cc.tmp && not /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/tools/clang/runtime/compiler-rt-bins/test/asan/IOSSimX86_64Config/TestCases/Posix/Output/strndup_oob_test.cc.tmp 2>&1 | FileCheck /Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test.cc
--
Exit Code: 1

Command Output (stderr):
--
/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test.cc:20:12: error: expected string not found in input
 // CHECK: #0 {{.*}}main {{.*}}strndup_oob_test.cc:[[@LINE-2]]
           ^
<stdin>:2:56: note: scanning from here
==26130==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000133 at pc 0x0001012c3d6a bp 0x7fff5e93bf30 sp 0x7fff5e93bf28
                                                       ^
<stdin>:2:56: note: with expression "@LINE-2" equal to "18"
==26130==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000133 at pc 0x0001012c3d6a bp 0x7fff5e93bf30 sp 0x7fff5e93bf28
                                                       ^
<stdin>:4:31: note: possible intended match here
atos[26134]: atos cannot examine process 26130 (strndup_oob_test.cc.tmp) for unknown reasons, even though it appears to exist; try running with `sudo`.
                              ^
/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test.cc:23:12: error: expected string not found in input
 // CHECK: #{{.*}}main {{.*}}strndup_oob_test.cc:[[@LINE-6]]
           ^
<stdin>:19:33: note: scanning from here
 #1 0x1013f73d9 in wrap_strndup (/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/lib/clang/6.0.0/lib/darwin/libclang_rt.asan_iossim_dynamic.dylib:x86_64+0x153d9)
                                ^
<stdin>:19:33: note: with expression "@LINE-6" equal to "17"
 #1 0x1013f73d9 in wrap_strndup (/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/lib/clang/6.0.0/lib/darwin/libclang_rt.asan_iossim_dynamic.dylib:x86_64+0x153d9)
                                ^
<stdin>:20:182: note: possible intended match here
 #2 0x1012c3d0e in main (/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/tools/clang/runtime/compiler-rt-bins/test/asan/IOSSimX86_64Config/TestCases/Posix/Output/strndup_oob_test.cc.tmp:x86_64+0x100000d0e)
                                                                                                                                                                                     ^
/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/llvm/projects/compiler-rt/test/asan/TestCases/Posix/strndup_oob_test.cc:25:12: error: expected string not found in input
 // CHECK: strndup_oob_test.cc:[[@LINE-7]]
           ^
<stdin>:23:8: note: scanning from here
SUMMARY: AddressSanitizer: heap-buffer-overflow (/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/tools/clang/runtime/compiler-rt-bins/test/asan/IOSSimX86_64Config/TestCases/Posix/Output/strndup_oob_test.cc.tmp:x86_64+0x100000d69) in main
       ^
<stdin>:23:8: note: with expression "@LINE-7" equal to "18"
SUMMARY: AddressSanitizer: heap-buffer-overflow (/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/tools/clang/runtime/compiler-rt-bins/test/asan/IOSSimX86_64Config/TestCases/Posix/Output/strndup_oob_test.cc.tmp:x86_64+0x100000d69) in main
       ^
<stdin>:23:220: note: possible intended match here
SUMMARY: AddressSanitizer: heap-buffer-overflow (/Users/buildslave/jenkins/sharedspace/clang-stage1-cmake-RA_workspace/clang-build/tools/clang/runtime/compiler-rt-bins/test/asan/IOSSimX86_64Config/TestCases/Posix/Output/strndup_oob_test.cc.tmp:x86_64+0x100000d69) in main
                                                                                                                                                                                                                           ^

--