ChatGPT Desktop Linux bug: empty SIGCHLD handler leaves child processes unreaped
axusnetworks · ghdev · 2026-09-27
A detailed root-cause analysis of openai/codex issue #48554 shows ChatGPT Desktop 26.924.x on Linux installs an empty SIGCHLD handler in the Electron main process, replacing libuv's handler. Since libuv installs its handler only once, no child process is ever reaped afterwards, causing zombie (Z-state) children (bash, git, tar, codex) to accumulate.
Resulting symptoms:
- "Failed to load shell env ... Timed out after 5000ms" on every start (manual probe takes 0.2s)
- False "Git is unavailable" errors despite git working
- Local threads stuck after metadataready; new messages queued but threads never start
A bpftrace probe confirms SIGCHLD is delivered to the main thread with no wait4/waitid following. The author argues this explains issues #48419, #48397, #48225, and #48417. Build 26.917 is unaffected; both bundle libuv 1.52.1, so the Electron runtime archive changed between builds.
More from coding & agent
- Baseten's Guide: Evaluate Open Models for Coding Agents on Your Own PRs — baseten · 2026-11-16
- Google Research open-sources PaperOrchestra, a multi-agent framework for writing AI papers — google-research · 2026-11-16
- ffmpeg-skill gives coding agents local video editing via 42 FFmpeg tools and MCP — kajisho5 · 2026-11-16
- Agents Now Reply to Slack Messages on Their Own, Resolving a Prod Incident Ghost-to-Ghost — iamrobotbear · 2026-11-16
- Engineer's Interview Prep Method: Use Claude to Find Which Answers Undersell Your AI Work — brandon_galang · 2026-11-16
- DeepSeek open-sources its app frontend "chat-demo", already at 3.9k stars — NielsRogge · 2026-11-16