{"record":{"id":"80ca7e51fd26f486","repo":"openai/codex","slug":"failed-to-unregister-synthetic-bubblewrap-mount-ta","errorCode":null,"errorMessage":"failed to unregister synthetic bubblewrap mount target {}: {err}","messagePattern":"failed to unregister synthetic bubblewrap mount target (.+?): (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/linux-sandbox/src/linux_run_main.rs","lineNumber":1102,"sourceCode":"                ),\n            }\n            continue;\n        }\n        let matches_marker = matches_marker(&path);\n        if matches_marker {\n            return true;\n        }\n    }\n    false\n}\n\nfn cleanup_synthetic_mount_targets(targets: &[SyntheticMountTargetRegistration]) {\n    with_synthetic_mount_registry_lock(|| {\n        for target in targets.iter().rev() {\n            match fs::remove_file(&target.marker_file) {\n                Ok(()) => {}\n                Err(err) if err.kind() == std::io::ErrorKind::NotFound => {}\n                Err(err) => panic!(\n                    \"failed to unregister synthetic bubblewrap mount target {}: {err}\",\n                    target.target.path().display()\n                ),\n            }\n        }\n\n        for target in targets.iter().rev() {\n            if synthetic_mount_marker_dir_has_active_process(&target.marker_dir) {\n                continue;\n            }\n            remove_synthetic_mount_target(&target.target);\n            match fs::remove_dir(&target.marker_dir) {\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 marker directory {}: {err}\",\n                    target.marker_dir.display()","sourceCodeStart":1084,"sourceCodeEnd":1120,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/linux-sandbox/src/linux_run_main.rs#L1084-L1120","documentation":"Error \"failed to unregister synthetic bubblewrap mount target {}: {err}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/linux-sandbox/src/linux_run_main.rs:1102 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"}