Skip to content

Conversation

@MihaZupan
Copy link
Member

@MihaZupan MihaZupan commented Dec 4, 2025

Include libunwind/libunwind#931 in the build of the libunwind dependency.

Fixes runtime build errors on 1es-windows-2022-open that are blocking HTTP & SSL stress runs.

Customer Impact

  • Found internally

Our internal HTTP and SSL stress tests are failing to build on the 8.0 branch.
An update of MSVC in the 1es-windows-2022-open image brought updated analyzer rules that now fail the build of dotnet/runtime on Windows.

mempool.c(96): warning C4319: '~': zero extending 'unsigned long' to 'size_t' of greater size

This change adds (size_t) casts in the libunwind dependency, which resolves the new errors.

Regression

  • Yes

Infra update.

Testing

Regular CI is still passing + CI stress runs for HTTP and SSL now build and work again.

Risk

Low.
This is a one-line targeted fix that only adds casts.

@MihaZupan MihaZupan self-assigned this Dec 4, 2025
@MihaZupan
Copy link
Member Author

/azp run runtime-libraries stress-http

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@MihaZupan
Copy link
Member Author

/azp run runtime-libraries stress-ssl

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@MihaZupan MihaZupan marked this pull request as ready for review December 8, 2025 17:03
Copilot AI review requested due to automatic review settings December 8, 2025 17:03
Copy link
Contributor

Copilot AI left a comment

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 backports a fix from upstream libunwind to address C4319 build warnings on Windows that were blocking HTTP & SSL stress runs. The warning occurs with MSVC when performing bitwise complement operations on unsigned long literals followed by masking.

  • Changed the UNW_ALIGN macro to use explicit size_t casts instead of unsigned long literals
  • Updated libunwind version tracking to document the applied upstream PR

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/native/external/libunwind/include/libunwind_i.h Modified UNW_ALIGN macro to use size_t casts for both operands, eliminating C4319 warnings on MSVC
src/native/external/libunwind-version.txt Added reference to upstream PR #931 that provides this fix

@AaronRobinsonMSFT AaronRobinsonMSFT added the Servicing-consider Issue for next servicing release review label Dec 8, 2025
Copy link
Member

@am11 am11 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! 🙂

@steveisok steveisok added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Dec 9, 2025
@steveisok steveisok enabled auto-merge (squash) December 9, 2025 14:18
@steveisok steveisok merged commit c1afd3e into dotnet:release/9.0-staging Dec 9, 2025
171 of 179 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Net Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants