ClickHouse/tests
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
..
ci Enable Pytest framework for stateless tests (#17902) 2020-12-18 16:26:11 +03:00
config Merge pull request #18113 from azat/tld-list-symlink-fix 2020-12-16 20:49:43 +03:00
external_models/catboost
fuzz
instructions Update easy_tasks_sorted_ru.md 2020-12-17 05:50:04 +03:00
integration Merge pull request #18129 from ClickHouse/boringssl2 2020-12-18 18:00:10 +03:00
perf_drafts
performance Tests become too fast 2020-12-17 22:11:03 +03:00
queries MADV_DONTNEED check in runtime for qemu (via patching jemalloc) 2020-12-19 15:34:12 +03:00
testflows Update regression.py 2020-12-19 03:32:50 +03:00
users.d
.gitignore
clickhouse-client.xml
clickhouse-test Fix local variable in clickhouse-test 2020-12-17 23:13:49 +03:00
clickhouse-test-server
client-test.xml
CMakeLists.txt Avoid using symlinks for top_level_domains 2020-12-15 21:58:46 +03:00
CTestCustom.cmake
decimals_dictionary.xml
ints_dictionary.xml
msan_suppressions.txt
server-test.xml
stress
strings_dictionary.xml
tsan_suppressions.txt
ubsan_suppressions.txt
users.xml