{"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":"Unregistering a synthetic bubblewrap mount target failed during cleanup after bwrap exits. This panic in cleanup_synthetic_mount_targets fires when removing the target's marker file errors with anything other than NotFound — the cleanup holds the registry lock, so this indicates filesystem-level trouble (permissions, IO errors) rather than concurrency.","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":["Inspect the io::Error in the message for the errno","Verify the registry temp directory and marker files are writable by the current uid","Clear leftover marker files from the registry root if they are stale","Check disk health if IO errors persist"],"exampleFix":null,"handlingStrategy":"try-catch","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"}