You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Check stack size more frequently on Darwin due to smaller default stack - #102645
This PR changes IParser::Pos::increaseDepth to run checkStackSize every 128 recursion levels on Darwin (instead of 8192), aligning with platforms that have smaller/default stack constraints. I reviewed the full change and did not find correctness, safety, compatibility, or performance issues that require code changes.
Hi — this PR may need backporting to 26.3 (LTS), 26.2, 26.1, 25.8 (LTS), but no backport label was found.
Affected code:IParser::Pos::increaseDepth stack check frequency conditional — core code present in all supported branches.
Why: This fixes a real crash (SIGILL from stack overflow) on Darwin during parsing of deeply nested expressions. The check_frequency code in IParser.h predates all supported branches. While macOS is not a primary production platform, it is used for development and CI, and stack overflow crashes are serious.
If this should be backported, consider adding pr-must-backport or a version-specific label (e.g. v26.3-must-backport). Ignore this if backporting is not applicable.
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
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Check stack size more frequently on Darwin due to smaller default stack
Fixes
02985_parser_check_stack_sizetriggering SIGILL on DarwinDocumentation entry for user-facing changes
Version info
26.4.1.1101