Loader: neutralize the watchdog sentinels, keep its reporting #3935

Open
kotekompotek wants to merge 2 commits from upstream-pr/3935 into main
kotekompotek commented 2026-12-01 10:30:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-12-01T10:30:37Z.


Summary

  • The title's stall watchdog terminates the process two ways once armed: a "heartbeat frozen" wait that ends in a deliberate mov [0],0/int3 after thirty one-second polls, and a crash-context writer its scan invokes on a bucket aged over 300 s that ends in mov [0],0x4d8bd421.
  • On our host the armed phase can land before any worker thread claims its bucket, so the watchdog ends slow boots; and a streaming stall past the budget is worth more alive than dead — the reporter's t:\ crash-context log still gets written either way.
  • prepare() now NOPs all three sentinels, gated on the exact byte patterns so other builds are untouched. The watchdog keeps reporting and resumes its loops instead of dying.

Test plan

  • cargo test -p victory-loader prepare — 5 tests green
  • Boot run survives past the previous ~2.5 min and ~20 min kill points; stall buckets stay readable for inspection

AI-assisted. Tested on GTX 1050 2GB, Windows 11.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5583837566 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3935). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-12-01T10:30:37Z. --- ## Summary - The title's stall watchdog terminates the process two ways once armed: a "heartbeat frozen" wait that ends in a deliberate `mov [0],0`/`int3` after thirty one-second polls, and a crash-context writer its scan invokes on a bucket aged over 300 s that ends in `mov [0],0x4d8bd421`. - On our host the armed phase can land before any worker thread claims its bucket, so the watchdog ends slow boots; and a streaming stall past the budget is worth more alive than dead — the reporter's `t:\` crash-context log still gets written either way. - `prepare()` now NOPs all three sentinels, gated on the exact byte patterns so other builds are untouched. The watchdog keeps reporting and resumes its loops instead of dying. #### Test plan - [x] `cargo test -p victory-loader prepare` — 5 tests green - [x] Boot run survives past the previous ~2.5 min and ~20 min kill points; stall buckets stay readable for inspection AI-assisted. Tested on GTX 1050 2GB, Windows 11.
kotekompotek commented 2026-12-01 17:49:48 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-12-01T17:49:48Z.


Update: a further kill path found in run psox20 — after the armed phase fires with no workers registered, the wait-state's reporter callback (crash-context writer) traps at image+0x1e6c29f: int3 after a NULL helper result, before its own sentinel. The two call rax reporter invocations are now NOP'd too; the watchdog loop just resumes.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7319914604 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3935#issuecomment-7319914604). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-12-01T17:49:48Z. --- Update: a further kill path found in run psox20 — after the armed phase fires with no workers registered, the wait-state's reporter callback (crash-context writer) traps at image+0x1e6c29f: int3 after a NULL helper result, before its own sentinel. The two call rax reporter invocations are now NOP'd too; the watchdog loop just resumes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3935:upstream-pr/3935'
git switch 'upstream-pr/3935'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3935'
git switch 'upstream-pr/3935'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3935'
git switch 'upstream-pr/3935'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3935'
git switch 'main'
git merge --squash 'upstream-pr/3935'
git switch 'main'
git merge --ff-only 'upstream-pr/3935'
git switch 'main'
git merge 'upstream-pr/3935'
git push origin 'main'
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
Marvisak/VIctory!3935
No description provided.