From 09ecd865fc9d75c0f1e6ef05ead663ed0abc5028 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 14 Aug 2019 03:26:38 +0300 Subject: [PATCH] Allow to use library dictionary source with ASan. May impose troubles. --- dbms/src/Dictionaries/LibraryDictionarySource.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbms/src/Dictionaries/LibraryDictionarySource.cpp b/dbms/src/Dictionaries/LibraryDictionarySource.cpp index b4de6506db1..2cb74b944d3 100644 --- a/dbms/src/Dictionaries/LibraryDictionarySource.cpp +++ b/dbms/src/Dictionaries/LibraryDictionarySource.cpp @@ -1,5 +1,6 @@ #include "LibraryDictionarySource.h" #include +#include #include #include #include @@ -134,7 +135,7 @@ LibraryDictionarySource::LibraryDictionarySource( ErrorCodes::FILE_DOESNT_EXIST); description.init(sample_block); library = std::make_shared(path, RTLD_LAZY -#if defined(RTLD_DEEPBIND) // Does not exists in freebsd +#if defined(RTLD_DEEPBIND) && !defined(ADDRESS_SANITIZER) // Does not exists in FreeBSD. Cannot work with Address Sanitizer. | RTLD_DEEPBIND #endif );