[PATCH] D23864: [asan] Disable CreateSigAltStack from Unix/Signals.inc for asan builds

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 24 20:40:31 PDT 2016


vitalybuka created this revision.
vitalybuka added a reviewer: kcc.
vitalybuka added a subscriber: llvm-commits.

Asan fails to UnsetAlternateSignalStack if it set by Unix/Signals.inc

https://reviews.llvm.org/D23864

Files:
  cmake/config-ix.cmake

Index: cmake/config-ix.cmake
===================================================================
--- cmake/config-ix.cmake
+++ cmake/config-ix.cmake
@@ -170,7 +170,8 @@
   check_symbol_exists(siglongjmp setjmp.h HAVE_SIGLONGJMP)
   check_symbol_exists(sigsetjmp setjmp.h HAVE_SIGSETJMP)
 endif()
-if( HAVE_SIGNAL_H )
+// AddressSanitizer conflicts with lib/Support/Unix/Signals.inc
+if( HAVE_SIGNAL_H AND NOT LLVM_USE_SANITIZER MATCHES ".*Address.*")
   check_symbol_exists(sigaltstack signal.h HAVE_SIGALTSTACK)
 endif()
 if( HAVE_SYS_UIO_H )


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23864.69199.patch
Type: text/x-patch
Size: 544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160825/cc9a447a/attachment-0001.bin>


More information about the llvm-commits mailing list