[PATCH] Enable testing ASAN on AArch64

Christophe Lyon christophe.lyon at linaro.org
Thu Jan 29 02:27:54 PST 2015


Hi rengolin, kcc,

This patch is related to http://reviews.llvm.org/D7243, and enables testing ASAN on AArch64.

When both patches are applied, I can see 2 failures in the testsuite:
Asan-aarch64-inline-Test/AddressSanitizer.BuiltinLongJmpTest
Asan-aarch64-with-calls-Test/AddressSanitizer.BuiltinLongJmpTest

I have tried to debug them, and I am not wondering if these tests should be skipped as on ARM, PowerPC.
As a matter of fact, I have extracted a sample program which does run when compiled with GCC, but loops & crashes when compiled with clang: maybe __builtin_longjmp is broken on AArch64 in Clang/LLVM?

Thanks.

http://reviews.llvm.org/D7244

Files:
  cmake/config-ix.cmake

Index: cmake/config-ix.cmake
===================================================================
--- cmake/config-ix.cmake
+++ cmake/config-ix.cmake
@@ -173,7 +173,7 @@
 filter_available_targets(SANITIZER_COMMON_SUPPORTED_ARCH
   x86_64 i386 i686 powerpc64 powerpc64le arm aarch64 mips mips64 mipsel mips64el)
 filter_available_targets(ASAN_SUPPORTED_ARCH
-  x86_64 i386 i686 powerpc64 powerpc64le arm mips mipsel mips64 mips64el)
+  x86_64 i386 i686 powerpc64 powerpc64le arm aarch64 mips mipsel mips64 mips64el)
 filter_available_targets(DFSAN_SUPPORTED_ARCH x86_64 mips64 mips64el)
 filter_available_targets(LSAN_SUPPORTED_ARCH x86_64)
 # LSan common files should be available on all architectures supported

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7244.18942.patch
Type: text/x-patch
Size: 711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150129/cd8ea47b/attachment.bin>


More information about the llvm-commits mailing list