AI Agent Uncovers ~14-Year-Old Memory Leak in libuv's macOS fsevents Path
steipete · x · 2026-09-23
After ChatGPT kept crashing on macOS 27, developer steipete's AI agent Astra traced the issue to a 14-year-old libuv bug: repeatedly adding/removing macOS filesystem watches leaks the temporary path list when rebuilding the shared FSEventStream — successful rebuilds skip cleanup while the error path wrongly assumes a NULL-callback CFArray frees its strings and the original C buffer. PR #5283 releases all allocations on every exit from uvfseventsreschedule with no API/ABI changes; Bun issue #29935 independently confirmed the same leak.
Related event: AI agent traces ChatGPT crashes to 14-year-old libuv bug(2 posts)→
More from coding & agent
- Claude Code v2.1.280+ lets you switch Opus 5.5 effort mid-session without breaking prompt cache — kimmonismus · 2026-09-23
- Sentry founder David Cramer finds Claude Code's new sidebar confusing vs Codex — zeeg · 2026-09-23
- Mid-session effort switching on Opus 5.5 preserves prompt cache in Claude Code v2.1.280+ — lydiahallie · 2026-09-23
- fable-advisor v6: open-source Claude Code plugin teams up Opus 5.5, Fable 5.1, GPT-6 Sol and Luna — daniel_mac8 · 2026-09-23
- Open-Source fable-advisor: Fable 5.1 Architect Orchestrating GPT-6 and Opus — daniel_mac8 · 2026-09-23
- GPT-6 Sol vs Grok 4.7: one prompt, one HTML file, three Star Wars worlds each — rohanpaul_ai · 2026-09-23