{"record":{"id":"40b4ae65198cbc71","repo":"openai/codex","slug":"bwrap-is-only-supported-on-linux","errorCode":null,"errorMessage":"bwrap is only supported on Linux","messagePattern":"bwrap is only supported on Linux","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/bwrap/src/main.rs","lineNumber":44,"sourceCode":"    // valid for the duration of the call.\n    let exit_code = unsafe { bwrap_main(cstrings.len() as libc::c_int, argv_ptrs.as_ptr()) };\n    std::process::exit(exit_code);\n}\n\n#[cfg(all(target_os = \"linux\", not(bwrap_available)))]\nfn main() {\n    panic!(\n        r#\"bubblewrap is not available in this build.\nNotes:\n- ensure the target OS is Linux\n- libcap headers must be available via pkg-config\n- bubblewrap sources expected at codex-rs/vendor/bubblewrap (default)\"#\n    );\n}\n\n#[cfg(not(target_os = \"linux\"))]\nfn main() {\n    panic!(\"bwrap is only supported on Linux\");\n}\n","sourceCodeStart":26,"sourceCodeEnd":46,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/bwrap/src/main.rs#L26-L46","documentation":"Panic from the non-Linux bwrap main: the binary was built for a platform where the bubblewrap sandbox does not exist (bubblewrap is Linux-only). Any invocation on macOS/Windows immediately panics to make the unsupported platform explicit.","triggerScenarios":"Thrown at codex-rs/bwrap/src/main.rs:44 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the sandbox shim on Linux only","Use the platform-appropriate sandbox mechanism on other operating systems"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}