Skip to content

fix(main): compare only x87 control/status words and MXCSR across thread switches - #11191

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
adriadam10:fix/main-fenv-test-flake
Oct 25, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
adriadam10:fix/main-fenv-test-flake

Conversation

@adriadam10

Copy link
Copy Markdown
Collaborator

What

guest_floating_point failed on main (run 40226437381, "feholdexcept workers preserve the main environment"; failed 3 of 28 red main builds, so a flake, not caused by the 4 merges in the range). The test memcmped the full fnstenv image (tag word, FIP/FCS/FDP/FDS) of the main thread before and after other threads ran; a context switch re-initialises that state when the x87 unit is idle. Now the two cross-thread checks compare control word, status word and MXCSR. The same-call checks are unchanged. No open PR fixes this (#10626 is about a different query).

Tested

Linux: guest_floating_point builds and passes; with the new check forced to false it fails, restored it passes.

Checklist

AI-assisted: yes

…ross thread switches

Run 40226437381 failed guest_floating_point (feholdexcept workers preserve the main environment). The test compared the whole fnstenv image (tag word, FIP/FDP) of the main thread before and after other threads ran; a context switch re-initialises that state when the x87 unit is idle, so it flakes (3 of 28 main builds). Compare control word, status word and MXCSR.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@adriadam10
adriadam10 merged commit b44265e into boykopovar:main Oct 25, 2026
3 of 4 checks passed
@UnhealthyKraken UnhealthyKraken mentioned this pull request Oct 26, 2026
12 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant