mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Added support for MSan [#CLICKHOUSE-2]
This commit is contained in:
parent
c1a8659000
commit
28b46655db
@ -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 ()
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user