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
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
aws-c-event-stream@3bc33662f9
aws-checksums@519d6d9093
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
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
brotli-cmake
capnproto@a00ccd91b3
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
consistent-hashing
consistent-hashing-sumbur
cppkafka@b06e64ef5b Switch cppkafka to upstream and bump to upstream/master 2020-07-31 00:41:44 +03:00
cppkafka-cmake
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
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
double-conversion-cmake
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
fastops-cmake
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
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-cmake
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
icu-cmake
icudata@f020820388
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
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
libcxxabi@1ebc83af4c
libcxxabi-cmake
libdivide Replace exit to abort in libdivide 2020-07-05 03:02:50 +03:00
libfarmhash
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
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
libxml2@18890f471c
libxml2-cmake
llvm@8f24d507c1 Update ci_config and llvm 2020-09-09 10:08:38 +03:00
lz4@f39b79fb02
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
murmurhash
openldap@0208811b60 Update OpenLDAP for BoringSSL 2020-11-29 11:51:32 +03:00
openldap-cmake
orc@5981208e39
pdqsort
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
re2_st
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
sparsehash-c11@cf0bffaa45
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
unixodbc@b0ad30f7f6
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
zstd-cmake
CMakeLists.txt Enable BoringSSL 2020-12-16 19:30:23 +03:00