Codex CLI 0.141.0 crashes with SIGTRAP on Intel macOS when executing tools
Open 💬 3 comments Opened Jun 22, 2026 by thaafox
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of the Codex CLI is running?
0.141.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.5
What platform is your computer?
macOS 12.7.6 (Intel x86_64)
What terminal emulator and version are you using (if applicable)?
Apple Terminal 445.1
Codex doctor report
{
"overallStatus": "ok",
"codexVersion": "0.141.0",
"checks": {
"runtime.provenance": { "status": "ok", "install method": "standalone", "platform": "macos-x86_64" },
"auth.credentials": { "status": "ok", "stored ChatGPT tokens": "true" },
"config.load": { "status": "ok", "feature flags enabled": "29" },
"network.websocket_reachability": { "status": "warn", "handshake result": "HTTP 401 Unauthorized" },
"sandbox.helpers": { "status": "ok" }
}
}
What issue are you seeing?
Codex CLI 0.141.0 crashes with zsh: trace trap codex (SIGTRAP / EXC_BREAKPOINT) on Intel macOS when the agent executes tools.
Observed behavior:
- TUI starts and accepts input
- Short read-only prompts succeed
- Crash happens when tool execution begins (e.g., shell commands, file writes)
codex doctorreports installation and runtime as healthy- Crash signature consistently shows
EXC_BREAKPOINT/SIGTRAP/Trace/BPT trap: 5
Steps to reproduce:
- Install Codex CLI 0.141.0 on Intel macOS (standalone installer)
- Run
codex - Ask a prompt that requires tool execution (e.g., create or edit a file)
- Process aborts with
zsh: trace trap codex
Additional context:
- Reproduces with both the standalone installer and npm install
- Reproduces outside VS Code and in a clean terminal
- Reproduces after resetting
~/.codex - 0.140.0 does not exhibit this crash on the same hardware/OS combination
- Looks related to V8 isolate initialization in tool execution on x86_64
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I’m seeing what looks like the same issue on an Intel Mac.
Environment:
Behavior:
Minimal repro:
Prompt inside Codex:
Observed:
Sometimes before the crash:
codex doctor --json summary:
Crash report consistently points to V8 isolate initialization during Codex local tool runtime startup:
More complete crashed thread from one report:
This happens outside VS Code too, directly in the CLI. VS Code appears affected because it uses the same app-server/tool-runtime path.
I have not yet verified whether 0.140.0 works on my machine, but 0.141.0, 0.142.3, and 0.142.4 all reproduce the crash.
Update: I tested
@openai/codex@0.140.0, and it works on the same machine with the same minimal repro.So the regression range appears to be:
Confirmed the fix: add com.apple.security.cs.allow-unsigned-executable-memory
alongside the existing allow-jit entitlement in .github/scripts/macos-signing/
codex.entitlements.plist.
This prevents the Intel macOS V8 isolate initialization SIGTRAP. Patch:
https://github.com/ezraluuu-lhk/codex/commit/ca9d055257