{"record":{"id":"07fd7be845644b6f","repo":"openai/codex","slug":"failed-to-remove-synthetic-bubblewrap-mount-marker","errorCode":null,"errorMessage":"failed to remove synthetic bubblewrap mount marker directory {}: {err}","messagePattern":"failed to remove synthetic bubblewrap mount marker directory (.+?): (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/linux-sandbox/src/linux_run_main.rs","lineNumber":1118,"sourceCode":"                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()\n                ),\n            }\n        }\n    });\n}\n\nfn cleanup_protected_create_targets(targets: &[ProtectedCreateTargetRegistration]) -> bool {\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 protected create target {}: {err}\",\n                    target.target.path().display()\n                ),","sourceCodeStart":1100,"sourceCodeEnd":1136,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/linux-sandbox/src/linux_run_main.rs#L1100-L1136","documentation":"Error \"failed to remove synthetic bubblewrap mount marker directory {}: {err}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/linux-sandbox/src/linux_run_main.rs:1118 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"}