Skip to content

Windows WHPX: a3s-box wait prints 0 after kill while inspect ExitCode is 137 #256

Closed

Description

@ZhiXiao-Lin

Summary

On Windows WHPX (a3s-box 3.2.5), after a3s-box kill terminates a detached box, inspect correctly reports exit code 137, but a3s-box wait prints 0 on stdout.

This breaks any automation that treats wait as the source of truth for workload termination status (CI scripts, supervisors, compose-like wrappers).

Environment

  • a3s-box 3.2.5, VM backend: whpx

Repro

a3s-box run -d --name wait-kill-demo alpine:3.20 -- sleep 300
# in another terminal / process:
a3s-box wait wait-kill-demo
# meanwhile:
a3s-box kill wait-kill-demo
a3s-box inspect wait-kill-demo
a3s-box rm -f wait-kill-demo

Observed (2026-09-07 WHPX dogfood)

Expected

wait must surface the same terminal exit code as inspect / ps for the waited box (here 137 after kill), and the wait process exit status should be consistent with documented CLI semantics for non-zero workload exits.

First-principles test case

WIN-POS-18 / WIN-LIFE-wait-kill:

  1. detached long sleep
  2. background wait
  3. kill
  4. assert wait stdout == 137 (or documented signal mapping) and matches inspect.State.ExitCode

Activity

  1. added
    bug
    area/runtime
    priority/medium
    on Sep 7, 2026
  2. ZhiXiao-Lin commented on Sep 7, 2026

    @ZhiXiao-Lin
    Author

    Matrix row WIN-POS-28 in #257. Related stop/kill force WARN: #254. Parent: #252.

  3. added a commit that references this issue on Sep 7, 2026
    7c262d4
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

    area/runtimebugpriority/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions