tools: run-summary reports a fatal-signal line as how a run ended (#493) #498

Manually merged
github merged 1 commit from github-bot/gh-494 into main 2026-11-28 01:36:54 +00:00 AGit
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 22:10 UTC · original
AnastasisKon:vibe/run-summary-fatal-signal-4f9c68 → main · +14 −2 · 2 files · 1 commits · merged 2026-11-28 01:36 UTC

What this changes

Refs #497.

run-summary.sh builds how a run ended from the log's unhandled-exception line, its watchdog lines and the shell's exit status. A native fault gives none of those: the title's own code takes the process down and the log gets the shell's Segmentation fault: 11 at best, so a crashed run was summarised as SIGSEGV, or as unknown (no exit line) when the exit status never reached the log.

The host writes victory: fatal signal <n> (code <c>) at address 0x… before it dies (#395, #478) — no timestamp, straight to stderr. So:

  • the ended row (the --compare table) now reads fatal signal 11 (code 1) at 0x… instead of the bare exit status when the log carries the line;
  • -- how it ended prints that line with its time and frame, next to the exception line it already printed;
  • the clean-exit fallback sentence counts a fatal-signal line, so a run killed by one is not described as "killed by --seconds or clean exit".

Nothing else in the summary changes; a log without the line summarises exactly as before, which the existing exact-output expectations in the compare test still pin.

How it was tested

  • tools/macos/run-summary.sh --self-test: the synthetic log gained a fatal-signal line, asserted under "how it ended" (self-test ok).
  • tools/macos/tests/run-summary-compare.sh: a new synthetic fatal.log (# exit code 139 plus the line) asserts the row ended … fatal signal 11 (code 1) at 0x7ff8deadbeef changed (run-summary compare ok).
  • The rest of the macos-scripts job, run the way ci.yml runs it under Bash 3.2: target-directory.sh, console-default.sh, verify-target.sh, verify-msc.sh, msc-check.sh, tester-report.sh, tools/corpus/compare.sh --self-test — all pass.
  • By hand on a log holding the line and exit code 139: -- how it ended prints victory: fatal signal 11 (code 1) at address 0x7ff8deadbeef, (at +0.0s, frame~64).
  • Ran the game: not needed — the logs are synthetic, and the line's format is fixed by the handler in apps/victory/src/main.rs.

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md: none added
  • New diagnostics are behind a VICTORY_* variable and documented: none added — this reads a line the host already writes unconditionally

One ordering note for the maintainer: the ended change only shows itself once #478 is in, so landing this without it is harmless (no line, no change), and the useful pairing is #478 for the line and this for the summary that reads it.

**@⁠AnastasisKon** on GitHub · 2026-11-27 22:10 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/494) `AnastasisKon:vibe/run-summary-fatal-signal-4f9c68` → `main` · +14 −2 · 2 files · 1 commits · merged 2026-11-28 01:36 UTC ## What this changes Refs #497. `run-summary.sh` builds how a run ended from the log's unhandled-exception line, its watchdog lines and the shell's exit status. A native fault gives none of those: the title's own code takes the process down and the log gets the shell's `Segmentation fault: 11` at best, so a crashed run was summarised as `SIGSEGV`, or as `unknown (no exit line)` when the exit status never reached the log. The host writes `victory: fatal signal <n> (code <c>) at address 0x…` before it dies (#395, #478) — no timestamp, straight to stderr. So: - the `ended` row (the `--compare` table) now reads `fatal signal 11 (code 1) at 0x…` instead of the bare exit status when the log carries the line; - `-- how it ended` prints that line with its time and frame, next to the exception line it already printed; - the clean-exit fallback sentence counts a fatal-signal line, so a run killed by one is not described as "killed by --seconds or clean exit". Nothing else in the summary changes; a log without the line summarises exactly as before, which the existing exact-output expectations in the compare test still pin. ## How it was tested - [x] `tools/macos/run-summary.sh --self-test`: the synthetic log gained a fatal-signal line, asserted under "how it ended" (`self-test ok`). - [x] `tools/macos/tests/run-summary-compare.sh`: a new synthetic `fatal.log` (`# exit code 139` plus the line) asserts the row `ended … fatal signal 11 (code 1) at 0x7ff8deadbeef changed` (`run-summary compare ok`). - [x] The rest of the `macos-scripts` job, run the way `ci.yml` runs it under Bash 3.2: `target-directory.sh`, `console-default.sh`, `verify-target.sh`, `verify-msc.sh`, `msc-check.sh`, `tester-report.sh`, `tools/corpus/compare.sh --self-test` — all pass. - [x] By hand on a log holding the line and exit code 139: `-- how it ended` prints `victory: fatal signal 11 (code 1) at address 0x7ff8deadbeef`, `(at +0.0s, frame~64)`. - [ ] Ran the game: not needed — the logs are synthetic, and the line's format is fixed by the handler in `apps/victory/src/main.rs`. ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included - [x] Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md: none added - [x] New diagnostics are behind a `VICTORY_*` variable and documented: none added — this reads a line the host already writes unconditionally One ordering note for the maintainer: the `ended` change only shows itself once #478 is in, so landing this without it is harmless (no line, no change), and the useful pairing is #478 for the line and this for the summary that reads it.
A native fault leaves the log without an unhandled exception: the host writes
"victory: fatal signal <n> (code <c>) at address 0x..." straight to stderr
before it dies (#392, #474), with no timestamp. The summary read the
exception line, the watchdog lines and the exit status, saw none of them, and
reported SIGSEGV or "unknown (no exit line)" for a run whose most precise
line it had just skipped.

The ended row now names the fault instead of the bare exit status, "how it
ended" prints the line with its time and frame, and the clean-exit fallback
counts a fatal-signal line. The self-test and the --compare test both carry a
synthetic line.

Refs #493
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 22:11:31 +00:00
github manually merged commit 196fc558da into main 2026-11-28 01:36:54 +00:00
Author
Owner

@⁠Olima34 on GitHub · 2026-11-28 01:36 UTC · original · approved these changes

Check report (helping the maintainer clear the queue):

  • CI: check and macos-scripts green on the current head.
  • Read: the whole diff. run-summary.sh reports a victory: fatal signal line as how a run ended, in the summary and in the --compare row. Both are covered by the self-test and run-summary-compare.sh. That line only appears once #478 lands (changes requested there). This parses it harmlessly until then.
  • Local check: current main (226645f9) merged with this PR and the other test/docs/tools PRs we're landing in this batch (#401 #403 #426 #471 #475 #479 #483 #485 #490 #493 #498 #502 #509 #515). On it, the victory-gpu (arm64), victory-shader, victory-backend, victory-metal and victory tests pass, as do the macOS script tests (rustup-path.sh, run-summary-compare.sh, run-summary.sh --self-test), Windows clippy (-D warnings) and cargo xtask policy. One victory-gpu run in four failed main's own multi_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately. That test also flakes on main alone, so it isn't from this batch.
  • Not checked: no game run (the maintainer asked us to work on GitHub only).

Thanks @⁠AnastasisKon!

**@⁠Olima34** on GitHub · 2026-11-28 01:36 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/494#pullrequestreview-6094925333) · **approved these changes** Check report (helping the maintainer clear the queue): - **CI:** `check` and `macos-scripts` green on the current head. - **Read:** the whole diff. `run-summary.sh` reports a `victory: fatal signal` line as how a run ended, in the summary and in the `--compare` row. Both are covered by the self-test and `run-summary-compare.sh`. That line only appears once #478 lands (changes requested there). This parses it harmlessly until then. - **Local check:** current main (226645f9) merged with this PR and the other test/docs/tools PRs we're landing in this batch (#401 #403 #426 #471 #475 #479 #483 #485 #490 #493 #498 #502 #509 #515). On it, the `victory-gpu` (arm64), `victory-shader`, `victory-backend`, `victory-metal` and `victory` tests pass, as do the macOS script tests (`rustup-path.sh`, `run-summary-compare.sh`, `run-summary.sh --self-test`), Windows clippy (`-D warnings`) and `cargo xtask policy`. One `victory-gpu` run in four failed main's own `multi_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately`. That test also flakes on main alone, so it isn't from this batch. - **Not checked:** no game run (the maintainer asked us to work on GitHub only). Thanks @⁠AnastasisKon!
This discussion has been locked. Commenting is limited to contributors.
No description provided.