Repository navigation
[release/11.0] Fix HighNumberedFd_NotLeakedAfterLoweringRLimit on 32-bit musl - #137407
Merged
Merged
Conversation
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/area-system-diagnostics-process |
adamsitnik
approved these changes
Nov 12, 2026
adamsitnik
left a comment
Member
There was a problem hiding this comment.
Test-only change, has been in main for a while and works well: LGTM.
Member
|
Failures are unrelated:
|
Member
|
/ba-g unrelated failures as mentioned above |
This was referenced Nov 13, 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.
Backport of #135867 to release/11.0. The main fix was contributed by @pcshrosbree.
/cc @krwq @pcshrosbree
Customer Impact
The ProcessHandles descriptor-leak test fails during setup on Alpine ARM32, adding an unrelated failure to validation of .NET 11 servicing changes. The test declares
rlim_tfields asnuint, but musl uses 64-bit fields even on 32-bit platforms. This makes its libcgetrlimit/setrlimitdeclarations incorrect.This backport addresses #136327 by using the existing
System.Nativeresource-limit interop, which converts to and from the platform's native structure. It retains the descriptor-leak check rather than disabling ARM32 coverage. Only the test and its project file change; there is no shipped runtime behavior, public API, package or reference-assembly change.Regression
Test-only regression introduced by #135753, which added
HighNumberedFd_NotLeakedAfterLoweringRLimit. The test's assumption thatrlim_tis pointer-sized does not hold on musl ARM32. This is not a regression in shipped runtime behavior.Testing
The existing regression test is corrected; no test is disabled or removed.
Validation reported on the merged main PR #135867:
System.Native. This was a focused console repro, not the full Process test on Alpine ARM32 hardware.Backport validation:
Build linux_musl-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibsjob passed, but the overall runtime pipeline failed. Build Analysis is also red; these failures have not been classified in this description update.Risk
Low. The diff is limited to
ProcessHandlesTests.Unix.csandSystem.Diagnostics.Process.Tests.csproj. It replaces test-local libc resource-limit declarations with existing shared interop and preserves the test's leak assertion and the returned hard limit. No shipped product code or dependencies change.The main PR's validation provides evidence that the test still catches descriptor leaks, but the backport's failing CI and Alpine ARM32 test result still need resolution before treating validation as complete.
IMPORTANT: If this backport is for a servicing release, please verify that:
release/X.0-staging, notrelease/X.0.release/X.0(no-stagingsuffix).This PR targets
release/11.0.Package authoring no longer needed in .NET 9
IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.
Fixes #136327
Note
This PR description was prepared with GitHub Copilot.