Skip to content

Fix clang-tidy - #102114

Closed
rschu1ze wants to merge 1 commit into
masterfrom
fix-tidy
Closed

rschu1ze wants to merge 1 commit into
masterfrom
fix-tidy

Conversation

@rschu1ze

@rschu1ze rschu1ze commented Apr 8, 2026

Copy link
Copy Markdown
Member

Follow-up to #99856

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

@clickhouse-gh

clickhouse-gh Bot commented Apr 8, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [5b68859]

Summary: ⏳

job_name test_name status info comment
Stateless tests (amd_asan_ubsan, distributed plan, parallel, 2/2) failure
02346_text_index_bug101913 FAIL cidb IGNORED
Stress test (arm_msan) failure
Server died FAIL cidb, issue ISSUE EXISTS
MemorySanitizer: use-of-uninitialized-value (STID: 4179-5154) FAIL cidb, issue ISSUE EXISTS
Stateless tests (amd_tsan, flaky check) error IGNORED

AI Review

Summary

This PR is a minimal clang-tidy cleanup in src/Common/EnvironmentChecks.cpp, replacing C header <stdlib.h> with C++ header <cstdlib>. The change is non-functional, low risk, and consistent with C++ codebase conventions; I did not find correctness, safety, performance, or compatibility issues requiring inline comments.

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 ✅
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Apr 8, 2026
@thevar1able thevar1able self-assigned this Apr 8, 2026
@clickhouse-gh

clickhouse-gh Bot commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.00% 84.00% +0.00%
Functions 90.90% 90.90% +0.00%
Branches 76.50% 76.50% +0.00%

Changed lines: N/A (no coverable changed lines) · Uncovered code

Full report · Diff report

@alexey-milovidov
alexey-milovidov marked this pull request as draft April 8, 2026 20:46
@rschu1ze

rschu1ze commented Apr 8, 2026

Copy link
Copy Markdown
Member Author

Obsoleted by #102127

@alexey-milovidov

Copy link
Copy Markdown
Member

Also interesting what is the problem found by MSan.

@alexey-milovidov

Copy link
Copy Markdown
Member

It is marked as IGNORED, but we prohibit ignoring anything from the CI.

alexey-milovidov added a commit that referenced this pull request Apr 9, 2026
The boost fiber implementation (`fiber_ucontext.hpp`) has MSan annotations
(`__msan_start_switch_fiber`/`__msan_finish_switch_fiber`) around every
`swapcontext` call. These annotations tell MSan about fiber stack switches
so it can properly save/restore shadow memory state. However, they are
gated on `BOOST_USE_MSAN`, which was never defined in the build.

Without these annotations, MSan loses track of shadow memory during fiber
context switches, causing false "use-of-uninitialized-value" reports for
values that were written inside fibers — such as `TryResult` fields set by
`ConnectionEstablisher::run` in the async connection path.

Fixes: #101649
CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=102114&sha=5b68859e4e2e0023ace05c14f750a827f75ed7f5&name_0=PR&name_1=Stress%20test%20%28arm_msan%29
See also: #102114

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants