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) if (SAN_DEBUG)
set (SAN_FLAGS "${SAN_FLAGS} -O0") set (SAN_FLAGS "${SAN_FLAGS} -O0")
else () else ()

View File

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