Repository navigation
Fix the thread_local destructor secret on illumos and a CFI failure in make_shared - #155
Merged
Merged
Conversation
…orms Only Linux initialized it, so the first thread_local destructor aborted on the other platforms that use this implementation, such as illumos. Use getentropy() outside Linux. Co-Authored-By: Claude Opus 5.5 <[email protected]>
It returns the storage of an object that does not exist yet, and Clang CFI (cfi-unrelated-cast) rejects the cast. The previous implementation was marked _LIBCPP_NO_CFI for the same reason. Co-Authored-By: Claude Opus 5.5 <[email protected]>
thevar1able
approved these changes
Nov 16, 2026
thevar1able
added a commit
to ClickHouse/ClickHouse
that referenced
this pull request
Nov 16, 2026
…ecret on illumos The pinned `libcxxabi` aborted on the first `thread_local` with a non-trivial destructor on illumos, because `init_dtor_secret` read the secret only from `AT_RANDOM` on Linux. It now uses `getentropy` elsewhere. The bump also brings `_LIBCPP_NO_CFI` back on `__shared_ptr_emplace::__get_elem`. Related: ClickHouse/llvm-project#155 Co-Authored-By: Claude Opus 5.5 <[email protected]>
alexey-milovidov
added a commit
to ClickHouse/ClickHouse
that referenced
this pull request
Nov 16, 2026
… fix for illumos Advances the submodule to the tip of `ClickHouse/release-23.x`, which initializes the secret with `getentropy` on non-Linux platforms (ClickHouse/llvm-project#155, ClickHouse/llvm-project#157) and includes an `InstCombine` fix (ClickHouse/llvm-project#156). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes: the
thread_localdestructor secret added in #152 was only initialized on Linux, so the firstthread_localdestructor aborted on illumos; it now usesgetentropy()outside Linux. And__shared_ptr_emplace::__get_elem()lost its_LIBCPP_NO_CFIin the 23.x rewrite, so Clang CFI rejects everymake_sharedof a polymorphic type.