Codex CLI 0.141.0 crashes with SIGTRAP ("trace trap") on Intel macOS
What version of Codex CLI is running?
0.141.0
What subscription do you have?
ChatGPT Plus
Which model were you using?
gpt-5.5
What platform is your computer?
Darwin 25.5.0 x86_64 i386
What terminal emulator and version are you using (if applicable)?
_No response_
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1781825086s 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/houshuai/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/Users/houshuai/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/Users/houshuai/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/Users/houshuai/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/Users/houshuai/.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/houshuai/.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/houshuai/.codex",
"config.toml": "/Users/houshuai/.codex/config.toml",
"config.toml parse": "ok",
"cwd": "/Users/houshuai/project/ai_project/wordly",
"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/houshuai/.codex/log",
"mcp servers": "0",
"model": "gpt-5.5",
"model provider": "openai",
"sqlite home": "/Users/houshuai/.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.23.0",
"details": {
".git entry": "directory",
"PATH git #1": "/usr/local/bin/git",
"PATH git #2": "/usr/bin/git",
"PATH git entries": "2",
"git branch": "main",
"git build options": "git version 2.23.0; cpu: x86_64; no commit associated with this build; sizeof-long: 8; sizeof-size_t: 8",
"git exec path": "/usr/local/git/libexec/git-core",
"git version": "git version 2.23.0",
"repo detected": "true",
"repo root": "/Users/houshuai/project/ai_project/wordly",
"selected git": "/usr/local/bin/git"
},
"remediation": null,
"durationMs": 9
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/Users/houshuai/.local/bin/codex",
"PATH codex #2": "/Users/houshuai/.nvm/versions/node/v22.17.1/bin/codex",
"PATH codex #3": "/Users/houshuai/.local/bin/codex",
"PATH codex #4": "/Users/houshuai/.local/bin/codex",
"PATH codex #5": "/Users/houshuai/.local/bin/codex",
"PATH codex #6": "/Users/houshuai/.local/bin/codex",
"PATH codex #7": "/Users/houshuai/.local/bin/codex",
"PATH codex entries": "7",
"current executable": "/Users/houshuai/.local/bin/codex",
"install context": "standalone (unix, package /Users/houshuai/.codex/packages/standalone/releases/0.141.0-x86_64-apple-darwin, bin /Users/houshuai/.codex/packages/standalone/releases/0.141.0-x86_64-apple-darwin/bin, resources /Users/houshuai/.codex/packages/standalone/releases/0.141.0-x86_64-apple-darwin/codex-resources, path /Users/houshuai/.codex/packages/standalone/releases/0.141.0-x86_64-apple-darwin/codex-path)",
"managed by bun": "false",
"managed by npm": "false",
"managed package root": "not set"
},
"remediation": null,
"durationMs": 5
},
"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": 1269
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "1 IPv4, 0 IPv6, first IPv4",
"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": 1531
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running standalone on macos-x86_64",
"details": {
"commit": "unknown",
"current executable": "/Users/houshuai/.local/bin/codex",
"install method": "standalone (unix, package /Users/houshuai/.codex/packages/standalone/releases/0.141.0-x86_64-apple-darwin, bin /Users/houshuai/.codex/packages/standalone/releases/0.141.0-x86_64-apple-darwin/bin, resources /Users/houshuai/.codex/packages/standalone/releases/0.141.0-x86_64-apple-darwin/codex-resources, path /Users/houshuai/.codex/packages/standalone/releases/0.141.0-x86_64-apple-darwin/codex-path)",
"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 (bundled)",
"details": {
"search command": "/Users/houshuai/.codex/packages/standalone/releases/0.141.0-x86_64-apple-darwin/codex-path/rg",
"search command readiness": "file exists",
"search provider": "bundled"
},
"remediation": null,
"durationMs": 0
},
"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/houshuai/.codex/tmp/arg0/codex-arg0gCZysr/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/houshuai/.codex (dir)",
"active rollout files": "23 files, 51877163 total bytes, 2255528 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "/Users/houshuai/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/Users/houshuai/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/Users/houshuai/.codex/log (dir)",
"memories DB": "/Users/houshuai/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"sqlite home": "/Users/houshuai/.codex (dir)",
"standalone release cache": "1 entries in /Users/houshuai/.codex/packages/standalone/releases",
"state DB": "/Users/houshuai/.codex/state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 340
},
"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": "23",
"rollout DB active rows": "23",
"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=23",
"rollout DB rows": "23",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "cli=20, unknown=3",
"rollout DB stale rows": "0"
},
"remediation": null,
"durationMs": 582
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language zh-Hans-CN",
"details": {
"EDITOR": "not set",
"LANG": "C.UTF-8",
"LC_CTYPE": "UTF-8",
"LESS": "set",
"PAGER": "set",
"VISUAL": "not set",
"os": "Mac OS 26.5.1 [64-bit]",
"os language": "zh-Hans-CN",
"os type": "Mac OS",
"os version": "26.5.1"
},
"remediation": null,
"durationMs": 4
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORTERM": "truecolor",
"TERM_PROGRAM": "WarpTerminal",
"color output": "disabled (stdout is not a terminal)",
"effective locale": "UTF-8",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "false",
"terminal": "Warp",
"terminal size": "331x48",
"terminal version": "v0.2026.06.10.09.27.stable_01"
},
"remediation": null,
"durationMs": 0
},
"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": "git repo root",
"terminal title project value": "wordly",
"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-18T08:02:50.607782Z",
"latest version": "0.141.0",
"latest version status": "current version is not older",
"update action": "standalone installer",
"version cache": "/Users/houshuai/.codex/version.json"
},
"remediation": null,
"durationMs": 403
}
}
}
What issue are you seeing?
What steps can reproduce the bug?
What version of Codex is running?
codex-cli 0.141.0
Platform
- OS: macOS
- Architecture: Intel x86_64
- Shell: zsh
- Installation method: Codex standalone installer
- Executable path:
/Users/houshuai/.local/bin/codex
Issue summary
Codex CLI 0.141.0 crashes unexpectedly on an Intel-based Mac while it is running.
After the crash, zsh prints the following message:
[1] 4460 trace trap codex
The process is terminated by SIGTRAP instead of exiting normally.
This happens during an active Codex session. There is no useful error message displayed in the Codex TUI before the process exits.
Steps to reproduce
- Install Codex CLI 0.141.0 using the standalone installer.
- Confirm the installed version:
codex --version
Output:
codex-cli 0.141.0
- Start an interactive session:
codex
- Submit a task that causes Codex to inspect files or execute shell commands.
- Continue using the session for a short period.
- Codex suddenly exits and zsh displays:
[1] 4460 trace trap codex
Actual behavior
The Codex CLI process crashes with SIGTRAP / trace trap during execution.
The terminal returns directly to the shell, and the active Codex session is interrupted.
Expected behavior
Codex CLI should continue running normally and should not terminate with SIGTRAP on Intel macOS.
If an internal operation fails, Codex should display an error and keep the session running instead of crashing the entire process.
Regression information
The problem occurs with:
codex-cli 0.141.0
As a temporary workaround, I downgraded to:
codex-cli 0.140.0
Please investigate whether version 0.141.0 introduced an Intel macOS compatibility, runtime, JIT, code-signing, or executable-memory regression.
Environment diagnostics
uname -m
sw_vers
sysctl -n machdep.cpu.brand_string
codex --version
command -v codex
file "$(command -v codex)"
Results:
uname -m:
x86_64
codex --version:
codex-cli 0.141.0
command -v codex:
/Users/houshuai/.local/bin/codex
I can provide the full output of sw_vers, CPU information, and the macOS Diagnostic Report if needed.
Crash report
macOS may have generated a diagnostic report under:
~/Library/Logs/DiagnosticReports/
The relevant exception appears to be a SIGTRAP / EXC_BREAKPOINT crash.
I will attach the corresponding .ips crash report after removing any sensitive paths or environment information.
Additional information
The CLI was installed alongside an npm installation, but the executable that crashed was confirmed to be:
/Users/houshuai/.local/bin/codex
The npm-installed version was located at:
/Users/houshuai/.nvm/versions/node/v22.17.1/bin/codex
The issue is specifically observed when running the standalone Codex CLI 0.141.0 executable on an Intel-based Mac.
What is the expected behavior?
_No response_
Additional information
_No response_
24 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Same. 019edd29-bbba-7021-b43f-44c620d96585
sameproblem
Same problem after updating to the latest version. Thank you for mentioning that downgrading worked, going to do that now temporarily (but I hope this issue is fixed ASAP because apparently the older versions of OpenAI products will stop working from June 26th 😬).
same problem as well.
same problem in my Intel Mac
Yup, I just downgraded and everything works again. No crashes. I have Intel MacOS as well...I guess June 26 is going to suck.
I can confirm the same problem on Intel macOS with
gpt-5.5.On my Intel Mac, Codex crashes in the interactive flow and ends with
trace trap/SIGTRAP. The log also shows:codex_rollout::list: state db discrepancy during find_thread_path_by_id_str_in_subdir: falling_backgpt-5.4works, butgpt-5.5triggers the issue.Same experience, same environment. Using
codex -m gpt-5.4avoids the issue.codex 0.142.0 fixed this issue.
Are you sure its been fixed?
<img width="1147" height="338" alt="Image" src="https://github.com/user-attachments/assets/5b4844eb-2dcf-42a3-a0c3-6459d95845de" />
Same. I think this issue should be reopened in 0.142.0
Same issue
same issue:
OS: macOS 14.8.4 23J319 x86_64
CPU: Intel i9-9880H
codex-cli 0.142.0
model: gpt-5.5
Still reproducing after this was closed as completed. codex-cli 0.142.3, macOS 13.7.5 (22H527), x86_64 (Intel), model gpt-5.5.
Trace/BPT trap: 5(SIGTRAP) fires on tool calls — bothweb_searchand local shell/file reads abort with no output. Filed a fresh report for the 0.142.x regression: #30306.I also experience this error, same specs 👆
same issue:
OS: macOS 26.5.1
CPU: 2.3 GHz 8-Core Intel Core i9
codex-cli 0.142.3
model: gpt-5.5 xhigh
UP
UP
<img width="935" height="321" alt="Image" src="https://github.com/user-attachments/assets/4911e64e-ad1a-42cd-a51d-172b2525ee62" />
problem was solved , working ok on my computer. (Intel 2019 Macbook)
with new version?
yes, version 0.142.4
https://github.com/openai/codex/issues/29064#issuecomment-4887317320