Skip to content

Windows: behav_project_overflow_modes child link exits -2 with no diagnostic #797

Closed

Description

@ropoctl

Restated (2026-10-25 triage)

Windows: behav_project_overflow_modes fails because the child project build's link exits with status -2 and no diagnostic ("linker out\release\bin\with.exe exited with status -2 without diagnostics"). The other 17 panic/abort tests this issue named pass on Windows.


Original report

18 behavior tests that assert a panic (//! expect-exit: 134) observe exit code 1 on native Windows CI. Sync panics route through with_panic -> _exit(134) (rt/panic_runtime.w), so 134 is expected; the observed 1 points to a Windows-specific exit-code or panic-path bug, not a test error. Tracked behind //! skip-windows on the green-battery-windows branch; un-skip PR will root-cause to the exact line and restore each test.
Tests: behav_array_index_bounds_panics, behav_array_index_negative_panics, behav_array_index_store_bounds_panics, behav_checked_overflow_panic, behav_expect_err_panics, behav_expect_none_panics, behav_project_overflow_modes, behav_slice_index_bounds_panics, behav_slice_range_bounds_panics, behav_slotmap_get_disjoint_equal_panics, behav_split_at_bounds_panics, behav_str_to_cstr_interior_nul_panics, behav_unsigned_checked_overflow_panic, behav_unsigned_underflow_panic_message, behav_unwrap_err_panics, behav_unwrap_none_panics, behav_vec_get_disjoint_equal_panics, behav_vec_index_bounds_panics

Activity

  1. changed the title [-]Windows: panic/abort behavior tests exit 1 instead of 134[/-] [+]Windows: behav_project_overflow_modes child link exits -2 with no diagnostic[/+] on Oct 25, 2026
  2. ehartford commented on Oct 25, 2026

    @ehartford
    Contributor

    Triage 2026-10-25, Windows x86_64 (win10, with.exe built from main c88f3ee): 17 of the 18 tests now pass on Windows. One still fails, and not with the original symptom: behav_project_overflow_modes dies in its child build with a silent linker failure.

    FAILED [overflow wrap mode]: rc=1
    stderr:
    error: linker `out\release\bin\with.exe` exited with status -2 without diagnostics
    error: build failed
    

    It passes on macOS. pre-release: a Windows project build that fails with no diagnostic; the child's link command and its status -2 are the first thing to capture.

  3. ehartford commented on Oct 26, 2026

    @ehartford
    Contributor

    Fix campaign, 2026-10-25: does not reproduce on current main. Closing.

    On win10, a release with.exe built from main c5fdc17 (full src/main.exe build with the pinned seed nightly-20261025-local-1-c88f3eeff0bc), run from the checkout:

    > out/release/bin/with.exe test test/behavior/behav_project_overflow_modes.w
    ok
    ok: 1 test passed in test/behavior/behav_project_overflow_modes.w
    

    The test has no skip directive, so it ran: the child project builds in wrap, saturate and trap mode all link on Windows now. The triage symptom ("linker out\release\bin\with.exe exited with status -2 without diagnostics") came from a with.exe built from c88f3ee. The other 17 tests the issue named passed at triage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions