Skip to content

codex-cli 0.142.3 still crashes with Trace/BPT trap: 5 (SIGTRAP) on tool calls (web_search + shell) on Intel macOS — regression of #29000 #30306

Open

Description

@leonaburime-ucla

Summary

On Intel (x86_64) macOS, codex-cli 0.142.3 still crashes with a native Trace/BPT trap: 5 (SIGTRAP) the moment it invokes a tool — both web_search and local shell/file reads abort with no output and the conversation reports "Conversation interrupted."

This appears to be the same crash as #29000 (closed as completed on 2026-06-23) and #28090 (open). #29000 was marked fixed, but it is still reproducing on 0.142.0–0.142.3 per recent comments there. Filing fresh so the regression on the latest version is visible.

What version of Codex CLI is running?

0.142.3

Which model were you using?

gpt-5.5

What platform is your computer?

macOS 13.7.5 (build 22H527), x86_64 (Intel)

Steps to reproduce

  1. Start codex in a repository (a SessionStart hook was active; working directory path contains a space: .../Wordpress for Apps).
  2. Ask Codex to perform a web search.
  3. Codex first attempts a local file read / shell command; the command aborts and the terminal prints:
    Trace/BPT trap: 5
    
  4. Resume the session and ask Codex to invoke web search directly (no shell command).
  5. The search produces no output; the conversation reports:
    Conversation interrupted - tell the model what to do differently.
    Something went wrong? Hit /feedback to report the issue.
    

Expected behavior

Tool calls (web_search, shell, file read) return results or a recoverable error without terminating the process.

Actual behavior

Any tool invocation aborts without output; at least one invocation produced a native Trace/BPT trap: 5 (SIGTRAP). web_search is effectively unusable in the session.

Additional observations

Environment

  • Codex version: codex-cli 0.142.3
  • macOS: 13.7.5 (22H527)
  • Architecture: x86_64 (Intel)
  • Shell: bash
  • Terminal: Terminal.app (macOS default)

Related

Activity

  1. added
    bug
    CLI
    tool-calls
    on Jun 26, 2026
  2. Karabaaa commented on Jun 29, 2026

    @Karabaaa

    Still reproducible with Codex CLI 0.142.4 and the VS Code extension.

    Environment:

    • macOS 15.7.4 (24G517)
    • Intel MacBookPro16,1 (x86_64)
    • Codex CLI 0.142.4
    • VS Code extension 26.623.61825

    The app-server exits with SIGTRAP while initializing V8:

    v8::base::OS::SetPermissions
    v8::internal::CodeRange::InitReservation
    v8::internal::Heap::SetUp
    v8::internal::Isolate::Init
    v8::Isolate::New

    The issue still reproduces after:

    • Reinstalling Codex
    • Removing the template-creator plugin
    • Setting features.plugins = false
    • Pointing chatgpt.cliExecutable to the standalone 0.142.4 binary
    • Rebooting macOS

    codesign --verify --strict also reports an invalid signature for both the standalone and VS Code bundled Intel binaries.

    I am attaching a sanitized macOS crash report and VS Code Codex log.

    codex-crash-2026-06-29-sanitized.zip
    Codex.sanitized.log

  3. charlieargue commented on Jun 29, 2026

    @charlieargue

    I’m seeing the same issue on @openai/[email protected] installed via Volta/npm on Intel macOS.

    Environment:

    • Codex CLI broken version: 0.142.4
    • Working rollback version: 0.137.0
    • macOS: 14.8.4 (23J319)
    • Hardware: Intel MacBookPro16,1 / x86_64
    • Shell/terminal: zsh in iTerm2
    • Node: v24.14.0
    • Install path: /Users/karlgolka/.volta/tools/image/packages/@openai/codex/...

    Failure mode:

    • 0.142.4 crashes when a turn attempts a tool/custom tool call.
    • Reverting to 0.137.0 restores normal operation.
    • The crash is not repo-specific; it occurred while reading a local skill file before meaningful repo work.

    Crash reports observed:

    • ~/Library/Logs/DiagnosticReports/codex-2026-06-29-125709.ips
    • ~/Library/Logs/DiagnosticReports/codex-2026-06-29-130301.000.ips
    • ~/Library/Logs/DiagnosticReports/codex-2026-06-29-130807.000.ips
    • ~/Library/Logs/DiagnosticReports/codex-2026-06-29-130939.ips
    • ~/Library/Logs/DiagnosticReports/codex-2026-06-29-131217.ips

    Crash signature:

    Exception: EXC_BREAKPOINT / SIGTRAP
    Termination: Trace/BPT trap: 5
    
    codex v8::base::OS::SetPermissions
    codex v8::internal::CodeRange::InitReservation
    codex v8::internal::Heap::SetUp
    codex v8::internal::Isolate::Init
    codex v8::internal::Isolate::InitWithSnapshot
    codex v8::internal::Snapshot::Initialize
    codex v8::Isolate::Initialize
    codex v8::Isolate::New
    codex v8::isolate::Isolate::new
    

    Related secondary symptom:

    codex_core::util: Custom tool call output is missing for call id: ...
    

    That appears to be fallout after the native process dies mid-tool-call: the session has a recorded tool call but no corresponding output.

    This looks consistent with the V8/JIT/hardened-runtime SIGTRAP already discussed here. Adding this data point because it reproduces on 0.142.4 and on macOS 14.8.4, not only macOS 15/26.

  4. charlieargue commented on Jun 29, 2026

    @charlieargue

    FYI - in meantime, 👍 reverting to 137 solved the issue for now ...

  5. seth-reeise commented on Jul 7, 2026

    @seth-reeise

    Can we please get this fixed?

    I’m seeing what appears to be the same issue on my Intel Mac server.

    Environment:

    • Machine: Mid-2012 MacBook Pro, MacBookPro9,1
    • CPU: Intel Core i7 quad-core 2.3 GHz
    • RAM: 16 GB
    • macOS: Catalina 10.15.7
    • Build: 19H2026
    • Architecture: x86_64 / Intel
    • Shell: bash
    • Usage: connected over SSH, usually running Codex inside tmux
    • Install method: npm/global Codex CLI install
    • Codex CLI version 0.142.0 line

    Behavior:

    When Codex tries to invoke tools, especially shell commands/file reads, the session crashes/interrup​ts instead of returning tool output. I have seen the native macOS error:

    Trace/BPT trap: 5

    After that, Codex reports the conversation as interrupted / failed rather than showing the result of the tool call.

    This is happening on an older Intel Mac server, not Apple Silicon. It sounds consistent with the Intel macOS SIGTRAP/tool-runner issue described here and in the related issues. The main trigger appears to be tool execution.

  6. charlieargue commented on Jul 14, 2026

    @charlieargue

    Any update on this issue? I'm still in a 0.137.0 holding pattern until this is resolved and I can safely upgrade. Appreciate any info, 🙏 big 👍 Thanks!

  7. marked Codex Crash Report #30472 as a duplicate of this issue on Oct 12, 2026
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

    CLIbugtool-calls

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions