summaryrefslogtreecommitdiff
path: root/docs/next-daemon.md
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 21:04:02 -0300
committerGabriel Schneider <[email protected]>2026-10-30 21:28:49 -0300
commite6a114eed043dd1ca50be1cab912662fa9150fda (patch)
tree9a141f1f652807031f98f5f7a943cc0003db812b /docs/next-daemon.md
parent4de480393606fa1f680a4fe84a2507679016efc1 (diff)
downloadpardes-e6a114eed043dd1ca50be1cab912662fa9150fda.tar.gz
pardes-e6a114eed043dd1ca50be1cab912662fa9150fda.zip
dump: a closed terminal brought back on a screen-state replica gets its emulator on the C heap, as terminal.create makes one (terminal.emulatorGpa): loadPane named no `.terminal` allocator, so its emulator was the rollback epoch's, and its screen replica's blobs, made with State.gpa, were freed with the C heap's behind the epoch at a client's end and again by it (H21: `double free or corruption` in Epoch.deinit at a hangup, `free(): invalid pointer` at a rejoin), and a rollback freed what a delta under a held copy made of them
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'docs/next-daemon.md')
-rw-r--r--docs/next-daemon.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/next-daemon.md b/docs/next-daemon.md
index b1ee51d5..6dfa799c 100644
--- a/docs/next-daemon.md
+++ b/docs/next-daemon.md
@@ -4354,3 +4354,24 @@ Not done, and why:
- The window's present is its frame (a software present in the test, up
to a frame): a prediction is drawn in the same pass as its key, so it
cannot come sooner than the window's own frame.
+
+After the line, the hunt's H21 (a client's normal end aborted):
+- **A closed terminal brought back put its emulator on the rollback
+ epoch.** Both clients still alive at a box soak's end died at their
+ hangup with `double free or corruption (!prev)` in `Epoch.deinit`; a
+ local soak at 207 ms did it in 2.5 min, `free(): invalid pointer` in a
+ terminal's screen replica's teardown at a rejoin. A terminal closed and
+ brought back (Panes, `Look @p<n>`) is loaded by `dump.loadPane`, which
+ named no `.terminal` allocator, so on a screen-state replica its
+ emulator was made with the core's, the epoch's, against `State.gpa`'s
+ rule. Its screen replica's blobs (`apply`, with `State.gpa`) were the
+ epoch's then, freed with the C heap's at the end behind its back, and
+ freed again by the epoch; a delta under a held copy made them born in
+ it, and a rollback freed them, and the emulator's pages, from under it.
+ - Fix: `terminal.emulatorGpa`, `create`'s rule, is `loadPane`'s
+ `.terminal` too.
+ - Test: replica.zig's closed terminal brought back on a screen-state
+ replica, its State not the epoch's (failed before). The local soak at
+ 207 ms, ReleaseSafe (before, on lppumkvm, both its clients aborted):
+ 2.5 min, both end 0; 4 min at seed 32, four clients, none aborts (its
+ one breach, a window's panes gone from its view, is not this one).