MDEV-42362, MDEV-42466 Fix lotofstack JSON_TABLE test on armhf and Windows threadpool stack reserve #6213
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 182 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.312
Real PR Conversation Timeline
1 comments
"Review active on #6213"
general
weight: 0.35
gkodinov
On
armhf, 5000 nestedJSON_TABLEpaths stay under the default stack-overrun threshold, and raising the depth hits the Bison parser limit (MY_YACC_MAX) first.This restarts the server with
--thread-stack=192Karound the MDEV-40847 (c746ca3e2d0) block and restores the original options afterward, leaving the rest oflotofstack.testunchanged. Usingrestart_mysqld.incinstead of a.optfile keeps the lower stack limit after the sanitizer skip checks.Running with
--thread-stack=192Kexposed a separate Windows bug (MDEV-42466) whereTP_pool_win::init()setsStackReservedirectly tomy_thread_stack_sizewith no headroom, causing0xc00000fdon exact 64 KiB multiples. The first commit adds 64 KiB of virtual stack headroom insql/threadpool_win.cc(keepingStackCommit = 0).Tested locally (
RelWithDebInfo):armhf(cross-compiled,qemu-arm): reproduced the failure before the fix, passes after with default,--ps-protocol, and--view-protocolamd64(native): passes with default,--ps-protocol,--view-protocol,--cursor-protocol, and--repeat=2, confirmed ingdbthat the overrun still fires inJson_table_nested_path::print()Windows builds (
sql/threadpool_win.cc) and nativearmhfstill need CI verification.Fixes MDEV-42362 and MDEV-42466.