Skip to content

macOS sandbox preventing dotnet build CSSM_ModuleLoad() Error #4915

Open

Description

@Meowzz95

What version of Codex is running?

codex-cli 0.45.0

Which model were you using?

gpt-5-codex high

What platform is your computer?

Darwin 25.0.0 arm64 arm

What steps can reproduce the bug?

Ask codex to build a dotnet solution

• Ran dotnet build Main/Main.sln
  └ failed in sandbox: CSSM_ModuleLoad(): One or more parameters passed to a function were not
    valid.

I get this output from codex

but somehow codex is able figure out a way to circulate this, but it always fail at first and try multiple times. I think it is a waste of token/compute, so filing a bug report here.

What is the expected behavior?

It should be able to run dotnet build

Or at least provide a clear instruction on what folder we need to whitelist in writable_roots to allow it to work

What do you see instead?

failed in sandbox: CSSM_ModuleLoad(): One or more parameters passed to a function were not
    valid.

Additional information

No response

Activity

  1. feritzcan2 commented on Dec 9, 2025

    @feritzcan2

    do anybody care about dotnet?

  2. wewrere41 commented on Feb 8, 2026

    @wewrere41

    Same issue. Codex app - cli 0.98 macos

  3. etraut-openai commented on Feb 8, 2026

    @etraut-openai
    Contributor

    If someone in the community is interested in investigating this issue, we'd welcome a root cause analysis.

  4. tillig commented on Feb 11, 2026

    @tillig

    I just hit this myself and found it was basically unable to run any sort of dotnet test or benchmarks. Enabling "full access" temporarily was a workaround, but yeah, it'd be nice to know what was actually blocked so I could be more specific about it.

    Something I noticed when working with Codex in VS Code was it needed full permissions because VS Test opens a socket to communicate back to the dotnet process and without full permissions it couldn't do that. Unclear if this is related. It's not the same error message, but it's the same end result - being unable to run tests.

  5. thomak-dev commented on Feb 18, 2026

    @thomak-dev

    Been trying out Codex while it's free because of the OS X App release. Turns out Codex is useless as a ASP.NET developer on Mac because of this bug. Good thing I didn't have to spend money on a subscription to find out.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsandboxIssues related to permissions or sandboxing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions