[LLVMdev] ASan and UBSan Test Failures

Meador Inge meadori at codesourcery.com
Fri Jan 4 16:56:42 PST 2013


I am building LLVM on OS X 10.7.5 with cmake.  Under this configuration some ASan and UBSan tests
are failing:

$ make check-ubsan

…

********************
Testing Time: 2.36s
********************
Failing Tests (11):
    UndefinedBehaviorSanitizer :: Float/cast-overflow.cpp
    UndefinedBehaviorSanitizer :: Integer/add-overflow.cpp
    UndefinedBehaviorSanitizer :: Integer/div-zero.cpp
    UndefinedBehaviorSanitizer :: Integer/no-recover.cpp
    UndefinedBehaviorSanitizer :: Integer/sub-overflow.cpp
    UndefinedBehaviorSanitizer :: Integer/uadd-overflow.cpp
    UndefinedBehaviorSanitizer :: Integer/usub-overflow.cpp
    UndefinedBehaviorSanitizer :: Misc/bool.cpp
    UndefinedBehaviorSanitizer :: Misc/enum.cpp
    UndefinedBehaviorSanitizer :: TypeCheck/misaligned.cpp
    UndefinedBehaviorSanitizer :: TypeCheck/null.cpp

  Expected Passes    : 10
  Expected Failures  : 1
  Unexpected Failures: 11

$ make check-asan

…

********************
Testing Time: 125.18s
********************
Failing Tests (1):
    AddressSanitizer :: use-after-free.cc

  Expected Passes    : 29
  Expected Failures  : 1
  Unsupported Tests  : 9
  Unexpected Failures: 1


Is this a known issue?

--
Meador Inge
CodeSourcery / Mentor Embedded
http://www.mentor.com/embedded-software





More information about the llvm-dev mailing list