Repository navigation
Description
Condition(s) not met: "IsWindows"
Unhandled exception. Xunit.Sdk.EqualException: Assert.Equal() Failure: Values differ
Expected: 0
Actual: -1
at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/EqualityAsserts.cs:line 102
at Xunit.Assert.Equal[T](T expected, T actual) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/EqualityAsserts.cs:line 36
at System.Diagnostics.Tests.ProcessHandlesTests.<>c.<HighNumberedFd_NotLeakedAfterLoweringRLimit>b__31_0() in /_/src/libraries/System.Diagnostics.Process/tests/ProcessHandlesTests.Unix.cs:line 86
at System.Reflection.IntrinsicInvokeHelper.Instance_Void_0(IntPtr fn, Object obj, IntPtr* _, RuntimeType __) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/IntrinsicInvokeHelper.cs:line 837
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1635241
Build error leg or test failing: Wasm.Build.Tests.Blazor.MiscTests.MultiClientHostedBuildAndPublish
Pull request: #135772
Error Message
DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": "HighNumberedFd_NotLeakedAfterLoweringRLimit",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1635241
Error message validated: [HighNumberedFd_NotLeakedAfterLoweringRLimit]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 10/14/2026 9:07:55 PM UTC
Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 78 | 79 | 79 |
Activity
jkotas commentedon Oct 14, 2026
@adamsitnik New test introduced by #135753
dotnet-policy-service commentedon Oct 14, 2026
Tagging subscribers to this area: @dotnet/area-system-diagnostics-process
See info in area-owners.md if you want to be subscribed.
pcshrosbree commentedon Oct 14, 2026
I suspect the test's own
rlimitP/Invoke declarations. On #135772 and #135774 the only failing configuration for this test was Alpine.324.Arm32, withsetrlimitreturning -1 at line 86. That is in the test's setup, before the restricted grandchild is started.The test declares
RLimitas twonuintfields, which is 8 bytes on arm32. musl definesrlim_tasunsigned long longon every architecture (include/sys/resource.h), so itsstruct rlimitis 16 bytes.getrlimittherefore writes past the end oflimit, andsetrlimitreads its hard limit from the 8 bytes afternewLimit, which the test doesn't set. That could explain the -1, but the log has no errno and I haven't run this on Alpine arm32.A possible fix is to include the existing
src/libraries/Common/src/Interop/Unix/System.Native/Interop.ResourceLimits.csin the test project, as the System.IO.FileSystem and FileSystem.Watcher test projects already do, and useInterop.Sys.GetRLimitandInterop.Sys.SetRLimit. TheirRLimithas twoulongfields, which System.Native converts to and from the platform'sstruct rlimit. Three details change with it:Interop.Sys.RlimitResources.RLIMIT_NOFILE. That is a PAL value (9), which System.Native maps to Linux's 7, so the test's constant 7 can't be passed as is.Interop.Sys.RLIM_INFINITY(ulong.MaxValue), because System.Native reports infinity that way on 32-bit as well.CurrentLimitand keeps the returnedMaximumLimit.Capturing
Marshal.GetLastPInvokeError()straight after a failed call and including it in the assertion message would help identify the failure if it persists.Note
This comment was prepared with AI assistance (Anthropic Claude, checked by OpenAI Codex) at my request. I reviewed it before posting.
adamsitnik commentedon Oct 15, 2026
@pcshrosbree would you like to send a PR with a fix?
pcshrosbree commentedon Oct 15, 2026
Sure, I've opened #135867.
Fix HighNumberedFd_NotLeakedAfterLoweringRLimit on 32-bit musl (#135867)