Skip to content

ci-fix: transient Windows DLL-init failure (0xc0000142) on 26888924959 (test windows) #2974

Closed as not planned

Description

@worktrunk-bot

Failed run

Run 26888924959 on commit dee85bb (docs(test): document mock-stub stderr response type (#2971)).

Single failing job: test (windows). All other jobs (lint, feature-check, code-coverage, test (linux), test (macos), msrv, the collect affected coverage legs) passed on the same commit.

Failure shape

The Windows test run produced 3040 instances of:

command failed with exit code: 0xc0000142: A dynamic link library (DLL) initialization routine failed. (os error 1114)

The failures are not isolated to one test — they span every test that spawns a child process. The log shows the same 0xc0000142 surfacing through three different call sites:

cargo metadata failed in D:\a\worktrunk\worktrunk: command failed with exit code: 0xc0000142: ...
git worktree add -b feature-current D:\tmp\.tmp97xSxM\repo.feature-current failed: ... 0xc0000142 ...
snapshot assertion for 'list_no_progressive_flag' failed ... - with code 0xc0000142 ...

0xc0000142 is the Windows NTSTATUS STATUS_DLL_INIT_FAILED — the OS aborted a process during DLL initialization before main ran. It is raised at the loader level, not by anything the launched program does. When it fires en masse across git.exe, cargo, and the test/wt/mock-stub binaries simultaneously, the cause is the runner host failing to initialize new processes — the classic symptom of Windows session/desktop-heap exhaustion or memory pressure on the runner, where the loader can no longer map a DLL's init routine into a fresh process.

Why this is transient, not a real regression

  • The parent commit passed Windows CI minutes earlier. Run 26888889853 on c4359588 (the immediately preceding main commit, created 13:45:03Z vs this run's 13:45:38Z) was green, including test (windows).
  • The triggering commit is docs-only. The entire diff of dee85bb is two lines added to a //! doc comment in tests/helpers/mock-stub/src/main.rs (documenting the stderr response type). It cannot change how the OS loader initializes a DLL.
  • The error is loader-level, not program-level. STATUS_DLL_INIT_FAILED is raised by the Windows process loader before the target binary executes. It is indistinguishable across git.exe, cargo, and our own test binaries because none of them is the cause — the host is.
  • It fired wholesale, not deterministically. 3040 occurrences across the suite (every child-process spawn failing) is the shape of a host that has run out of process-creation resources, not a deterministic build error (error[E...], missing target, ambiguous candidates) that would reproduce on every run.
  • No upstream incident, and none needed for this classification — this is a runner-host condition, not a GitHub-wide outage.

Repeat-occurrence check

This 0xc0000142 / STATUS_DLL_INIT_FAILED shape has not appeared in a prior ci-fix issue in the last 7 days. The one recent Windows transient — #2943 (cargo-install silently aborting before stdout flush during Install wt) — is a different mechanism (a node action exiting with no error code, vs. the OS loader rejecting process creation with an explicit NTSTATUS). No escalation to a durable mitigation is warranted on a first occurrence of this shape.

Disposition

No fix PR. Closing immediately per the ci-fix transient-failure path; the maintainer can rerun test (windows) on this commit to clear the red X on main.

Activity

  1. worktrunk-bot commented on Jun 3, 2026

    @worktrunk-bot
    CollaboratorAuthor

    Transient Windows runner process-spawn exhaustion (STATUS_DLL_INIT_FAILED) — closing as diagnosed. Rerun test (windows) to clear the red X.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions