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(3 posts)→
More from coding & agent
- VentureTwins maps the B2A economy: dozens of agent infra and app companies in first series installment — venturetwins · 2026-11-12
- Spinning up containers for 20-line agent tools is backwards: Safescript compiles provable, 50ms-deploy apps — uriwa · 2026-11-12
- Stripe launches claimable sandboxes: frictionless payment integrations for AI agents — jeff_weinstein · 2026-11-12
- Databricks launches autonomous AI coworker Genie: 91% on enterprise tasks with half the tokens — Yuchenj_UW · 2026-11-12
- Reddit asks: how do you pick an LLM for your AI agent — cost, speed, or task fit? — jakingo · 2026-11-12
- Loom founder launches Roma 2.0, a shared to-do list that orchestrates AI agents — thetripathi58 · 2026-11-12