ClickHouse/contrib
Azat Khuzhin e379b80d45 MADV_DONTNEED check in runtime for qemu (via patching jemalloc)
qemu does not support MADV_DONTNEED, and by not support it simply ignore
it (i.e. return 0 -- no error).

This issue has been "fixed" in #15590, however it just
terminates the process, and completely breaks clickhouse under qemu
(see also #15174).

But there is no need in such strong protection, we can stop using
madvise in jemalloc if MADV_DONTNEED does not work properly.
And this is what #18169 was tried to do (by override madvise), however
this will break sanitizers, at least TSAN and UBSAN.
The problem there is that sanitizers initialization code uses madvise
(and there is no way to turn this off with TSAN_OPTIONS) and overwritten
madvise function will have sanitizers traits (__tsan_func_entry), while
TSAN is not ready for this, and eventually it SIGSEGV.
Interesting thing is that in the recent clang-12, madvise was replaced
with direct syscall [1].

  [1]: 9f8c4039f2

But it is better to make clickhouse compatible with clang < 12 too, so
instead of override madvise completely, the runtime check was moved into
the jemalloc code [2].

  [2]: https://github.com/ClickHouse-Extras/jemalloc/pull/1
2020-12-19 15:34:12 +03:00
..
abseil-cpp@4f3b686f86 Fork abseil-cpp to remove dependency on errno@GLIBC_PRIVATE, __pthread_unwind@GLIBC_PRIVATE and to fix shared build. 2020-11-24 17:55:02 +03:00
AMQP-CPP@03781aaff0 Update AMQP for BoringSSL 2020-11-29 11:53:15 +03:00
amqpcpp-cmake Fix cmake 2020-10-06 14:26:27 +03:00
antlr4-runtime@a2fa7b76e2 ANTLR4 Grammar for ClickHouse and new parser (#11298) 2020-12-04 05:15:44 +03:00
antlr4-runtime-cmake ANTLR4 Grammar for ClickHouse and new parser (#11298) 2020-12-04 05:15:44 +03:00
arrow@3cbcb7b62c Bump arrow to 0.17 (and flatbuffers to v1.12, required by arrow) 2020-07-07 23:54:32 +03:00
arrow-cmake Revert "Revert "cmake: Add option to fail configuration instead of auto-reconfiguration"" 2020-08-25 20:16:37 +03:00
avro@92caca2d42 Avro UUID support 2020-06-25 14:25:45 -05:00
avro-cmake Refactor CMake build files (#11390) 2020-06-09 13:54:49 +03:00
aws@a220591e33 Update aws submodule, use version with patch for non-empty http path in urls 2020-11-05 15:53:40 +03:00
aws-c-common@736a82d169 Update submodule heads. 2019-12-09 13:31:59 +03:00
aws-c-event-stream@3bc33662f9 AWS S3 SDK integration. 2019-12-03 19:23:24 +03:00
aws-checksums@519d6d9093 Update submodule heads. 2019-12-09 13:31:59 +03:00
aws-s3-cmake Update CMakeLists.txt 2020-08-12 02:05:20 +03:00
base64@af9b331f2b Fix UBSan report in base64 2020-07-12 22:38:37 +03:00
base64-cmake Link an empty dummy.c into base64 target, for Xcode to generate a library 2020-04-27 21:48:01 +04:00
boost@0b98b443aa Update boost. 2020-12-17 10:32:11 +03:00
boost-cmake Minor modification 2020-08-29 22:22:59 +03:00
boringssl@8b2bf912ba Fix splitted build 2020-12-17 01:59:58 +03:00
boringssl-cmake Update BoringSSL; add missing mode 2020-12-17 01:18:50 +03:00
brotli@5805f99a53 Add brotli to contrib 2019-02-02 16:33:50 +03:00
brotli-cmake Build fixes (#6016) 2019-08-04 03:19:03 +03:00
capnproto@a00ccd91b3 Formats/CapnProtoRowInputStream: support Nested and Tuple, fix alignment issues 2018-09-25 22:51:35 -07:00
capnproto-cmake Prepare for clang 11 2020-09-04 03:39:56 +03:00
cassandra@d10187efb2 Update Cassandra for BoringSSL 2020-11-29 11:42:17 +03:00
cctz@260ba195ef Update cctz to the latest master, update tzdb to 2020d. 2020-11-19 14:52:44 +01:00
cctz-cmake Update CMakeLists.txt 2020-08-28 16:40:22 +03:00
cityhash102 Better link and deps (#3631) 2018-11-21 22:20:27 +03:00
consistent-hashing Move FastMemcpy to contribs (#9219) 2020-03-13 01:26:16 +03:00
consistent-hashing-sumbur Move FastMemcpy to contribs (#9219) 2020-03-13 01:26:16 +03:00
cppkafka@b06e64ef5b Switch cppkafka to upstream and bump to upstream/master 2020-07-31 00:41:44 +03:00
cppkafka-cmake Refactor CMake build files (#11390) 2020-06-09 13:54:49 +03:00
croaring@5f20740ec0 try use cmake version for croaring instead of amalgamation.sh 2020-10-23 19:42:21 +08:00
croaring-cmake try use cmake version for croaring instead of amalgamation.sh 2020-10-23 19:42:21 +08:00
curl@3b8bbbbd16 AWS SDK integration rework. 2019-12-06 17:37:21 +03:00
curl-cmake cmake: fix potential curl linking problems 2020-08-25 20:16:44 +03:00
cyrus-sasl@9995bf9d8e Revert "Revert "Test and doc for PR12771 krb5 + cyrus-sasl + kerberized kafka"" 2020-09-29 11:56:37 +03:00
cyrus-sasl-cmake headers hell fight 2020-07-31 13:49:08 +03:00
double-conversion@cf2f0f3d54 Use double-conversion as submodule 2018-01-16 21:58:12 +03:00
double-conversion-cmake Build fixes (#6016) 2019-08-04 03:19:03 +03:00
dragonbox@b2751c65c0 Removed ryu 2020-12-06 15:39:39 +03:00
dragonbox-cmake better 2020-12-07 21:26:02 +03:00
fast_float@7eae925b51 Updated submodule 2020-12-06 23:37:36 +03:00
FastMemcpy Neutrialize thinlto's memcpy libcall gen. 2020-10-01 22:22:32 +03:00
fastops@88752a5e03 Using Danila Kutenin variant to make fastops working 2019-08-04 06:36:57 +03:00
fastops-cmake Fixed CMake 2019-08-04 13:58:43 +03:00
flatbuffers@6df40a2471 Bump arrow to 0.17 (and flatbuffers to v1.12, required by arrow) 2020-07-07 23:54:32 +03:00
fmtlib@c108ee1d59 Update fmtlib to master 2020-07-13 03:46:57 +03:00
fmtlib-cmake fmt-style logging, part 1 2020-05-23 19:33:07 +03:00
gcem@8d4f1b5d76 Add bayesAB function for bayesian_ab_testing 2020-07-09 22:11:40 +09:00
googletest@356f2d264a Bump googletest to master (to fix gcc10 builds) 2020-07-06 23:34:40 +03:00
grpc@7436366ceb Fork abseil-cpp to remove dependency on errno@GLIBC_PRIVATE, __pthread_unwind@GLIBC_PRIVATE and to fix shared build. 2020-11-24 17:55:02 +03:00
grpc-cmake Fork abseil-cpp to remove dependency on errno@GLIBC_PRIVATE, __pthread_unwind@GLIBC_PRIVATE and to fix shared build. 2020-11-24 17:55:02 +03:00
h3@6cfd649e8c h3 submodule 2019-06-20 14:39:53 +03:00
h3-cmake Build fixes (#6016) 2019-08-04 03:19:03 +03:00
hyperscan@3907fd00ee Update submodule 2020-06-17 10:12:24 +03:00
hyperscan-cmake Fix INTERFACE_COMPILE_DEFINITIONS for IMPORTED targets 2020-10-11 09:06:01 +03:00
icu@faa2f9f9e1 Preparation to build ICU from sources 2019-12-15 06:00:53 +03:00
icu-cmake Merge remote-tracking branch 'upstream/master' into fix27 2020-01-02 14:29:48 +03:00
icudata@f020820388 Preparation to build ICU from sources 2019-12-15 06:00:53 +03:00
jemalloc@e6891d9746 MADV_DONTNEED check in runtime for qemu (via patching jemalloc) 2020-12-19 15:34:12 +03:00
jemalloc-cmake Drop support for unbundled jemalloc 2020-10-11 11:18:56 +03:00
krb5@90ff6f4f8c Port Kerberos to BoringSSL 2020-12-16 09:37:28 +03:00
krb5-cmake Port Kerberos to BoringSSL 2020-12-16 19:30:23 +03:00
libc-headers@a720b7105a Update libc headers 2020-12-17 20:25:51 +03:00
libcpuid@8db3b8d2d3 Revert "DOCS-628: Stable versions of statistical functions (#10848)" 2020-05-13 16:32:36 +03:00
libcpuid-cmake cmake: ARM: make sure cpuid is not enabled by default 2020-08-25 20:16:39 +03:00
libcxx@95650a0db4 Bump libcxx to fix extern "C" at the middle of the line in gcc10 2020-12-16 21:31:03 +03:00
libcxx-cmake Fixed bad code 2020-02-22 22:47:32 +03:00
libcxxabi@1ebc83af4c Update libcxx and libcxxabi 2020-02-22 17:53:21 +03:00
libcxxabi-cmake Fixed bad code 2020-02-22 22:49:05 +03:00
libdivide Replace exit to abort in libdivide 2020-07-05 03:02:50 +03:00
libfarmhash CLICKHOUSE-3762 Build fixes (#2488) 2018-06-19 21:09:09 +03:00
libgsasl@383ee28e82 cleanup, fixes, new submodules, ShellCommand, WriteBufferFromString 2020-12-16 14:48:33 +03:00
libhdfs3@095b9d48b4 cleanup, fixes, new submodules, ShellCommand, WriteBufferFromString 2020-12-16 14:48:33 +03:00
libhdfs3-cmake doc minor changes, cleanup, krb5-user as a recommended package 2020-12-16 14:48:33 +03:00
libmetrohash Refactor CMake build files (#11390) 2020-06-09 13:54:49 +03:00
librdkafka@f2f6616419 Bump librdkafka to fix UB in snappy decompression. 2020-12-14 00:38:07 +03:00
librdkafka-cmake cmake: use bundled rdkafaka for in unbundled tests for now 2020-08-25 20:16:43 +03:00
libunwind@8fe25d7dc7 Update libunwind. 2020-12-15 19:18:28 +03:00
libunwind-cmake Fix libunwind build for cmake 3.19+ 2020-11-22 12:19:17 +03:00
libuv@84438304f4 cleenup 2020-06-04 00:11:17 +03:00
libxml2@18890f471c Add integration test, put dependent libs to contrib, slightly refine 2018-12-07 14:41:24 +03:00
libxml2-cmake Merge pull request #9433 from amosbird/cleanbuild 2020-02-28 23:59:55 +03:00
llvm@8f24d507c1 Update ci_config and llvm 2020-09-09 10:08:38 +03:00
lz4@f39b79fb02 Update LZ4 to the latest dev 2020-05-03 00:07:18 +03:00
lz4-cmake Fix INTERFACE_COMPILE_DEFINITIONS for IMPORTED targets 2020-10-11 09:06:01 +03:00
mariadb-connector-c@e05523ca7c Update MariaDB for BoringSSL 2020-11-29 11:49:46 +03:00
miniselect@be0af6bd0b Move miniselect to submodule and replace quantile exact with better algorithm 2020-11-10 00:53:43 +03:00
msgpack-c@46684265d5 Add MsgPackRowInputFormat, msgpack-c contrib and tests. 2020-03-26 19:46:13 +03:00
murmurhash Add extern "C" for cgo in arcadia to link [STRM-1049] 2020-01-23 12:22:00 +03:00
openldap@0208811b60 Update OpenLDAP for BoringSSL 2020-11-29 11:51:32 +03:00
openldap-cmake Allow Linux aarch64 2020-05-15 15:15:13 +04:00
orc@5981208e39 ADQM-34 add orc input format 2019-08-21 17:19:47 +03:00
pdqsort Update pdqsort to recent version (#10171) 2020-04-11 14:16:14 +03:00
poco@08974cc024 fixup 2020-12-08 20:29:17 +03:00
poco-cmake cmake: Fix odbc in unbudled 2020-08-25 20:16:43 +03:00
protobuf@73b1281420 Update contrib/grpc & contrib/protobuf. 2020-11-24 17:53:34 +03:00
protobuf-cmake Fix using external protobuf library for the build. 2020-10-01 06:28:54 +03:00
rapidjson@c4ef90ccdb Update submodules 2020-08-05 17:53:20 +03:00
re2@7cf8b88e8f contrib/re2 as submodule 2018-01-22 16:47:00 +03:00
re2_st Cmake: dont use LINK_MODE (but use BUILD_SHARED_LIBS) (#5091) 2019-04-24 12:06:28 +03:00
replxx@254be98ae7 client SIGWINCH fix 2020-12-12 00:34:40 +08:00
replxx-cmake client SIGWINCH fix 2020-12-12 00:34:40 +08:00
rocksdb@8b966f0ca2 last update 2020-12-07 15:48:58 +03:00
rocksdb-cmake diff 2020-12-01 19:30:55 +03:00
sentry-native@94644e92f0 Remove submodules 2020-08-05 17:32:23 +03:00
simdjson@3190d66a49 Update submodules 2020-08-05 17:53:20 +03:00
simdjson-cmake Fix build scripts. 2020-07-17 10:30:13 +03:00
snappy@3f194acb57 Add parquet support. Fixes, tests, ... 2019-02-19 23:51:44 +03:00
sparsehash-c11@cf0bffaa45 Replace libsparsehash with sparsehash-c11 2019-09-18 00:08:20 +03:00
stats@b6dd459c10 Add bayesAB function for bayesian_ab_testing 2020-07-09 22:11:40 +09:00
stats-cmake Fix abtesting build 2020-07-29 14:00:04 +03:00
thrift@010ccf0a0c Add parquet support. Fixes, tests, ... 2019-02-19 23:51:44 +03:00
unixodbc@b0ad30f7f6 Added unixodbc as a submodule. (#2789) 2018-08-02 11:18:15 +03:00
unixodbc-cmake cmake: Fix odbc in unbudled 2020-08-25 20:16:43 +03:00
xz@869b9d1b4e fixed whitespaces, added hidden submodule file 2020-11-02 23:04:49 +03:00
zlib-ng@6fd1846c8b Bump zlib-ng (to fix gcc10 build) 2020-08-25 22:31:19 +03:00
zstd@10f0e6993f Update zstd to 1.4.4 2020-05-09 21:31:01 +03:00
zstd-cmake Update zstd to 1.4.4 2020-05-09 21:31:01 +03:00
CMakeLists.txt Enable BoringSSL 2020-12-16 19:30:23 +03:00