ClickHouse® is a real-time analytics DBMS
Go to file
Azat Khuzhin 1fb7605fb4 Fix self extracting binaries under qemu linux-user (qemu-$ARCH-static)
The problem was that the decompressor uses realpath(/proc/self/exe)
instead of readlink(/proc/self/exe), while realpath() does lots of
trickerly [1] which leads to bypassing qemu linux-user override [2] of
/proc/self/exe to the executable with with it had been called -- and
the reason for this is that the getpid() after unshare returns 1, while
reading /proc/self returns the pid that was before unshare (from the
chroot) [3].

  [1]: 4290aed051/stdlib/canonicalize.c (L223)
  [2]: ed8ad9728a/linux-user/syscall.c (L8634)
  [3]: https://gist.github.com/azat/fcbd8b6c26afd505ae5f3387fc15f0e2

But note, that even after this patch qemu without binfmt will not work,
due to internally the code calls execv() while qemu does not handle it
(see [4]).

  [4]: https://patchwork.kernel.org/project/qemu-devel/patch/1453091602-21843-1-git-send-email-petrosagg@gmail.com/

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-07-17 13:10:40 +02:00
.github Merge remote-tracking branch 'origin/master' into analyzer-integration-tests 2023-07-11 08:55:31 +00:00
base better logs on shutdown 2023-07-07 18:40:43 +02:00
benchmark
cmake Merge pull request #51710 from velavokr/velavokr-warn-cpu-utilization 2023-07-09 08:47:01 +03:00
contrib Update CMakeLists.txt 2023-07-14 10:13:36 -04:00
docker Fix flakiness of test_keeper_s3_snapshot 2023-07-13 14:25:24 +02:00
docs Merge pull request #45671 from ClibMouse/feature/interval-kql-style-formatting 2023-07-16 04:06:54 +02:00
packages Revert "Added tests for ClickHouse apps help and fixed help issues" 2023-04-21 01:54:34 +03:00
programs Merge branch 'master' into keeper-client-fix-parser 2023-07-11 20:13:51 -04:00
rust Run cargo update to fix build with nightly 2023-07-03 09:40:36 +02:00
src Merge pull request #52143 from ClickHouse/remove-default-value 2023-07-16 19:22:30 +03:00
tests Merge pull request #52154 from ClickHouse/fix-02497_storage_file_reader_selection 2023-07-17 06:45:48 +03:00
utils Fix self extracting binaries under qemu linux-user (qemu-$ARCH-static) 2023-07-17 13:10:40 +02:00
.clang-format Configure rule for concepts requires clause 2023-06-05 06:55:52 -07:00
.clang-tidy readability-identifier-names: adjust invalid options 2023-05-13 20:28:55 +00:00
.clangd Enable few slow clang-tidy checks for clangd 2023-05-13 14:08:25 +02:00
.editorconfig
.exrc
.git-blame-ignore-revs
.gitattributes
.gitignore Enable few slow clang-tidy checks for clangd 2023-05-13 14:08:25 +02:00
.gitmodules Change submodule capnproto to it's fork in ClickHouse 2023-06-14 14:55:11 +02:00
.pylintrc Cover deprecated bad-* pylint options with black 2022-06-08 14:18:28 +02:00
.snyk
.yamllint Increase line-length limit for yamlllint 2023-06-13 19:45:51 +02:00
AUTHORS
CHANGELOG.md Update CHANGELOG.md 2023-06-30 11:39:08 +03:00
CMakeLists.txt Force libunwind usage (removes gcc_eh support) 2023-07-08 20:55:50 +02:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md
format_sources
LICENSE Update LICENSE 2023-01-02 00:35:32 +01:00
PreLoad.cmake CMake cleanup: Remove configuration of CMAKE_SHARED_LINKER_FLAGS 2023-03-26 17:59:39 +00:00
README.md Update README.md 2023-07-14 18:56:53 +03:00
SECURITY.md Update version_date.tsv and changelogs after v23.6.1.1524-stable 2023-06-30 15:21:13 +00:00

ClickHouse — open source distributed column-oriented DBMS

ClickHouse® is an open-source column-oriented database management system that allows generating analytical data reports in real-time.

How To Install (Linux, macOS, FreeBSD)

curl https://clickhouse.com/ | sh

Upcoming Events

Also, keep an eye out for upcoming meetups around the world. Somewhere else you want us to be? Please feel free to reach out to tyler clickhouse com.

Recent Recordings

  • Recent Meetup Videos: Meetup Playlist Whenever possible recordings of the ClickHouse Community Meetups are edited and presented as individual talks. Current featuring "Modern SQL in 2023", "Fast, Concurrent, and Consistent Asynchronous INSERTS in ClickHouse", and "Full-Text Indices: Design and Experiments"
  • Recording available: v23.6 Release Webinar All the features of 23.6, one convenient video! Watch it now!
  • All release webinar recordings: YouTube playlist

Interested in joining ClickHouse and making it your full-time job?

We are a globally diverse and distributed team, united behind a common goal of creating industry-leading, real-time analytics. Here, you will have an opportunity to solve some of the most cutting-edge technical challenges and have direct ownership of your work and vision. If you are a contributor by nature, a thinker and a doer - well definitely click!

Check out our current openings here: https://clickhouse.com/company/careers

Cant find what you are looking for, but want to let us know you are interested in joining ClickHouse? Email careers@clickhouse.com!