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

Open
opened 2026-11-27 22:11:30 +00:00 by github-bot · 4 comments
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 22:10 UTC · original

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 (#395, #478), 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** on GitHub · 2026-11-27 22:10 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/493) ## 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 (#395, #478), 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 22:11:30 +00:00
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 22:10 UTC · original

/claim

**@⁠AnastasisKon** on GitHub · 2026-11-27 22:10 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/493#issuecomment-7229093103) /claim
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-27 22:10 UTC · original

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

**@⁠github-actions[bot]** on GitHub · 2026-11-27 22:10 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/493#issuecomment-7229095501) Claimed by @⁠AnastasisKon. Open a draft pull request with `Refs #493` in its description within 24 hours, or the claim expires.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 12:45 UTC · original

/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 (#395).

**@⁠AnastasisKon** on GitHub · 2026-11-28 12:45 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/493#issuecomment-7239441931) /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 (#395).
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 12:45 UTC · original

Released. This issue is free to claim.

**@⁠github-actions[bot]** on GitHub · 2026-11-28 12:45 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/493#issuecomment-7239443489) Released. This issue is free to claim.
This discussion has been locked. Commenting is limited to contributors.
No description provided.