Skip to content

windows-aarch64: the HTTPS fetch helper connects but reads no response (zlib.net, pcre2) on the release runner #2922

Closed

Description

@ehartford

Rehearsal run 41372423302, job "Verify and package windows-aarch64", step Release UAT (the first time that lane reached it). :release-checks fetches the pinned corpus tarballs through build/https_fetch.w (std.http over std.tls, compiled by the pinned cross seed seed-windows-aarch64), and both fetches failed the same way:

error: zlib-download: could not fetch zlib-1.3.2.tar.gz (pinned sha256 bb329a0a…) from its source:
  https://zlib.net/fossils/zlib-1.3.2.tar.gz: connected, but no complete response in 5 attempts (each gives up after 30 s of silence)
error: pcre2-download: could not fetch pcre2-10.47.tar.gz (pinned sha256 c08ae238…) from its source:

The runner's own curl fetched the seed and the SDK from GitHub moments earlier, and the same helper fetched both tarballs in 3.4 s on the linux-x86_64 and darwin jobs of the same run and on win10 (x86_64) in every local leg. So the TCP connection opens and our TLS/HTTP client on arm64 Windows never completes a response: a handshake that never finishes, or a receive that never returns. Candidates: an arm64-Windows-specific codegen or runtime fault in std.tls's cipher or record layer (the engine is our own With code), or the cross-seed-built runtime's socket receive path on that target.

Also in that job: error: missing or empty compiler embedding object: C:/a/with/with/out/bootstrap-lib/embedded_objects.o, then "build runner compile failed … actions fall back to comptime evaluation by the driver" — the seed-world bootstrap-lib on windows-aarch64 lacks the embedding object, so every action runs under the comptime evaluator there (slow, and a separate defect).

Blocks D180 for windows-aarch64: the lane cannot pass :release-uat until the fetch works or the tarballs reach the runner another way that is still our own code. First step: a test-channel diagnostic step in the windows-aarch64 job that runs the helper with TLS tracing against zlib.net and github.com and uploads the capture.

Activity

  1. added
    bug
    on Nov 2, 2026
  2. ehartford commented on Nov 2, 2026

    @ehartford
    ContributorAuthor

    Not arm-specific: rehearsal 4 (run 41381450485) windows-x86_64 job, Release UAT, same two fetches, same "connected, but no complete response in 5 attempts" — against zlib.net and against github.com's release host. The same helper fetches zlib.net in seconds on win10 (x86_64, our VM) with the v0.16.0.5 release compiler, and on every Linux and darwin runner. So the stall is specific to GitHub's Windows runners (Server images on Azure), both architectures, and to our std.net/std.tls path there. Rehearsal 7 (run 41395933232) runs the test-channel diagnostic step on both Windows jobs with WITH_TLS_TRACE=1; its artifacts say at which record the handshake stops.

  3. ehartford commented on Nov 2, 2026

    @ehartford
    ContributorAuthor

    Root cause, from rehearsal 41395933232's fetch-diagnostics on both Windows runners (identical on x86_64 and arm64): the handshake completes every time and the failure is peer verification failed for zlib.net and release-assets.githubusercontent.com, while github.com verifies and the crypto known answers pass. Windows seeds its trust store lazily (a root arrives from Windows Update the first time CryptoAPI builds a chain through it); our verifier enumerates the store itself and never asked, so a fresh runner lacks every root it has not met. win10 verified all three because its store had cached those roots from earlier use. Fix in PR windows-roots-autoupdate: a chain the store cannot complete is built once by CryptoAPI (which fetches the root), the roots are reloaded, and our verifier decides again; WITH_TLS_TRACE now prints the root count and which check failed.

  4. ehartford commented on Nov 2, 2026

    @ehartford
    ContributorAuthor

    Rehearsal 8 (run 41402357934, with #2926) refines the cause: the trace reads 512 trust roots loaded on both Windows runners — exactly the loader's cap. Windows's ROOT view (user, machine and the auto-updated AuthRoot) holds more than 512 certificates on a release runner; the loader stopped at 512 and silently skipped the rest, so every chain whose root sat past the cut was "untrusted" (zlib.net, GitHub's asset host) while a root inside the first 512 verified (github.com). win10's smaller store fit under the cap. Asking CryptoAPI to complete the chain (#2926) changed nothing because the root was already in the store, just not loaded. Fix: TLS_ROOTS_MAX 4096 in 8 MiB (PEM bundles up to 16 MiB), and a loud line when a store exceeds it (branch tls-roots-capacity).

  5. ehartford commented on Nov 2, 2026

    @ehartford
    ContributorAuthor

    Fixed in v0.16.0.8: the real cause was std.tls's 512-root cap (#2928), which the Windows runners' ROOT store exceeds; the lanes carry the fix through seed nightly-20261102-local-1-365c20085d2b (#2931). windows-aarch64 is published on v0.16.0.8 with its SDK from the cross leg (#2933), and the tag's Verify jobs ran on the new seed.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions