Files
reims-vgpu/scripts
Anees Iqbal ff8f5915ce 🐛 runtime-dead drove a guest whose app had no window, and swallowed the failure
`scripts/runtime-dead/`.

Ran this for §5 of the guest-memory plan — measure `m2v_cache`, `surface_cache`
and `gva_view` rather than inspect them — and it failed twice. One of the two
causes is fixed here; the other is recorded with what has been ruled out.

**Fixed: the drive never started.** SSH answering is not the guest being ready.
The boot reverts to a snapshot, so `sshd` listens within seconds while the
window server is still restoring sessions and Safari has no window. The probe
reads that window's frame first, so it exited in about a second with

    window-drag-probe: could not read Safari's window frame (pos '' size '')

which is not the probe's "the window never moved" refusal — that refusal is the
whole reason this script trusts the probe — but a failure to start at all.
`|| true` swallowed it, the boot was stopped seconds after reaching the desktop,
and the only thing that reported a problem was the all-zero guard ten minutes
later. The script now waits for the app to present a window before driving, and
makes both that timeout and a probe failure fatal where they happen. Verified:
the rerun drove 29 seconds of real compositing where the first run drove none.

**Not fixed: the boot's own profile is zero bytes.** The end guard refuses the
report, correctly — the run is genuinely unmeasured. Recorded in the README as
known-broken with four things ruled out, so the next attempt does not re-cover
them: the profile runtime *is* linked and working (the boot script's four probe
QEMUs each wrote a full 4 310 352-byte table on the same run); `vm/boot-x86.sh`'s
`SIGTERM`/`sleep 2`/`SIGKILL` fuse never fired, since its own `killing qemu
pid=` line is in neither `boot.log`; the boot was driven; and the probe bug
above was not the cause, because fixing it changed nothing. What is left is
QEMU's `SIGTERM` path reaching exit without running `atexit`, or the toolchain
(this host is LLVM 22; the baseline predates it).

The README already says a zero here is a question and not a verdict. It now also
says that the tool's *silence* is not a reading either — which matters more,
because an unmeasured run and a clean one look the same to someone who only
reads the exit code.

Verified: `bash -n` clean. Two live instrumented boots, the second driven.

Not verified: §5 remains unmeasured. This commit makes the instrument fail
honestly and sooner; it does not make it produce a reading.
2026-08-07 16:17:32 +03:00
..