{"record":{"id":"ebc8c20ba9fb9967","repo":"openai/codex","slug":"failed-to-remove-synthetic-bubblewrap-mount-target","errorCode":null,"errorMessage":"failed to remove synthetic bubblewrap mount target {}: {err}","messagePattern":"failed to remove synthetic bubblewrap mount target (.+?): (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/linux-sandbox/src/linux_run_main.rs","lineNumber":1267,"sourceCode":"\nfn remove_synthetic_mount_target(target: &crate::bwrap::SyntheticMountTarget) {\n    let path = target.path();\n    let metadata = match fs::symlink_metadata(path) {\n        Ok(metadata) => metadata,\n        Err(err) if err.kind() == std::io::ErrorKind::NotFound => return,\n        Err(err) => panic!(\n            \"failed to inspect synthetic bubblewrap mount target {}: {err}\",\n            path.display()\n        ),\n    };\n    if !target.should_remove_after_bwrap(&metadata) {\n        return;\n    }\n    match target.kind() {\n        crate::bwrap::SyntheticMountTargetKind::EmptyFile => match fs::remove_file(path) {\n            Ok(()) => {}\n            Err(err) if err.kind() == std::io::ErrorKind::NotFound => {}\n            Err(err) => panic!(\n                \"failed to remove synthetic bubblewrap mount target {}: {err}\",\n                path.display()\n            ),\n        },\n        crate::bwrap::SyntheticMountTargetKind::EmptyDirectory => match fs::remove_dir(path) {\n            Ok(()) => {}\n            Err(err) if err.kind() == std::io::ErrorKind::NotFound => {}\n            Err(err) if err.kind() == std::io::ErrorKind::DirectoryNotEmpty => {}\n            Err(err) => panic!(\n                \"failed to remove synthetic bubblewrap mount target {}: {err}\",\n                path.display()\n            ),\n        },\n    }\n}\n\nfn process_is_active(pid: libc::pid_t) -> bool {\n    let result = unsafe { libc::kill(pid, 0) };","sourceCodeStart":1249,"sourceCodeEnd":1285,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/linux-sandbox/src/linux_run_main.rs#L1249-L1285","documentation":"Error \"failed to remove synthetic bubblewrap mount target {}: {err}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/linux-sandbox/src/linux_run_main.rs:1267 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"}