Renderer: ghostty-web crash on behemoth/emoji/binary input, upstream fix #31
Closed
opened 2026-10-06 15:42:33 +00:00 by kayg
·
15 comments
No Branch/Tag specified
main
j470b-server-mesh-rejoin
mesh-compat-382
j444b-d381-key-wins-flood
j461b-macos-utun-reader-thread
j475b-remove-host-motion
fix-reconnect-new-link
j481-d380
dev
j479-mesh-soak
fix/j476-host-facts
j475-motion-pill-split
j470-mac-node-join
root-upgrade-d376
j474-review-merge
latency-targets-120hz
nightly-suite-shards
gotatun-pin-j469
macos-utun-reader-thread
fix-flood-echo-stall
wip/j416
motion-fast-ease-out
mesh-addhost-j259
takeover-close-terminals-d368
kbd-instant-followups
fix-trust-key-double-click
nightly-suite-partial-report
appwin-icons-j207
rusqlite-slice1
swipe-content-first-d374
mesh-mtu-381
addhost-instant-open
glass-contrast-d365-mock
glass-contrast-d365
signout-followups-442
fix-startup-toast-red
research-gotatun-matrix-j317
themes-sync-j304
fix-load-flakes
fix-nix-zig-patch
fix-compute01-browser-baseline
ratchet-size-baseline-419
predict-auto-d130
revoke-coverage-d367
nightly-suite-queue-timeout
nightly-browser-suite
fix-rustsec-2026-0459
fonts-ioskeley-obel
log-retention-d375
fix-kbd-no-anim-427
fix-dev-red-specs-2
takeover-proof-305-j205
wip/j410-server-pump
ui-consistency-d372
fix-osc52-clipboard
libghostty-vt-1.0
forget-retired-host-d369
j404-merge-426
fix-setup-lock-race
fix-touch-select-426
revoke-access-report-ui
fix-predictive-echo-specs
fix-selinux-agent-exec
wip/j395-checkpoint2
wip/j395
j391-review-scratch
ui-consistency-j195-deferred-rebased
fix-rustc-paths-421
decisions-wording-341
fix-install-suite-red
fix-dev-rtt-specs
fix-pending-removal-align
fix-privileged-skip
fix-install-suite-404
review-j368
mesh-dns-j254
revoke-access-report-d356b
revoke-privilege-round5
fix-removal-confirm
review-j360
gotatun-rotation-367
deps-refresh-340
review-j354
review-J351
review-j350
addhost-takeover-d359
revoke-report-items-347
revoke-end-sessions-d362
review-j348
size-mesh-ssh-346
size-trim-337
revoke-access-diff-d356
j259-pre-rebase-b06c5a6
j305-ended-at-start-spec
addhost-sudo-consent
fix-layout-real-specs-411
fix-shell-open-411
fix-console-hosts-373
fix-shell-exit
fuzz-host-name-353
fix-host-details-410
macos-filter-j197
research-gotatun-tricks
revoke-p3-j216l
stale-state-pill
revoke-followups-j216k
revoke-progress-j216e
backup/macos01-20261106/lume/j197
backup/macos01-20261106/lume/appwin-icons-j207-stash0
backup/macos01-20261106/claude/stash-0
backup/macos01-20261106/claude/stash-1
backup/macos01-20261106/claude/J80-macos-s1
backup/macos01-20261106/claude/J80
backup/macos01-20261106/claude/J80-slice1-20261102
backup/macos01-20261106/claude/J16b-appwin-on-dev
backup/macos01-20261106/claude/appwin-launch-idle-146
backup/macos01-20261106/claude/J80-s1-run
wip/j259
trust-285-p3c
runtime-lock-j216f
mesh-ssh-p3-j175
tun-proof-p3b
trust-285-p3
terminal-polish-j271
tun-proof-p3
ssh-install-flakes-j216i
fuzz-fixes-j264
trust-285-a
trust-285-b
restart-oversized-fixture-j198
backup/macos01-20261106/lume/appwin-icons-j207
restart-bound-j216h
up-preflight-p3-j198
backup/macos01-20261106/lume/j251
up-preflight-j198
wip/up-preflight-j198-j245-p2
wip/up-preflight-j198-j245-p1
agent-fsync-offloop-j196
wip/up-preflight-j198-j245
settings-offscreen-j231
wip/up-preflight-j198-j226-inspection
wip/j103f
themes-j206
wip/up-preflight-j198-j226
flakes-j216c
backup/macos01-20261106/claude/j197
flakes-j216b
backup/macos01-20261106/claude/j197-red
wip/up-preflight-j198-review
flakes-j216
backup/macos01-20261106/claude/appwin-icons-j207
engineering-j208b
appwin-mock-j209
toast-stack-j165
engineering-j208
decisions-d351
decisions-d350
decisions-d349
appearance-presets-mock-j129
decisions-d348
docs-audit-spec
doc-coverage-baseline-raise
decisions-d347
decisions-d346b
decisions-d346
j88h-profile
ui-consistency-j195-deferred
ui-consistency-j195
engineering-practices-j194
preferred-login-ui-j166
signin-pools-263-j174
macos-node-265-s1
decisions-d345
decisions-d344
proxy-cgroup-j164
verify-quick-fuzz-329
proxy-start-io-j168
timing-flakes-j163
up-263-s1
mcp-events-j147
verify-quick-fuzz-j158
proxy-p3-j159
agent-resource-j157-detect
wip/j103d-final
remote-cancel-hang-j155
proxy-traefik-281-j62d
j149-verify-quick
proxy-traefik-281-j62b
j150-drop-unnamed
wip/j79d-red-r4
wip/j103d-d332
rootless-toast-j142
wip/j103d-head
wip/j103d
j125c-mcp
macos-build-j136
backup/macos01-20261106/claude/j136
wip/j79d-red-cli
wip/j79d-red-server
j121-link-liveness
j118c-tracer-failures
wip/j79c-head
release-desktop-j131
j124c-signed-macos
wip/j79c-red-p3
wip/j79c-red-p23
wip/j79c-red-p22
merge-j128-check
perf-deferred-j128
sidebar-toggle-260
j127-shortcut-changed-dot
j125-mcp
j118-tracer-failures
j126-account-summary
settings-sections-mock-j92
j120-pinch-lock
sidebar-292
backup/macos01-20261106/claude/j120
taste-2026-11-03
row-actions-242-215
backup/macos01-20261106/claude/stash-0-untracked
backup/macos01-20261106/claude/J80-265-s1-run
backup/macos01-20261106/claude/J80-macos-s1-20261102
j112-canvas-commands
ui-no-overshoot-scroll
fix-recovery-restart
backup/macos01-20261106/claude/stash-1-untracked
taste-2026-11-02
size-baseline-ratchet
machine-cards-structure-j108
j109-boot-copy-mockups
fix-dev-red
wip/up-263-s1
j95b-settings-rows
proxy-traefik-281
j95-option-rows
docs-human-j91
docs-keys-palette
fix-flood-1013-270-j38d
mesh-ssh-s1
mesh-ssh-s0
addhost-d291-tunnel
test-stability-load
mesh-relay-220
repro-296
shim-thp-off-24
mesh-pins-258-v2
mesh-dns
signin-d311-merged
docs-pages
ui-size-283
fix-ui-batch-specs
wip/j12b-edge-update
gate-on-arm
fix-rename-sync-293
trust-285-j60b
fix-focus-ring-clip
integ-ui-1101
edge-update-v2
signin-d311
taste-2026-11-01
layout-per-tab-250
ui-approved-splitopt-224
ui-approved-splitopt-224-on-dev
icon-text-centre-282
ui-approved-189-212-216
research-reverse-proxy
transfer-budget-320
review-mesh-pins-258-r2
sidebar-pill-259
review-mesh-relay-220
wip/j12-edge-update-v2
nix-package
status-crash-loop-237
fix-dev-test-failures
fix-fixture-socket-path
wip/mesh-relay-220-pre-dev-advance-rebase
fix-canvas-side-clip
research-head-to-head
frosted-real-256
review-mesh-pins-258
wip/mesh-relay-220-pre-final-rebase
review-layout-per-tab-250-r2
broad-suite-triage
nix-devshell
review-status-crash-loop-237-r3
wip/nix-devshell-pre-p3
taste-frosted-real
wip/code-serve-demo-2026-10-30
wip/code-serve-glass-2026-10-30
wip/code-serve-clusters-2026-10-30
wip/code-merge-release94-dev-2026-10-30
wip/rproxy-delta-scratch-2026-10-30
wip/stale-note-257-staged-2026-10-30
wip/d241-size-staged-2026-10-30
review-broad-suite-207
wip/mesh-pins-258-pre-split
wip/mesh-relay-220-pre-rebase
mesh-measure-220
plan-211-update
review-edge-autoupdate-r3
perf24-reconnect
review-stale-note-r2
release-prod-live
d241-shell-marker
review-mesh-pins-server-258
review-revocation-r3
review-setup-token-r2
review-sync-journal-r3
wip/review-mesh-pins-258-prune-review-1995fee46
frosted-scroll-256
sync-journal-r3
revocation-per-account-wip
review-tokio-asyncfd-0386
review-sync-p3s
wip/stash-8by64-stash0-2026-10-30
mesh-drag-r2
setup-token-data-wip
release-9-4
auth-busy-1013
mesh-view-overlap
sync-p3s
review-auth-busy-wake
review-readd-r8-wip
mesh-drag-bounds
audit-auth-93
app-windows-stream-start
review-authority-cap-r3
app-windows-r7-measure
readd-minimal-r6
readd-minimal-r5
app-windows-r7-soak
readd-minimal-r4
app-windows-r7
app-windows-r6
readd-minimal-r3
readd-minimal-r2
readd-minimal
merge-release8-dev
review-busy-page-liveness-r2
review-busy-page-liveness
mesh-view-trim
review-authority-read-retry-r2
review-remove-uninstall-r2
release-retry-reattach
release-retry
review-remove-uninstall
review-authority-read-retry
app-windows-ship
mesh-autoswitch-p2
mesh-ssh
mesh-relay
mesh-macos-node
screen-and-control
session-labels
review-real-logins-r5
review-real-logins-r4
review-real-logins-r3
shim-memory-r2
review-real-logins-r2
shim-memory
shadow-addhost-instant
shadow-real-logins
shadow-same-session-flood
shadow-prod-perf-fix
hosts-from-server
app-windows-real
app-windows-transport
release-prod-6w
mesh-policy-verify
quiet-close-toast
dev-merge-r4
review-mesh-agent-transport
review-app-windows-transport
settings-roundtrip
review-release-pipeline-r4
mesh-agent-transport
ended-strip-fix
review-audit-ca-update-d244
settings-rows
phone-width
signout-clear
fix-restart-tests
dev-merge-rp
signer-hardening
review-audit-ca-update
terminal-fidelity
review-audit-ca-update-wip
mesh-integrate
review-mesh-agent-transport-515d3712
review-mesh-dataplane-feec1988
mesh-dataplane
signout
research-canvas-node
wip/review-renderer-cost
wip/review-terminal-fidelity
padlock-glyph
review-release-pipeline-2e95b689
phone-polish
sidebar-polish
inbox-generic
review-mesh-dataplane-378d4055
prod-batch
ui-inbox
ui-ca-unlock
ui-machine-sections
review-mesh-dataplane-a5f744fb
tls-session-prod
session-bounds-prod
fix-dead-session
session-bounds
tls-session
palette-polish
shortcuts-d222
research-appmeta
phone-gutter
ui-centre-button
wip/ui-centre-button
wip/tls-session
review-addhost-breakit
ui-platform
renderer-cost
remote-agents
mesh-api
ssh-bootstrap
prod-hotfix2
prod-fixes
review-remote-agents
review-mesh-dataplane
session-life
research-browser
review-mesh-api
research-capture
review-mesh-api-round3
review-mesh-api-round1
gate-stability
review-gate-stability
review-relay-direct
review-mesh-api-findings
proto-sessions
font-picker
proto-addhost
proto-windows
mesh-core
latency-gate
research-bsd
research-discovery
keytray-mods
mock-core
ui-tweaks
fix-motion-sel
fix-motion
integrate2
fix-robust
t-web
t-server
vt-ghostty
fix-snap-echo
t-web-auth
review-vt2
t-agent
lane-protocol
lane-shim
lane-auth
s1-base
s1-contracts
s1-workspace
No results found.
No labels
launch-qa
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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.
Dependencies
No dependencies set
Reference
kayg/infraternal#31
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #13 and #18. ghostty-web 0.4 crashes the Chromium renderer on behemoth, emoji or binary input.
Upstream leads:
Job: ghostty-crash (Codex GPT 6 Luna Max). Minimal repro, then test 0.5.0-rc.0 and PR #142.
Next: if it is a library bug, prepare an upstream PR. That needs
gh auth login, and the owner sees the PR before it is opened.ghostty-crash finished (spike-renderer
ddd446d):Zplus a combining acute accent. The trap is inside ghostty-web 0.4.0's WASM VT write path; no DOM or canvas is needed. It is not an OOM.The previous run did not test 0.5.0-rc or PR #142. Follow-up job ghostty-wasm: build those, plus a WASM matching native 0.2.2, and measure each. The upstream draft stays local until the owner approves it.
Starting ghostty-wasm follow-up on branch spike-renderer at base SHA
ddd446d9bd. I will test ghostty-web 0.5.0-rc / PR #182, PR #142 if applicable, and a WASM rebuild matching native libghostty-vt 0.2.2; all source/build scratch stays under /home/kayg/.cache/codex-scratch/ghostty-wasm/.Source pins: ghostty-web PR #182 head 5f0c6b7720e5ac241208afe7a2335981ded1b486; PR #142 head 0bcc54683620cf63c71a286c0b5ae2c1cdd6894a (fix commit 19ce9f3678c5ce549840251a175368c9f664ab2a); current upstream main 1858a5947767a3e1c9e98dbf53b2ff87fedb2aab. PR #142's two commits cherry-pick cleanly onto the #182 tree. Native libghostty-vt 0.2.2 pins Ghostty source a887df42c56f6de86c0fe6da9c4eeca37931e083.
Variant A preliminary finding: PR #182 build at 5f0c6b7720e5ac241208afe7a2335981ded1b486 completed minimal-combining-5679.bin (5,679 B) in both Node and Chromium with no crash. Node harness: 7.02 ms total; Chromium: 7 ms write time, renderer peak 135,988 KiB. Full reproducer/fixture matrix is still running.
Variant A behemoth finding: Node completed 50,000,000 B in 4,307.7 ms (11.61 MB/s), ending at 795,447,296 B RSS with 1,051,525,120 B WASM memory. Chromium reached 48,168,960 B before the existing 120 s probe timeout and peaked at 867,752 KiB renderer RSS. The default 16 KiB progress callback produces thousands of Playwright callbacks; I am rerunning full-fixture Chromium cases with the harness's supported 1 MiB checkpoint so writeMs and peak RSS can complete without that observer delay.
Variant A mixed.txt finding: both harnesses completed 20,000,000 B without a crash. Node: 5.64 MB/s, peak RSS 332,656,640 B, WASM memory 360,448,000 B. Chromium: 9.49 MB/s of summed terminal write time (2,107.1 ms), peak renderer RSS 430,932 KiB; wall time was 64,791 ms due to the 16 KiB progress callback overhead.
Variant A replay complete (PR #182 tree 5f0c6b7720e5ac241208afe7a2335981ded1b486): all 7 saved reproducers and all 3 full fixtures completed in Node and Chromium, with no crash. Full-fixture Node / Chromium throughput and peak RSS: behemoth 10.61 MB/s / 794,644,480 B; 20.76 MB/s / 881,932 KiB. Mixed 10.42 MB/s / 334,544,896 B; 12.68 MB/s / 415,092 KiB. Binary 11.52 MB/s / 118,829,056 B; 1.15 MB/s / 227,496 KiB. Chromium uses the supported 1 MiB progress checkpoint; rates use summed synchronous write time. Bundle/API comparison remains pending.
Variant B replay complete: #142 commits 19ce9f3678c5ce549840251a175368c9f664ab2a and 0bcc54683620cf63c71a286c0b5ae2c1cdd6894a applied to #182; all 7 reproducers and 3 full fixtures completed in both harnesses without a crash. Chromium full-fixture results: behemoth 22.35 MB/s, 891,216 KiB peak RSS; mixed 14.43 MB/s, 416,508 KiB; binary 1.12 MB/s, 229,680 KiB. Node completed all; full rates 9.92 / 11.31 / 13.36 MB/s and peak RSS 798,105,600 / 335,708,160 / 119,840,768 B. No consistent change versus #182; this input does not exercise #142's free/reallocate path.
Variant C source test: current ghostty-web main 1858a5947767a3e1c9e98dbf53b2ff87fedb2aab with Ghostty a887df42c56f6de86c0fe6da9c4eeca37931e083 (the libghostty-vt 0.2.2 source pin). The current web API patch does not apply to a887; its existing C API differs. The native-style WASM build succeeds at 675,323 B, and current JS rebuilt with that binary is 1,037,325 B raw / 303,980 B gzip, but its wrapper requires missing ghostty_terminal_new_with_config. All 7 reproducers and 3 fixtures fail before input in Node and Chromium with that API error; no crash/throughput/RSS result is valid for C.
Fix attribution control: Ghostty-web parent of #180 (24b3c807bb8a1b5760bfc4684101297fd3be6b75; same Ghostty submodule 5714ed07a1012573261b7b7e3ed2add9c1504496) reproduces minimal-combining-5679.bin in Node with bytesWritten=0 and RuntimeError: memory access out of bounds; Chromium likewise crashes before progress at 130,776 KiB renderer RSS. Evidence: /home/kayg/.cache/codex-scratch/ghostty-wasm/results/pre-180-node-minimal.json and pre-180-chromium-minimal.json. PR #182 head 5f0c6b7720e5ac241208afe7a2335981ded1b486 includes bec9e162b137478fb032d7edf60a2f29a6e5f04b (#180, ‘clear scrolled row cells in wasm patch’) and passes the same reproducer in Node and Chromium. This ablation identifies #180 as the fixing change in the tested range; PR #142 is not required.
Results step committed as
846c188. A (#182) and B (#182 + #142) each passed all 7 reproducers and 3 full fixtures in Node and Chromium. Full-fixture Chromium rates A behemoth/mixed/binary: 20.76/12.68/1.15 MB/s at 861/405/222 MiB sampled renderer RSS; B: 22.35/14.43/1.12 MB/s at 870/407/224 MiB. The pre-#180 control reproduces the 5,679-byte Node OOB and Chromium crash; bec9e16 (#180) is the fix in the tested range. C builds the a887 core (675,323 B) but the current wrapper errors on missing ghostty_terminal_new_with_config before writes. Updated RESULTS.md and changed the local draft to a release request; nothing filed upstream.Finished on spike-renderer at head
846c18870f. RESULTS.md records the three source variants, performance/RSS, bundle sizes, API impact, and the #180 control; UPSTREAM-ISSUE.md is now a local release request. A/B pass all 10 inputs in Node and Chromium; C cannot initialize because the native-pinned core ABI lacks ghostty_terminal_new_with_config. No upstream issue was filed. Scratch builds were removed.Gate output (verbatim): zsh:1: no such file or directory: scripts/verify (exit 127). The spike branch has no scripts/verify, docs/PROCESS.md, or reviewer checklist. passed.
ghostty-wasm finished (spike-renderer
846c188):ghostty_terminal_new_with_config).0.5.0-rc in Chromium: behemoth 20.8 MB/s at 861 MiB renderer RSS, mixed 12.7 MB/s at 405 MiB, binary 1.15 MB/s at 222 MiB. The memory is high: check the scrollback configuration before any budget call.
The upstream draft is now a release request (local only, not filed). Owner decision pending: pin a source build at bec9e162+ now, or wait for a release.
Owner: no upstream release request. The draft (spike-renderer UPSTREAM-ISSUE.md) stays unsent. We build from source (#36) and switch to the official release when it ships. The gh auth action is no longer needed for this.
Closed by the orchestrator during the 2026-10-28 handover (#254), on the owner's request to close finished issues. Evidence: Superseded by #36/D109: owner chose no upstream release request and a pinned source build, shipped in
845c293. Reopen if anything is still missing.kayg referenced this issue2026-10-28 17:53:54 +00:00