-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Improve diagnostic for link.exe special case exit code 0xc0000409 (STATUS_STACK_BUFFER_OVERRUN) #143133
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
base: master
Are you sure you want to change the base?
Conversation
rustbot has assigned @compiler-errors. Use |
Some changes occurred in compiler/rustc_codegen_ssa |
This might be challenging, but, is it possible to have a ui test for this diagnostic? |
I'll see what I can do |
This comment has been minimized.
This comment has been minimized.
Holy! I accidentally misclicked. I should've commited the ui tests not this. I'll fix it when I get home |
So, I had the idea to build a dummy linker (via aux-bin) that always simulates a __fastfail termination, and pass it to -Clinker using the compiler-flags directive. The problem is that the relevant note only gets emitted when One option is to move the note outside the |
This comment has been minimized.
This comment has been minimized.
Please squash this into one commit. Also, maybe worth to get the review of someone who knows a bit more about windows... r? @ChrisDenton |
@rustbot author for squashing into one commit |
Reminder, once the PR becomes ready for a review, use |
LGTM but it seems we have two PRs for the same issue. See also #141828. |
…K_BUFFER_OVERRUN) Tweak __fastfail termination note text to clarify behavior Move __fastfail termination diagnostic emission outside MSVC toolchain check to enable testing Since the ui tests cannot satisfy the MSVC toolchain check - hence making this behavior untestable. Add UI test for __fastfail termination (0xc0000409) linker diagnostic note Fix formatting
|
Yep. It turns out theres a second issue report with a fix PR that duplicates the one I addressed in my PR. Also I squashed the commits. |
@rustbot ready |
Fixes #141757.
Adds note for when link.exe exits with code 0xc0000409