summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-26 13:11:05 -0300
committerGabriel Schneider <[email protected]>2026-11-26 13:11:05 -0300
commit163c6202017f8389a67d42f1f1037633ca4dfaa1 (patch)
tree420ca766ada568bea31947b17d687b874ead2615 /test
parentc496956f395783085a249a4b1063abb577e4c3c2 (diff)
downloadpardes-163c6202017f8389a67d42f1f1037633ca4dfaa1.tar.gz
pardes-163c6202017f8389a67d42f1f1037633ca4dfaa1.zip
dump, Kind: a plain kind's pane a replica client opens with its own code (dump.plainHere) and then refuses closes what the kind's open made, as Kind.close would (FP's note: plainHere's error path did not close the kind it opened); THE CAUSE: plainHere's two refusals after Kind.reopen succeeded (no block made by the open, or the dumped record not the block's size) returned with only the slot's own errdefer (Slot.free and its destroy), so the kind's state `s.st` (a PDF's MuPDF document, its pictures) stayed open with no slot left to close it, once per refused join of that pane; THE FIX: `errdefer Kind.shut(s)` right after the reopen; `Kind.shut`, the kind's own close under a quiet Call, is the block Kind.close and Kind.fileChanged each wrote out, written once now (both call it); RUN (TEST FIRST): dump.zig "a plain kind's pane a client opens here (plainHere) and then refuses, ..." loads a plain kind that counts its opens and closes, gives plainHere a slot whose record is 5 bytes where the open makes a block of 4, and asks error.KindRefused and as many closes as opens: fails on the change before at dump.zig:1547 (expected 1 close, found 0), passes now; a user could hit it only on a far client joining a session whose PDF pane's record does not fit (a damaged or a version-skewed dump): the session's document then stayed open in the client until it exited; GATES (Debug tui): core-test 1165/1340 (175 skipped: the change before's + this test; the importer's 7 cached); load 1.5 to 1.9
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions