Skip to content

Fix crash dump exit code comparison - #131520

Merged
mdh1418 merged 1 commit into
dotnet:mainfrom
mdh1418:fix/crashdump-exitcode-sign-compare
Jul 29, 2026
Merged

Fix crash dump exit code comparison#131520
mdh1418 merged 1 commit into
dotnet:mainfrom
mdh1418:fix/crashdump-exitcode-sign-compare

Conversation

@mdh1418

@mdh1418 mdh1418 commented Jul 29, 2026

Copy link
Copy Markdown
Member

Fixes #131519

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 13d168eb-c2c9-410e-b5fb-be2637ac4e9a
Copilot AI review requested due to automatic review settings July 29, 2026 06:24
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke
See info in area-owners.md if you want to be subscribed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates CoreCLR crash-dump termination logic to avoid a signed/unsigned comparison warning (treated as an error under -Werror) when checking for stack overflow exit codes in CrashDumpAndTerminateProcess.

Changes:

  • Compare exitCode against COR_E_STACKOVERFLOW using an explicit static_cast<UINT>(...) to eliminate signedness mismatch warnings.
  • Apply the same cast in the CreateCrashDumpIfEnabled(...) stack-overflow predicate on Windows.

@am11 am11 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mdh1418
mdh1418 merged commit eff9a2f into dotnet:main Jul 29, 2026
110 of 112 checks passed
@mdh1418
mdh1418 deleted the fix/crashdump-exitcode-sign-compare branch July 29, 2026 14:10
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linux Native_GCC build error: comparison of integer expressions of different signedness

4 participants