scripts/runtime-dead/runtime-dead.sh.
The script found QEMU by grepping ps and taking the first match. A
qemu-system-x86_64 left over from an earlier boot holds localhost:2222, so the
new boot fails its hostfwd rule and exits within a second — and every later step
then waits on, drives, and finally SIGTERMs the OLD, uninstrumented VM. The run
would produce no profile and no explanation, or worse, a profile from a binary
that was not the one under test.
This is not hypothetical: it happened while the method was being worked out, and
cost a boot to diagnose.
Now refused up front, naming the offending PIDs, because there is no way to tell
which QEMU is ours from ps alone. Also notes why the guest-never-answered path
kills rather than continues.
Verified: preflight runs, discovers the profile runtime, and passes the stale
check with no VM running; shell syntax checks clean.