[cfe-dev] [release_34] [compiler_rt] UBSAN test failures on i586

İsmail Dönmez ismail at donmez.ws
Thu Dec 5 03:34:35 PST 2013


Hi,

I have multiple UBSAN tests failing the same way:

 ******************** TEST 'UndefinedBehaviorSanitizer-AddressSanitizer ::
Integer/uadd-overflow.cpp' FAILED ********************
 Script:
 --
 /home/abuild/rpmbuild/BUILD/llvm/stage2/bin/clang -fsanitize=address
--driver-mode=g++ -DADD_I32 -fsanitize=unsigned-integer-overflow
/home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp
-o
/home/abuild/rpmbuild/BUILD/llvm/stage2/projects/compiler-rt/lib/ubsan/lit_tests/AsanConfig/Integer/Output/uadd-overflow.cpp.tmp
&&
/home/abuild/rpmbuild/BUILD/llvm/stage2/projects/compiler-rt/lib/ubsan/lit_tests/AsanConfig/Integer/Output/uadd-overflow.cpp.tmp
2>&1 | FileCheck
/home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp
--check-prefix=CHECK-ADD_I32
 /home/abuild/rpmbuild/BUILD/llvm/stage2/bin/clang -fsanitize=address
--driver-mode=g++ -DADD_I64 -fsanitize=unsigned-integer-overflow
/home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp
-o
/home/abuild/rpmbuild/BUILD/llvm/stage2/projects/compiler-rt/lib/ubsan/lit_tests/AsanConfig/Integer/Output/uadd-overflow.cpp.tmp
&&
/home/abuild/rpmbuild/BUILD/llvm/stage2/projects/compiler-rt/lib/ubsan/lit_tests/AsanConfig/Integer/Output/uadd-overflow.cpp.tmp
2>&1 | FileCheck
/home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp
--check-prefix=CHECK-ADD_I64
 /home/abuild/rpmbuild/BUILD/llvm/stage2/bin/clang -fsanitize=address
--driver-mode=g++ -DADD_I128 -fsanitize=unsigned-integer-overflow
/home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp
-o
/home/abuild/rpmbuild/BUILD/llvm/stage2/projects/compiler-rt/lib/ubsan/lit_tests/AsanConfig/Integer/Output/uadd-overflow.cpp.tmp
&&
/home/abuild/rpmbuild/BUILD/llvm/stage2/projects/compiler-rt/lib/ubsan/lit_tests/AsanConfig/Integer/Output/uadd-overflow.cpp.tmp
2>&1 | FileCheck
/home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp
--check-prefix=CHECK-ADD_I128
 --
 Exit Code: 1

 Command Output (stderr):
 --
 /home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp:21:20:
error: expected string not found in input
  // CHECK-ADD_I64: 10000000000000000000 + 9000000000000000000 cannot be
represented in type 'unsigned long'
                    ^
 <stdin>:1:1: note: scanning from here
 /home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp:20:44:
runtime error: unsigned integer overflow: 10000000000000000000 +
9000000000000000000 cannot be represented in type 'unsigned long long'
 ^
 <stdin>:1:160: note: possible intended match here
 /home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp:20:44:
runtime error: unsigned integer overflow: 10000000000000000000 +
9000000000000000000 cannot be represented in type 'unsigned long long'

So the test expect to see "unsigned long" but output has "unsigned long
long".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131205/76945fa6/attachment.html>


More information about the cfe-dev mailing list