Repository navigation
Description
Summary
On Linux/KVM (a3s-box v3.2.5 / Box revision c9a45455), killing the a3s-box run client while a VM record is starting leaves a durable, unremovable starting record. The record has no usable shim/PID lifecycle and remains after a host restart.
Severity: P1 (lifecycle state cannot converge or be cleaned up)
Acceptance case: F01 startup client-death fault injection
Local tracking: N3
Expected
After a client exits, the lifecycle must converge to a terminal failed/stopped state. stop, rm -f, and system-prune --force must be able to remove the record and all associated resources. No record may remain permanently in starting.
Actual
The controlled fault injection reproduces the stuck state:
case=n3-1 observed_state=starting
case=n3-1 after_5s=starting
case=n3-1 PRODUCT_FAIL N3: starting record remains
...
starting_records=3
Across the three independent runs, all 9/9 injected client deaths left starting records. The earlier cross-reboot check shows the same records surviving restart; stop, kill, rm -f, and system-prune --force reject the lifecycle boundary.
Repro
export A3S_HOME="$(mktemp -d /var/tmp/a3s-n3.XXXXXX)"
export A3S_BOX=/path/to/Box/src/target/release/a3s-box
export A3S_BOX_TEST_ALPINE_TAR=/path/to/evidence/images/alpine-oci.tar
a3s-box load -i "$A3S_BOX_TEST_ALPINE_TAR" -t alpine:defect-n3
a3s-box run --name n3-1 alpine:defect-n3 -- /bin/sh -c 'sleep 300' &
# Wait until `a3s-box ps -a` reports n3-1 as starting, then:
kill -9 $!
sleep 5
a3s-box ps -a
# Actual: n3-1 remains starting.
a3s-box rm -f n3-1
# Actual: lifecycle boundary rejects removal.Repro rate: 9/9 cases across three independent runs on 2026-09-14; persistence across restart was also observed in the original F01 retest.
Environment
| Item | Value |
|---|---|
| OS | Ubuntu 24.04 x86_64 |
| Kernel | Linux 6.17 |
| Hypervisor | KVM / MicroVM |
| Binary | a3s-box 3.2.5 release |
| Commit | c9a45455ff59d53921e3abedffdfefd49eb0afa9 |
| Binary SHA-256 | b9783edb4881bbbcd968c10f539c746ac54bf5f05930309588cbe21db9eaa4b9 |
| Lane | Linux user lane; separate A3S_HOME per run |
Evidence
evidence/w10/followup/reconfirm/batch1/N3-1/confirm.logevidence/w10/followup/reconfirm/batch1/N3-2/confirm.logevidence/w10/followup/reconfirm/batch1/N3-3/confirm.logevidence/w10/followup/f/f01-repro.logevidence/w10/followup/f/f01-stuck-starting.log
Regression coverage
Inject client death before record creation, after record creation but before shim creation, and after shim creation. Repeat each phase at least 3 times, restart the manager/host, then verify rm -f and system-prune --force leave no Box directory, shim, socket, mount, or listener.
Activity
[-][linux] lifecycle: client death during VM startup leaves unremovable starting record[/-][+][linux][P1] lifecycle: client death during VM startup leaves unremovable starting record[/+]fix(cli): force-rm/kill/stop abandoned Creating/Starting claims (#372) (