{"record":{"id":"efa633a9005c7fc8","repo":"openai/codex","slug":"no-command-specified-to-execute","errorCode":null,"errorMessage":"No command specified to execute.","messagePattern":"No command specified to execute\\.","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/linux-sandbox/src/linux_run_main.rs","lineNumber":174,"sourceCode":"///    filesystem view.\n/// 2. Apply in-process restrictions (no_new_privs + seccomp).\n/// 3. `execvp` into the final command.\npub fn run_main() -> ! {\n    let LandlockCommand {\n        sandbox_policy_cwd,\n        command_cwd,\n        permission_profile,\n        use_legacy_landlock,\n        apply_seccomp_then_exec,\n        allow_network_for_proxy,\n        proxy_route_spec,\n        verify_fd_mounts,\n        no_proc,\n        command,\n    } = LandlockCommand::parse();\n\n    if command.is_empty() {\n        panic!(\"No command specified to execute.\");\n    }\n    if !apply_seccomp_then_exec && !verify_fd_mounts.is_empty() {\n        panic!(\"--verify-fd-mount is only supported in the inner sandbox stage\");\n    }\n    ensure_inner_stage_mode_is_valid(apply_seccomp_then_exec, use_legacy_landlock);\n    let EffectivePermissions {\n        permission_profile,\n        mut file_system_sandbox_policy,\n        network_sandbox_policy,\n    } = resolve_permission_profile(permission_profile).unwrap_or_else(|err| panic!(\"{err}\"));\n    ensure_legacy_landlock_mode_supports_policy(\n        use_legacy_landlock,\n        &file_system_sandbox_policy,\n        network_sandbox_policy,\n        &sandbox_policy_cwd,\n    );\n\n    // Inner stage: apply seccomp/no_new_privs after bubblewrap has already","sourceCodeStart":156,"sourceCodeEnd":192,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/linux-sandbox/src/linux_run_main.rs#L156-L192","documentation":"Error \"No command specified to execute.\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/linux-sandbox/src/linux_run_main.rs:174 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}