test: trigger crashes with correct WER exception codes#1779
Merged
Conversation
For stack-buffer-overruns, the example uses `RaiseFailFastException` as appropriate, but for fastfails, it used `__fastfail(77)` that made WER deliver `STATUS_STACK_BUFFER_OVERRUN (0xC0000409)`. - `__fastfail(77)` → `kernel int 0x29` → WER always normalizes to `STATUS_STACK_BUFFER_OVERRUN (0xC0000409)` https://learn.microsoft.com/en-us/cpp/intrinsics/fastfail vs. - `RaiseFailFastException(NULL, NULL, 0)` → WER preserves the original exception code `(STATUS_FAIL_FAST_EXCEPTION = 0xC0000602)` https://learn.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-raisefailfastexception
JoshuaMoelans
approved these changes
Jun 3, 2026
mujacica
approved these changes
Jun 3, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
For stack-buffer-overruns, the example uses
RaiseFailFastExceptionas appropriate, but for fastfails, it used__fastfail(77)that makes WER deliverSTATUS_STACK_BUFFER_OVERRUN (0xC0000409).__fastfail(77)→ kernel int0x29→ WER always normalizes toSTATUS_STACK_BUFFER_OVERRUN (0xC0000409)https://learn.microsoft.com/en-us/cpp/intrinsics/fastfail
vs.
RaiseFailFastException(NULL, NULL, 0)→ WER preserves the original exception codeSTATUS_FAIL_FAST_EXCEPTION (0xC0000602)https://learn.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-raisefailfastexception
Originally posted by @cursor[bot] in #1777 (comment)
Reviewed by Cursor Bugbot for commit 9c3e82f. Configure here.
NOTE: The CI does not run WER tests. Tested locally: