tools: run-summary.sh should report a fatal-signal line as how a run ended #493

Open
opened 2026-11-27 22:10:27 +00:00 by AnastasisKon · 4 comments
AnastasisKon commented 2026-11-27 22:10:27 +00:00 (Migrated from github.com)
Contributor

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


What

tools/macos/run-summary.sh summarises how a run ended from the log's unhandled-exception line, its watchdog lines and the shell's exit status. A native fault has none of those: the title's own code takes the process down, the log gets Segmentation fault: 11 from the shell at best, and the summary says SIGSEGV — or unknown (no exit line) when the exit status never reached the log.

The host now writes victory: fatal signal <n> (code <c>) at address 0x… before it dies by the fault (#392, #474), with no timestamp, straight to stderr. The summary ignores it, so the most precise line a crashed run produces is the one a reader has to find by hand.

What this changes

  • the ended row names the fault — fatal signal 11 (code 1) at 0x… — in place of the bare SIGSEGV when the log carries the line;
  • -- how it ended prints the line with its time and frame, next to the unhandled-exception line it already prints;
  • the fallback sentence ("killed by --seconds or clean exit") counts a fatal-signal line, so a run that died of one is not described as clean.

How it was tested

  • run-summary.sh --self-test: a synthetic log now carries a fatal-signal line, asserted in "how it ended".
  • tools/macos/tests/run-summary-compare.sh: a synthetic fatal.log (exit code 139 plus the line) asserts the ended row reads fatal signal 11 (code 1) at 0x7ff8deadbeef.
  • The other seven scripts' tests still pass, run the way ci.yml's macos-scripts job runs them.
  • Game run: not needed — the logs are synthetic, made up for the tests.
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6655252209 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/493). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-27T22:10:27Z. --- ## What `tools/macos/run-summary.sh` summarises how a run ended from the log's unhandled-exception line, its watchdog lines and the shell's exit status. A native fault has none of those: the title's own code takes the process down, the log gets `Segmentation fault: 11` from the shell at best, and the summary says `SIGSEGV` — or `unknown (no exit line)` when the exit status never reached the log. The host now writes `victory: fatal signal <n> (code <c>) at address 0x…` before it dies by the fault (#392, #474), with no timestamp, straight to stderr. The summary ignores it, so the most precise line a crashed run produces is the one a reader has to find by hand. ## What this changes - the `ended` row names the fault — `fatal signal 11 (code 1) at 0x…` — in place of the bare `SIGSEGV` when the log carries the line; - `-- how it ended` prints the line with its time and frame, next to the unhandled-exception line it already prints; - the fallback sentence ("killed by --seconds or clean exit") counts a fatal-signal line, so a run that died of one is not described as clean. ## How it was tested - `run-summary.sh --self-test`: a synthetic log now carries a fatal-signal line, asserted in "how it ended". - `tools/macos/tests/run-summary-compare.sh`: a synthetic `fatal.log` (exit code 139 plus the line) asserts the `ended` row reads `fatal signal 11 (code 1) at 0x7ff8deadbeef`. - The other seven scripts' tests still pass, run the way `ci.yml`'s `macos-scripts` job runs them. - Game run: not needed — the logs are synthetic, made up for the tests.
AnastasisKon commented 2026-11-27 22:10:29 +00:00 (Migrated from github.com)
Author
Contributor

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


/claim

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7229093103 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/493#issuecomment-7229093103). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-27T22:10:29Z. --- /claim
github-actions[bot] commented 2026-11-27 22:10:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T22:10:39Z.


Claimed by @AnastasisKon. Open a draft pull request with Refs #493 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7229095501 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/493#issuecomment-7229095501). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T22:10:39Z. --- Claimed by @AnastasisKon. Open a draft pull request with `Refs #493` in its description within 24 hours, or the claim expires.
AnastasisKon commented 2026-11-28 12:45:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:45:09Z.


/release - done without a PR: on branch vibe/run-summary-fatal-signal-4f9c68, in my fork's main. tools/macos/run-summary.sh now keeps the host's victory: fatal signal line as how the run ended and prints it with the time and frame it happened at, which is what the exit status alone cannot say (#392).

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7239441931 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/493#issuecomment-7239441931). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T12:45:09Z. --- /release - done without a PR: on branch `vibe/run-summary-fatal-signal-4f9c68`, in my fork's `main`. `tools/macos/run-summary.sh` now keeps the host's `victory: fatal signal` line as how the run ended and prints it with the time and frame it happened at, which is what the exit status alone cannot say (#392).
github-actions[bot] commented 2026-11-28 12:45:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T12:45:17Z.


Released. This issue is free to claim.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7239443489 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/493#issuecomment-7239443489). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T12:45:17Z. --- Released. This issue is free to claim.
Sign in to join this conversation.
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#493
No description provided.