Repository navigation
Temporarily disable the query and memory profilers on macOS - #111595
Closed
Algunenano wants to merge 3 commits into
Closed
Algunenano wants to merge 3 commits into
Algunenano wants to merge 3 commits into
Conversation
Contributor
|
Workflow [PR], commit [8906365] Summary: ⏳
AI ReviewSummaryThis PR temporarily disables the query and memory profilers on macOS to stop Darwin-specific Final Verdict
|
… on fiber stacks)
…S; trim darwin.skip to profiler-dependent tests
Member
Author
|
I have a proper fix in the works |
1 task done
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.
Temporary stopgap for the
Fast test (arm_darwin)Server diedfailures hitting unrelated PRs since 2026-07-21 (enabled by #109825, which turned on the sampling/query and memory profilers andtrace_logsymbolization on macOS).Root cause (from a macOS
.ipscrash report of a local reproduction): a profiler captures a stack via the systembacktrace()(Darwin__thread_stack_pcs) while a thread is running on aboost::contextfiber stack (e.g. the async reader of aremote(...)query).__thread_stack_pcswalks the frame-pointer chain off the end of the fiber stack into unmapped memory and the server crashes withSIGSEGV. The faulting path observed was the memory profiler:MemoryTrackerallocation sampling →AllocationTrace::onAllocImpl→StackTrace()→backtrace(), which is not protected by theasynchronous_stack_unwindingrecovery, so there is nosiglongjmpfallback and the crash is fatal. The memory profiler is active by default (total_memory_profiler_step/memory_profiler_step= 4 MiB).This disables the profiler stack capture on macOS until the unwind is made safe on fiber stacks:
QueryProfilerReal/QueryProfilerCPU): not constructed ininitGlobalProfiler/initQueryProfiler.MemoryTracker::setProfilerStep/setSampleProbabilityare no-ops on macOS, so allocation sampling never captures a stack (memory limits/accounting are unaffected).The profiler/
trace_logtests unskipped/added by #109825 are restored toci/defs/darwin.skipsincesystem.trace_logno longer gets these samples on macOS.Follow-up (proper fix, separate PR): make the macOS stack capture safe on fiber stacks (bounded frame-pointer walk that stops at the current stack-segment boundary, and/or guard every
StackTrace()capture with the existing async-unwind recovery).Caused by: #109825
Related: #111579
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):