Added support for MSan [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-03-03 23:37:12 +03:00
parent c1a8659000
commit 28b46655db
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
set (SAN_FLAGS "${SAN_FLAGS} -g -fno-omit-frame-pointer")
set (SAN_FLAGS "${SAN_FLAGS} -g -fno-omit-frame-pointer -DSANITIZER")
if (SAN_DEBUG)
set (SAN_FLAGS "${SAN_FLAGS} -O0")
else ()

View File

@ -791,7 +791,7 @@ void BaseDaemon::initialize(Application & self)
if (setrlimit(RLIMIT_CORE, &rlim))
{
std::string message = "Cannot set max size of core file to " + std::to_string(rlim.rlim_cur);
#if !defined(ADDRESS_SANITIZER) && !defined(THREAD_SANITIZER) && !defined(MEMORY_SANITIZER)
#if !defined(ADDRESS_SANITIZER) && !defined(THREAD_SANITIZER) && !defined(MEMORY_SANITIZER) && !defined(SANITIZER)
throw Poco::Exception(message);
#else
/// It doesn't work under address/thread sanitizer. http://lists.llvm.org/pipermail/llvm-bugs/2013-April/027880.html