You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex CLI 0.141.0 crashes with SIGTRAP on Intel macOS when executing tools #29414
Plain no-tool chat works.
Any local shell/tool command crashes Codex with SIGTRAP.
Clean CODEX_HOME reproduces.
Resetting/moving ~/.codex state/session files did not fix it.
Memory pressure was improved before retesting; crash still reproduces.
Proxy/Surge env changes did not change the crash signature.
codesign entitlements show com.apple.security.cs.allow-jit is present.
Do not use skills, docs lookup, web lookup, or repo analysis. Use exactly one local shell command: `pwd`. After the command result, stop.
Observed:
zsh: trace trap codex
Sometimes before the crash:
⚠ Falling back from WebSockets to HTTPS transport. request timed out
codex doctor --json summary:
overallStatus: warning
installation: ok
auth.credentials: ok
config.load: ok
state DB integrity: ok
network.provider_reachability: ok
network.websocket_reachability: warning
summary: Responses WebSocket timed out; HTTPS fallback may still work
notes: handshake timed out
runtime.provenance: running npm on macos-x86_64
Crash report consistently points to V8 isolate initialization during Codex local tool runtime startup:
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: ezraluuu-lhk@ca9d055257
Activity
github-actions commentedon Jun 22, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
exec --dangerously-bypass-approvals-and-sandboxon macOS 15.7.7 x86_64 with V8 SetPermissions SIGTRAP #28893Powered by Codex Action
ezraluuu-lhk commentedon Jun 29, 2026
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/[email protected], and it works on the same machine with the same minimal repro.So the regression range appears to be:
ezraluuu-lhk commentedon Jun 29, 2026
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:
ezraluuu-lhk@ca9d055257