Codex CLI 0.141.0 crashes with trace trap / SIGTRAP on macOS 15.7.7 Intel x86_64.
Open 💬 3 comments Opened Jun 21, 2026 by marefica
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
Codex CLI 0.141.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.5
What platform is your computer?
macOS 15.7.7 Intel x86_64
What terminal emulator and version are you using (if applicable)?
Terminal Version 2.14 (455.1)
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1782047514s since unix epoch",
"overallStatus": "ok",
"codexVersion": "0.141.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "/Users/mariofiallo/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/Users/mariofiallo/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/Users/mariofiallo/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/Users/mariofiallo/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/Users/mariofiallo/.codex/app-server-daemon/app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 0
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": "/Users/mariofiallo/.codex/auth.json",
"auth storage mode": "File",
"stored API key": "false",
"stored ChatGPT tokens": "true",
"stored agent identity": "false",
"stored auth mode": "chatgpt"
},
"remediation": null,
"durationMs": 0
},
"config.load": {
"id": "config.load",
"category": "config",
"status": "ok",
"summary": "config loaded",
"details": {
"CODEX_HOME": "/Users/mariofiallo/.codex",
"config.toml": "/Users/mariofiallo/.codex/config.toml",
"config.toml parse": "ok",
"cwd": "/Users/mariofiallo/codex-test-clean",
"enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, hooks, enable_request_compression, multi_agent, apps, tool_suggest, plugins, in_app_browser, browser_use, browser_use_external, computer_use, plugin_sharing, image_generation, skill_mcp_dependency_install, mentions_v2, steer, guardian_approval, goals, collaboration_modes, tool_call_mcp_elicitation, personality, fast_mode, tui_app_server, remote_compaction_v2, workspace_dependencies",
"feature flag overrides": "none",
"feature flags enabled": "29",
"log dir": "/Users/mariofiallo/.codex/log",
"mcp servers": "0",
"model": "<default>",
"model provider": "openai",
"sqlite home": "/Users/mariofiallo/.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.50.1 (Apple Git-155)",
"details": {
"PATH git #1": "/usr/bin/git",
"PATH git entries": "1",
"git build options": "git version 2.50.1 (Apple Git-155); cpu: x86_64; no commit associated with this build; sizeof-long: 8; sizeof-size_t: 8; shell-path: /bin/sh; feature: fsmonitor--daemon; libcurl: 8.7.1; zlib: 1.2.12; SHA-1: SHA1_DC; SHA-256: SHA256_BLK",
"git exec path": "/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core",
"git version": "git version 2.50.1 (Apple Git-155)",
"repo detected": "false",
"selected git": "/usr/bin/git"
},
"remediation": null,
"durationMs": 36
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/usr/local/bin/codex",
"current executable": "/usr/local/bin/codex",
"install context": "brew",
"managed by bun": "false",
"managed by npm": "false",
"managed package root": "not set"
},
"remediation": null,
"durationMs": 8
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "no MCP servers configured",
"details": {},
"remediation": null,
"durationMs": 0
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"proxy env vars": "none"
},
"remediation": null,
"durationMs": 0
},
"network.provider_reachability": {
"id": "network.provider_reachability",
"category": "reachability",
"status": "ok",
"summary": "active provider endpoints are reachable over HTTP",
"details": {
"ChatGPT base URL": "https://chatgpt.com/backend-api/ reachable (HTTP 403)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 413
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 2 IPv6, first IPv6",
"auth mode": "chatgpt",
"connect timeout": "15000 ms",
"endpoint": "wss://chatgpt.com/backend-api/<redacted>",
"handshake result": "HTTP 101 Switching Protocols",
"model provider": "openai",
"models etag present": "true",
"provider name": "OpenAI",
"proxy env vars": "none",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 1313
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running brew on macos-x86_64",
"details": {
"commit": "unknown",
"current executable": "/usr/local/bin/codex",
"install method": "brew",
"platform": "macos-x86_64",
"version": "0.141.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (system)",
"details": {
"search command": "rg",
"search command readiness": "ripgrep 15.1.0",
"search provider": "system"
},
"remediation": null,
"durationMs": 16
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "OnRequest",
"codex-linux-sandbox helper": "none",
"execve wrapper helper": "/Users/mariofiallo/.codex/tmp/arg0/codex-arg06FuRf6/codex-execve-wrapper",
"filesystem sandbox": "restricted",
"network sandbox": "restricted"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "/Users/mariofiallo/.codex (dir)",
"active rollout files": "3 files, 114882 total bytes, 38294 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "/Users/mariofiallo/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/Users/mariofiallo/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/Users/mariofiallo/.codex/log (missing)",
"memories DB": "/Users/mariofiallo/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"sqlite home": "/Users/mariofiallo/.codex (dir)",
"state DB": "/Users/mariofiallo/.codex/state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 463
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "ok",
"summary": "rollout files and state DB thread inventory agree",
"details": {
"default model provider": "openai",
"rollout DB active files": "3",
"rollout DB active rows": "3",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "0",
"rollout DB archived rows": "0",
"rollout DB duplicate DB paths": "0",
"rollout DB duplicate rollout thread ids": "0",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "0",
"rollout DB missing archived rows": "0",
"rollout DB model providers": "openai=3",
"rollout DB rows": "3",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "cli=3",
"rollout DB stale rows": "0"
},
"remediation": null,
"durationMs": 394
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-EC",
"details": {
"EDITOR": "not set",
"LC_CTYPE": "UTF-8",
"LESS": "set",
"PAGER": "set",
"VISUAL": "not set",
"os": "Mac OS 15.7.7 [64-bit]",
"os language": "en-EC",
"os type": "Mac OS",
"os version": "15.7.7"
},
"remediation": null,
"durationMs": 13
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"TERM_PROGRAM": "Apple_Terminal",
"color output": "enabled",
"effective locale": "UTF-8",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "Apple Terminal",
"terminal size": "110x38",
"terminal version": "455.1"
},
"remediation": null,
"durationMs": 1
},
"terminal.title": {
"id": "terminal.title",
"category": "title",
"status": "ok",
"summary": "terminal title default",
"details": {
"terminal title activity": "true",
"terminal title items": "activity, project-name",
"terminal title project source": "cwd",
"terminal title project value": "codex-test-clean",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.141.0",
"check for update on startup": "true",
"last checked at": "2026-06-21T02:40:00.841648Z",
"latest version": "0.141.0",
"latest version status": "current version is not older",
"update action": "brew upgrade --cask codex",
"version cache": "/Users/mariofiallo/.codex/version.json"
},
"remediation": null,
"durationMs": 99
}
}
}
What issue are you seeing?
Codex CLI 0.141.0 crashes with trace trap / SIGTRAP on macOS 15.7.7 Intel x86_64.
What steps can reproduce the bug?
Minimal reproduction:
- Install Codex CLI 0.141.0.
- Open an empty folder.
- Run
codex. - Ask: “What is 3*4?” → works.
- Ask: “Create hello.txt with the word hello.” → crashes.
Observed:
EXC_BREAKPOINT / SIGTRAP / Trace/BPT trap: 5.
Additional:
- Reproduces with Homebrew Cask install.
- Reproduces with standalone installer.
- Reproduces after resetting ~/.codex.
- Reproduces outside VS Code.
- Codex diagnostics report installation/auth/network/state OK.
- Crash appears when tool execution starts.
What is the expected behavior?
A file with a text hello.
Additional information
_No response_
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Reproducing the same crash on Intel macOS with the standalone installer: / / when tool execution begins. Codex Doctor v0.140.0 · macos-x86_64
Notes
↑ updates 0.141.0 available (current 0.140.0)
✗ auth no Codex credentials were found - Run codex login or provide an API key through a supported auth env var.
⚠ websocket Responses WebSocket failed; HTTPS fallback may still work - Check proxy, VPN, firewall, DNS, custom CA, and WebSocket policy support.
─────────────────────────────────────────────────────────────
Environment
✓ system en-US
os Mac OS 12.7.6 [64-bit]
OS language en-US
LANG en_CA.UTF-8
VISUAL not set
EDITOR not set
✓ runtime standalone (unix, package /Users/onlynativefox/.codex/packages/standalone/releases/0.140.0-x86_64-apple-darwin, bin /Users/onlynativefox/.codex/packages/standalone/releases/0.140.0-x86_64-apple-darwin/bin, resources /Users/onlynativefox/.codex/packages/standalone/releases/0.140.0-x86_64-apple-darwin/codex-resources, path /Users/onlynativefox/.codex/packages/standalone/releases/0.140.0-x86_64-apple-darwin/codex-path)
version 0.140.0
install method standalone (unix, package /Users/onlynativefox/.codex/packages/standalone/releases/0.140.0-x86_64-apple-darwin, bin /Users/onlynativefox/.codex/packages/standalone/releases/0.140.0-x86_64-apple-darwin/bin, resources /Users/onlynativefox/.codex/packages/standalone/releases/0.140.0-x86_64-apple-darwin/codex-resources, path /Users/onlynativefox/.codex/packages/standalone/releases/0.140.0-x86_64-apple-darwin/codex-path)
commit unknown
executable ~/.local/bin/codex
✓ install consistent
context standalone (unix, package /Users/onlynativefox/.codex/packages/standalone/releases/0.140.0-x86_64-apple-darwin, bin /Users/onlynativefox/.codex/packages/standalone/releases/0.140.0-x86_64-apple-darwin/bin, resources /Users/onlynativefox/.codex/packages/standalone/releases/0.140.0-x86_64-apple-darwin/codex-resources, path /Users/onlynativefox/.codex/packages/standalone/releases/0.140.0-x86_64-apple-darwin/codex-path)
managed by npm: no · bun: no · package root —
PATH entries (1) ~/.local/bin/codex
✓ search file exists (bundled,
/Users/onlynativefox/.codex/packages/standalone/releases/0.140.0-x86_64-apple-darwin/codex-path/rg)search command ~/.codex/packages/standa…le-darwin/codex-path/rg
search provider bundled
search command readiness file exists
✓ git git version 2.37.1 (Apple Git-137.1)
selected git /usr/bin/git
version git version 2.37.1 (Apple Git-137.1)
exec path /Library/Developer/Comma…ls/usr/libexec/git-core
repo detected false
PATH entries (1) /usr/bin/git
✓ terminal Apple Terminal 445.1
terminal Apple Terminal
TERM_PROGRAM Apple_Terminal
terminal version 445.1
stdin is terminal false
stdout is terminal false
stderr is terminal false
terminal size 80x24
color output disabled (stdout is not a terminal)
effective locale en_CA.UTF-8
✓ title default · project onlynativefox
title source default
title items activity, project-name
activity item true
project source cwd
project value onlynativefox
✓ state databases healthy
CODEX_HOME ~/.codex (dir)
log dir ~/.codex/log (missing)
sqlite home ~/.codex (dir)
state DB ~/.codex/state_5.sqlite (file) · integrity ok
log DB ~/.codex/logs_2.sqlite (file) · integrity ok
goals DB ~/.codex/goals_1.sqlite (file) · integrity ok
memories DB ~/.codex/memories_1.sqlite (file) · integrity ok
active rollouts 1 files · 29.71 KB (avg 29.71 KB)
archived rollouts 0 files · 0 B (avg 0 B)
standalone release cache 2 entries in /Users/onlynativefox/.codex/packages/standalone/releases
✓ threads rollout files and state DB thread inventory agree
default model provider openai
rollout DB active files 1
rollout DB archived files 0
rollout DB scan errors 0
rollout DB malformed file names 0
rollout DB scan cap reached false
rollout DB rows 1
rollout DB active rows 1
rollout DB archived rows 0
rollout DB missing active rows 0
rollout DB missing archived rows 0
rollout DB stale rows 0
rollout DB archive mismatches 0
rollout DB duplicate rollout thread ids 0
rollout DB duplicate DB paths 0
rollout DB model providers openai=1
rollout DB sources exec=1
Configuration
✓ config loaded
model <default> · openai
cwd ~
config.toml ~/.codex/config.toml
MCP servers 0
feature flags 29 enabled · 0 overridden (full list with --all)
✗ auth no Codex credentials were found — Run codex login or provide an API key through a supported auth env var.
auth storage mode File
auth file ~/.codex/auth.json
✓ mcp no MCP servers configured
✓ sandbox restricted fs + restricted network · approval OnRequest
approval policy OnRequest
filesystem sandbox restricted
network sandbox restricted
linux helper none
execve wrapper helper ~/.codex/tmp/arg0/codex-…ad/codex-execve-wrapper
Updates
✓ updates update configuration is locally consistent
startup update check true
update action standalone installer
version cache ~/.codex/version.json
version cache missing
latest version 0.141.0
latest version status newer version is available
Connectivity
✓ network no proxy env vars
proxy env vars none
⚠ websocket Responses WebSocket failed; HTTPS fallback may still work — Check proxy, VPN, firewall, DNS, custom CA, and WebSocket policy support.
model provider openai
provider name OpenAI
wire API responses
supports websockets true
proxy env vars none
connect timeout 15000 ms
auth mode none
endpoint wss://api.openai.com/v1/<redacted>
DNS 2 IPv4, 0 IPv6, first IPv4
handshake transport error http 401 Unauthorized: Some("{\n \"error\": {\n \"message\": \"Missing bearer or basic authentication in header\",\n \"type\": \"invalid_request_error\",\n \"param\": null,\n \"code\": null\n }\n}")
✓ reachability active provider endpoints are reachable over HTTP
reachability mode ChatGPT auth
ChatGPT base URL https://chatgpt.com/backend-api/ reachable (HTTP 403)
Background Server
○ app-server not running (ephemeral mode)
daemon state dir ~/.codex/app-server-daemon
settings ~/.codex/app-server-daemon/settings.json (missing)
pid file ~/.codex/app-server-daemon/app-server.pid (missing)
update-loop pid file ~/.codex/app-server-daem…/app-server-updater.pid (missing)
control socket ~/.codex/app-server-cont…app-server-control.sock
status not running
mode ephemeral
─────────────────────────────────────────────────────────────
15 ok · 1 idle · 3 notes · 1 warn · 1 fail failed
--summary compact output --all expand truncated lists
--json redacted report reports everything healthy. Downgrading to 0.140.0 avoids it. Filed a fresh report with full environment details at #29414.
Reproducing this on Intel macOS with the standalone installer. Same crash signature: zsh: trace trap / EXC_BREAKPOINT / SIGTRAP when tool execution starts. codex doctor reports everything healthy. Downgrading to 0.140.0 avoids it. Filed a separate report with full env details and repro steps at #29414.