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

Merged
AnastasisKon merged 1 commit from upstream-pr/494 into main 2026-11-28 01:36:31 +00:00
AnastasisKon commented 2026-11-27 22:10:46 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T22:10:46Z.


What this changes

Refs #493.

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 (#392, #474) — 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 #474 is in, so landing this without it is harmless (no line, no change), and the useful pairing is #474 for the line and this for the summary that reads it.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5533748889 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/494). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-27T22:10:46Z. --- ## What this changes Refs #493. `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 (#392, #474) — 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 #474 is in, so landing this without it is harmless (no line, no change), and the useful pairing is #474 for the line and this for the summary that reads it.
Olima34 commented 2026-11-28 01:36:27 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T01:36:27Z.

Review: APPROVED


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 #474 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 (#397 #399 #422 #467 #471 #475 #479 #481 #486 #489 #494 #498 #505 #511). 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!

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:review:6094925333 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/494#pullrequestreview-6094925333). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-28T01:36:27Z. **Review:** APPROVED --- 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 #474 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 (#397 #399 #422 #467 #471 #475 #479 #481 #486 #489 #494 #498 #505 #511). 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!
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS!494
No description provided.