Memory leak persists on tip build 1.3.0-main+17da13840 after PageList fix #10269
-
Issue DescriptionSummaryAfter updating to the tip build that includes the PageList memory leak fix (PR #10251), I'm still experiencing runaway memory growth with the same VM_ALLOCATE pattern. Fresh process started after updating, using Claude Code. EnvironmentConfirming Fresh Process on Tip BuildBinary was updated at 08:11, process started at 19:11 — confirming this is a fresh process running the tip build, not a carryover from the previous install. ReproductionFresh Ghostty process started after updating to tip (PID 2827, launched Jan 10 at 7:11 PM) Heavy Claude Code usage over ~9.5 hours Memory grew to 154GB Diagnosticsvmmap summary272,399 VM_ALLOCATE regions totaling 154GB. Region size analysisKey finding: 254,742 regions are exactly 592K and fully swapped out. The uniform size suggests a single allocation pattern is leaking. Sample regionsRegions show as generic VM_ALLOCATE — I don't see the application_specific_1 tag that was added in the fix. Not sure if that's expected in vmmap output or not. Observations
Questions
Expected BehaviorMemory usage should remain stable during extended usage sessions. With the PageList memory leak fix (PR #10251), VM_ALLOCATE regions should not accumulate indefinitely. Actual BehaviorMemory grows to 154GB over ~9.5 hours of heavy usage. 272,399 VM_ALLOCATE regions accumulate, with 254,742 of them being exactly 592K in size and fully swapped out. This matches the pattern from the original PageList leak reports. Reproduction Steps
Ghostty LogsNo response Ghostty VersionOS Version InformationmacOS 26.2 (25C56) - ARM64 (Linux only) Display ServerNone (Linux only) Desktop Environment/Window ManagerNo response Minimal Ghostty Configurationtheme = "Gitlab Dark"
font-family = "JetBrainsMono Nerd Font Mono"
font-size = 14
bold-is-bright = true
cursor-style = block
cursor-style-blink = false
window-padding-x = 10
window-padding-y = 10
background-opacity = 0.95
background-blur = 12
window-vsync = true
scrollback-limit = 20000
mouse-scroll-multiplier = 1.0
shell-integration = detect
macos-titlebar-style = tabs
macos-option-as-alt = true
window-save-state = never
confirm-close-surface = true
keybind = cmd+shift+c=copy_to_clipboard
keybind = cmd+shift+v=paste_from_clipboard
keybind = cmd+shift+k=clear_screenAdditional Relevant ConfigurationNo response I acknowledge that:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Update: Root cause identified and PR submittedI've identified the root cause of this leak and submitted a fix: #10270 The IssuePR #10251 fixed non-standard page leaks during scrollback pruning, but a similar leak existed in the This is particularly common with emoji-heavy and hyperlink-rich output (like Claude Code), where The FixThe fix follows the same pattern as PR #10251: when replacing a standard page with a non-standard page during This should resolve the 254,742 leaked 592K regions observed after 9.5 hours of usage. |
Beta Was this translation helpful? Give feedback.
-
|
There's a shitload of slop in here. I'm going to close this and request you do some more analysis and reopen a discussion with more details. It would help to see |
Beta Was this translation helpful? Give feedback.
There's a shitload of slop in here. I'm going to close this and request you do some more analysis and reopen a discussion with more details. It would help to see
footprintresults (That'll show VM tags) and to try to narrow down how you triggered this more. There is one known memory leak #10258 this might be too, so read that and compare and note the differences there (i.e. does the memory free with window close? if so, its a different leak). Use your brain a bit and report back, or we'll wait for other reports. Thank you!