Zig test commands failing in sandbox

Resolved 💬 1 comment Opened Jan 1, 2026 by RS2007 Closed Mar 29, 2026

What version of Codex is running?

codex-cli 0.77.0

What subscription do you have?

Chatgpt plus

Which model were you using?

gpt-5

What platform is your computer?

Darwin 23.6.0 arm64 arm

What issue are you seeing?

zig test commands fail with a signal 11 within the codex sandbox. The command works perfectly outside the codex sandbox

What steps can reproduce the bug?

To reproduce:

  1. Initialize a new zig project via zig init
  2. Run the following prompt within codex, the output should be as mentioned here:

› Run the simple test in ./src/main.zig


• I’m going to run the Zig unit test in src/main.zig and show its output.

• Explored
  └ List main.zig

✔ You approved codex to run zig test ./src/main.zig this time

• Ran zig test ./src/main.zig
  └ execution error: Sandbox(Signal(11))

• Running the zig test (23s • esc to interrupt)

What is the expected behavior?

The expected behaviour here is for the test to run and return a sane return code / some stdout output. None of this happens and a signal 11 is returned

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗