Repository navigation
Closed
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabarea-System.Numericsblocking-outerloopBlocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs
Milestone
Description
Perhaps related to #98964
Starting: System.Runtime.Numerics.Tests (parallel test collections = on, max threads = 2)
./RunTests.sh: line 168: 21 Killed "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Runtime.Numerics.Tests.runtimeconfig.json --depsfile System.Runtime.Numerics.Tests.deps.json xunit.console.dll System.Runtime.Numerics.Tests.dll -xml testResults.xml -nologo -nocolor -trait category=OuterLoop -notrait category=IgnoreForCI -notrait category=failing $RSP_FILE
/root/helix/work/workitem/e
----- end Mon Jul 8 23:40:00 UTC 2024 ----- exit code 137 ----------------------------------------------------------
exit code 137 means SIGKILL Killed eg by kill
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=733224
Build error leg or test failing: System.Runtime.Numerics.Tests.WorkItemExecution
Pull request: #104501
Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": "",
"ErrorPattern": "Killed.+System\\.Runtime\\.Numerics\\.Tests\\.runtimeconfig\\.json.+OuterLoop",
"BuildRetry": false,
"ExcludeConsoleLog": false
}Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=733224
Error message validated: [Killed.+System\.Runtime\.Numerics\.Tests\.runtimeconfig\.json.+OuterLoop]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/9/2024 4:39:02 AM UTC
Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 2 | 14 | 56 |
Reacted by Copilot
Metadata
Metadata
Assignees
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabarea-System.Numericsblocking-outerloopBlocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs
Activity
dotnet-policy-service commentedon Jul 9, 2024
Tagging subscribers to this area: @dotnet/area-system-numerics
See info in area-owners.md if you want to be subscribed.
tannergooding commentedon Aug 8, 2024
There is no dump and the only hint as to why the SIGKILL might have been raised is
This seems like a more general flaky issue and not related to anything in the tests. I've not been able to repro locally so there's not much that can be done without some additional context or a reliable repro
ericstj commentedon Nov 7, 2024
This is the highest-hitting libraries known build issue. Worth a look if you can determine the cause. https://helix.dot.net/BuildAnalysis/KnownIssues @tannergooding @jeffhandley
danmoseley commentedon Mar 24, 2026
Note
This comment was drafted with Copilot assistance.
Investigation
I looked at all 60 builds linked in the known issue report. Here's what the data shows:
Configuration pattern:
release/8.0scheduled outerloop,Release CoreCLR_ReleaseSystem.Runtime.Numerics.TestsFrom the Helix console logs (e.g. this one):
max threads = 2in paralleldmesgis denied, so the kernel OOM killer message can't be confirmed, but 18s + SIGKILL + Docker is strongly consistent with a cgroup memory limit hitWhy this doesn't repro on main: On
main, PR #102874 (May 2024) addedBigInteger.MaxLength, capping allocations. The OuterLoop tests that shift byint.MaxValuewould now throwOverflowExceptioninstead of allocating huge memory. PR #111841 subsequently fixed those tests to use smaller values (1 << 24instead ofint.MaxValue). PR #103423 also disabled parallelization for some threshold tests. None of these changes were backported torelease/8.0.The likely culprit tests on 8.0 are the ones that shift BigInteger by
int.MaxValue / 10bits per iteration (up to 4x), creating values of ~107 MB each:LargeValueLogTests,DoubleExplicitCastFromLargeBigIntegerTests, andGetBitLengthTestswhich shifts byint.MaxValue. With 2 threads, peak memory could easily exceed Docker container limits.Possible fix for 8.0: Backport the test-only changes from #111841 and #103423 to reduce allocation sizes and disable parallelization, without needing the
BigInteger.MaxLengthbehavioral change.Log cgroup memory.events on exit code 137 as dmesg fallback (#126015)
danmoseley commentedon Mar 28, 2026
Fixed by #126011