-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check stack size in Parser #59697
Check stack size in Parser #59697
Conversation
This is an automated comment for commit 1f88206 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page Successful checks
|
* and a power of two to simplify the division. | ||
*/ | ||
#ifdef USE_MUSL | ||
static constexpr uint32_t check_frequency = 128; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. Is MUSL stack smaller?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the first run made the Fast test crashing, and the Fast test uses Musl (the intention is to migrate to it eventually and keep it more or less supported before that time). I could set the frequency to 128 for a normal build as well, but I'm afraid it is too frequent.
…stack-size-in-parser
The CI is not happy, although it's not obvious why:
|
…stack-size-in-parser
It happens in coroutines. |
Oh no this breaks The reason is inconsistent exception, sometimes it will be |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Check for stack overflow in parsers even if the user misconfigured the
max_parser_depth
setting to a very high value. This closes #59622.