Skip to content

Fix data race on lazy initialization of function pointers in SimSIMD dispatch#102132

Merged
alexey-milovidov merged 2 commits intoClickHouse:masterfrom
vitlibar:fix-data-race-on-lazy-init-in-simsimd
Apr 10, 2026
Merged

Fix data race on lazy initialization of function pointers in SimSIMD dispatch#102132
alexey-milovidov merged 2 commits intoClickHouse:masterfrom
vitlibar:fix-data-race-on-lazy-init-in-simsimd

Conversation

@vitlibar
Copy link
Copy Markdown
Member

@vitlibar vitlibar commented Apr 8, 2026

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fix data race on lazy initialization of function pointers in SimSIMD dispatch
PR to ClickHouse/SimSIMD: #26

Fixes #101968

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh Bot commented Apr 8, 2026

Workflow [PR], commit [eff7edd]

Summary:


AI Review

Summary

This PR updates contrib/SimSIMD from e3714957 to e81e1c2d to pull upstream fixes for lazy dispatch initialization races and MemorySanitizer false positives in ARM SVE reductions. I reviewed the submodule delta (5 upstream commits, 6 files touched) and found no correctness, safety, or compatibility issues in ClickHouse integration. The change is narrowly scoped to dependency update and looks safe to merge.

ClickHouse Rules
Item Status Notes
Deletion logging
Serialization versioning
Core-area scrutiny
No test removal
Experimental gate
No magic constants
Backward compatibility
SettingsChangesHistory.cpp
PR metadata quality
Safe rollout
Compilation time
No large/binary files
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added pr-not-for-changelog This PR should not be mentioned in the changelog submodule changed At least one submodule changed in this PR. labels Apr 8, 2026
@vitlibar vitlibar requested a review from Copilot April 8, 2026 21:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@alexey-milovidov
Copy link
Copy Markdown
Member

The MSan stress test failure (MemorySanitizer: use-of-uninitialized-value, STID 4179-5154 or 4148-3044) is a known pre-existing issue unrelated to this PR. Fix: #102158

@vitlibar vitlibar force-pushed the fix-data-race-on-lazy-init-in-simsimd branch from a8d90ca to 97a69a1 Compare April 9, 2026 09:46
@vitlibar vitlibar marked this pull request as ready for review April 9, 2026 09:46
@vitlibar
Copy link
Copy Markdown
Member Author

vitlibar commented Apr 9, 2026

@vitlibar vitlibar added the 🍃 green ci 🌿 Fixing flaky tests in CI label Apr 9, 2026
@alexey-milovidov
Copy link
Copy Markdown
Member

The Hung check failure is fixed by #102008 and #102010, let's update the branch

@alexey-milovidov alexey-milovidov self-assigned this Apr 10, 2026
@alexey-milovidov alexey-milovidov merged commit 9501061 into ClickHouse:master Apr 10, 2026
163 of 164 checks passed
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍃 green ci 🌿 Fixing flaky tests in CI pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ThreadSanitizer: data race (STID: 2410-3957)

4 participants