ChatGPT/Codex macOS app continuously leaks zombie subprocesses while idle
What version of the Codex App are you using (From “About Codex” dialog)?
151.0.7922.71
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Darwin 22.6.0 arm64 arm
What issue are you seeing?
The ChatGPT/Codex macOS app continuously accumulates zombie (<defunct>) subprocesses while
idle.
The issue happens from the GUI app, not from the separately installed Codex CLI.
Observed parent process:
```sh
/Applications/ChatGPT.app/Contents/MacOS/ChatGPT
Observed related child process:
/Applications/ChatGPT.app/Contents/Resources/codex -c features.code_mode_host=true app-server
--analytics-default-enabled
Zombie process count increased quickly after launching the app:
- 12 zombies after approximately 27 seconds
- 38 zombies after approximately 1 minute
- In a previous run, it grew from 68 to 286 without user interaction
All zombie processes were <defunct> children of the ChatGPT app parent process.
Example output:
zombies=38
ppid=92090 zombies=38
92090 1 S 12.1 1.9 324928 01:09 /Applications/ChatGPT.app/Contents/MacOS/ChatGPT
The app was idle when the zombie count continued increasing.
What steps can reproduce the bug?
```markdown
- Install or reinstall the ChatGPT/Codex macOS app.
- Launch the app.
- Leave the app idle.
- In Terminal, run:
```sh
ps -axo stat= | awk '$1 ~ /^Z/ {count++} END {print count + 0}'
- Check zombie parent processes:
ps -axo ppid=,stat= | awk '$2 ~ /^Z/ {count[$1]++} END {for (ppid in count) printf "ppid=%s
zombies=%d\n", ppid, count[ppid]}'
- Inspect the ChatGPT/Codex app processes:
ps -axo pid=,ppid=,stat=,%cpu=,%mem=,rss=,etime=,command= | awk '/\/Applications\/ChatGPT.app\//
{print}'
The zombie count increases over time even without interacting with the app.
What is the expected behavior?
``markdown<defunct>`) subprocesses while idle.
The ChatGPT/Codex macOS app should reap child processes correctly and should not accumulate
zombie (
Additional information
Quitting the ChatGPT app clears the zombie processes because the parent process exits.
The Codex CLI remains installed separately and appears unrelated:
```sh
codex --version
codex-cli 0.146.1
The issue reproduced after removing and reinstalling the ChatGPT/Codex GUI app.
Additional information
_No response_
3 Comments
suffering from the exact same issue starting today (august 6th)
+1
anybody can see this bug?it's really serious