Skip to content

Codex CLI 0.141.0 crashes with SIGTRAP ("trace trap") on Intel macOS #29000

Closed

Description

@RainLib

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?

error.txt

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

  1. Install Codex CLI 0.141.0 using the standalone installer.
  2. Confirm the installed version:
codex --version

Output:

codex-cli 0.141.0
  1. Start an interactive session:
codex
  1. Submit a task that causes Codex to inspect files or execute shell commands.
  2. Continue using the session for a short period.
  3. 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.

error.txt

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Jun 18, 2026
  2. added
    CLI
    on Jun 18, 2026
  3. QuBenhao commented on Jun 19, 2026

    @QuBenhao

    Same. 019edd29-bbba-7021-b43f-44c620d96585

  4. ertra commented on Jun 19, 2026

    @ertra

    sameproblem

  5. DevVali commented on Jun 20, 2026

    @DevVali

    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 😬).

  6. hkairi commented on Jun 20, 2026

    @hkairi

    same problem as well.

  7. kylinwowo commented on Jun 21, 2026

    @kylinwowo

    same problem in my Intel Mac

  8. anthonysim commented on Jun 21, 2026

    @anthonysim

    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 😬).

    Yup, I just downgraded and everything works again. No crashes. I have Intel MacOS as well...I guess June 26 is going to suck.

  9. ronaldescobar commented on Jun 21, 2026

    @ronaldescobar

    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_back

    gpt-5.4 works, but gpt-5.5 triggers the issue.

  10. drew3000 commented on Jun 22, 2026

    @drew3000

    Same experience, same environment. Using codex -m gpt-5.4 avoids the issue.

  11. RainLib commented on Jun 23, 2026

    @RainLib
    Author

    codex 0.142.0 fixed this issue.

  12. JonathanTsistinas commented on Jun 23, 2026

    @JonathanTsistinas

    Are you sure its been fixed?

    Image
  13. QuBenhao commented on Jun 23, 2026

    @QuBenhao

    Are you sure its been fixed?

    Image

    Same. I think this issue should be reopened in 0.142.0

  14. hamzaahmad-cp commented on Jun 24, 2026

    @hamzaahmad-cp

    Same issue

  15. Fariacool commented on Jun 24, 2026

    @Fariacool

    same issue:
    OS: macOS 14.8.4 23J319 x86_64
    CPU: Intel i9-9880H
    codex-cli 0.142.0
    model: gpt-5.5

  16. leonaburime-ucla commented on Jun 26, 2026

    @leonaburime-ucla

    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 — both web_search and local shell/file reads abort with no output. Filed a fresh report for the 0.142.x regression: #30306.

  17. paraita commented on Jun 26, 2026

    @paraita

    I also experience this error, same specs 👆

  18. gonghao commented on Jun 29, 2026

    @gonghao

    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

  19. whyvrafvr commented on Jun 30, 2026

    @whyvrafvr

    UP

  20. Aleksejs-Prjahins commented on Jul 1, 2026

    @Aleksejs-Prjahins

    UP

  21. RainLib commented on Jul 2, 2026

    @RainLib
    Author
    Image
  22. ertra commented on Jul 2, 2026

    @ertra

    problem was solved , working ok on my computer. (Intel 2019 Macbook)

  23. gonghao commented on Jul 2, 2026

    @gonghao

    problem was solved , working ok on my computer. (Intel 2019 Macbook)

    with new version?

  24. ertra commented on Jul 2, 2026

    @ertra

    problem was solved , working ok on my computer. (Intel 2019 Macbook)

    with new version?

    yes, version 0.142.4

  25. whyvrafvr commented on Jul 5, 2026

    @whyvrafvr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions