summaryrefslogtreecommitdiff
path: root/dev/vaxis_input.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-26 09:21:04 -0300
committerGabriel Schneider <[email protected]>2026-11-26 10:27:04 -0300
commit7911c53d5f08c7d8df3eb59061841daddb1d0e83 (patch)
tree24fb17fb2fb06225c0d9e1525744b4062a5b5ee2 /dev/vaxis_input.zig
parent8959b031dc330b4da21c0e89e0831d6fadbcd757 (diff)
downloadpardes-7911c53d5f08c7d8df3eb59061841daddb1d0e83.tar.gz
pardes-7911c53d5f08c7d8df3eb59061841daddb1d0e83.zip
dump, replica, fuzz: a core that dump.load returns has its chrome, worked out by the load itself, so it draws as it is (the merge M2's dump fuzz at 40,000 join seeds: join seed 8324 died of a general protection fault in draw.zig's render, the debug overlay printing `p.theme().name`, a slice at 0xAAAAAAAAAAAAAAAA); THE CAUSE: the chrome (`theme_chrome`) is local, never dumped (Core.zig's replica `.local`), and dump.load left it undefined for its caller to work out: a replica's join did, right after it (replica.zig `made`, finishThemeInitialization), a restore does in reviveSession; the fuzz's `use` draws the loaded core as it comes, so it drew from an undefined chrome: before L3 only colours (0xAA bytes, drawn unseen), since L3 (tlpklysz: Pardes.theme() is the chrome's old-names view, `ChromeTheme.view`, a LegacyTheme with its `name` slice) a slice too, which the overlay prints once a damaged dump reads `debug` on; THE FIX: `load` works out the chrome before it returns (finishThemeInitialization, one Chrome.of, at a join, never a frame), and the replica's own call after it goes; RUN (TEST FIRST): fuzz.zig pins join seed 8324 beside 19224, 31554 and 6356: on the merge (ytzwsyrm 8959b031dc33) it fails at draw.zig:430 (`General protection exception` in bufPrint), passes now; a user could not hit it: every path that draws a loaded core (a replica's join, a restore) worked out the chrome before its first frame; NEW HOT PATHS: none per key or frame; a dump.load works out one Chrome.of more (the replica's, moved here), and the tape's dump round-trip check (tape.zig) one per check; GATES (tui, this change on the merge): core-test 1162/1336 (174 skipped; the merge's 1155/1329 then had the importer's 7 cached by zig), shell-test 1377/1380 (3 skipped), pane-test 184/185 (1 skipped), behaviour-test 287/287 and --replay 20 seeds of 70 steps, 0 failures, process-test 0 of 149 failed (3 skipped), term-test 17/17, kitty-test 45/45; the gui unit-test 1988/1992 (4 skipped; its one failed step the perf check's BaselineHarnessMismatch, every base's); the dump fuzz at 40,000 join seeds twice and 1,779 image seeds 11/11 (on the merge alone it died at join seed 8324); the soak `replicas -- --clients 5 --rtt 30,80,207` (the pdf addon in): diverged 0, unequal 0, quiet checks 436/0 340/0 546/0, stops not on may_wait 0, the corpus 22 of 22 scenes the same, no leak (the same soak on the merge alone died at seed 0 rtt 30 of the known MuPDF leak, Pick.showKind's documents, F1's: it comes only when a client's picker previews a PDF); load 3.5 to 9.9
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'dev/vaxis_input.zig')
0 files changed, 0 insertions, 0 deletions