Skip to content

[Windows x86] LargeUriAndHeaders_Works fails with OutOfMemoryException #137274

Closed

Description

@ViveliDuCh

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1666519

Build error leg or test failing: System.Net.Http.Functional.Tests.WorkItemExecution - LargeUriAndHeaders_Works

Pull request: #136818

Error Message

{
  "ErrorMessage": [
    "SocketsHttpHandler_HttpClientHandlerTest.LargeUriAndHeaders_Works [FAIL]",
    "System.OutOfMemoryException : Exception of type 'System.OutOfMemoryException' was thrown."
  ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Failure Details

System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandlerTest.LargeUriAndHeaders_Works [FAIL]
  System.AggregateException : One or more errors occurred. (Exception of type 'System.OutOfMemoryException' was thrown.) (Exception of type 'System.OutOfMemoryException' was thrown.)
  ---- System.OutOfMemoryException : Exception of type 'System.OutOfMemoryException' was thrown.
  ---- System.OutOfMemoryException : Exception of type 'System.OutOfMemoryException' was thrown.
  Stack Trace:
    /_/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs(2357,0): at System.Net.Http.Functional.Tests.HttpClientHandlerTest.LargeUriAndHeaders_Works()
    ----- Inner Stack Trace #1 (System.OutOfMemoryException) -----
    /_/src/libraries/Common/src/System/Net/ArrayBuffer.cs(135,0): at System.Net.ArrayBuffer.EnsureAvailableSpaceCore(Int32 byteCount)
    /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs(432,0): at System.Net.Http.HttpConnection.WriteHeaderCollection(HttpHeaders headers, String cookiesFromContainer)

Failing configuration:

net10.0-windows-Release-x86-coreclr_release-Windows.Server2025.Amd64.Open

The test sends a 10,000,000-character URI path, header name, and header value through a loopback server, which exhausts the 32-bit address space. Related platform issues: #133729 (macOS timeout), #135268 (HTTP/3), and #124487 (Android). None of them covers this Windows x86 OOM.

Console log:
https://helixr1107v0xd1eu3ibi6ka.blob.core.windows.net/dotnet-runtime-refs-pull-136818-merge-5b465007dffe49b196/System.Net.Http.Functional.Tests/1/console.7648543e.log?helixlogtype=result

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1666519
Error message validated: [SocketsHttpHandler_HttpClientHandlerTest.LargeUriAndHeaders_Works [FAIL] System.OutOfMemoryException : Exception of type 'System.OutOfMemoryException' was thrown.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/10/2026 7:30:06 PM UTC

Report

Build Repository Test Pull Request
1666519 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandlerTest.LargeUriAndHeaders_Works #136818

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Nov 10, 2026
  2. MihuBot commented on Nov 10, 2026

    @MihuBot

    cc: @dotnet/ncl

  3. added
    untriaged
    on Nov 10, 2026
  4. added this to the 12.0.0 milestone on Nov 20, 2026
  5. removed
    untriaged
    on Nov 20, 2026
  6. added a commit that references this issue on Nov 23, 2026
    a209566
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build Errorarch-x86area-System.Net.Httpblocking-clean-cios-windows

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions