{"record":{"id":"c62943e37da58bc3","repo":"openai/codex","slug":"failed-to-create-synthetic-bubblewrap-mount-regist","errorCode":null,"errorMessage":"failed to create synthetic bubblewrap mount registry {}: {err}","messagePattern":"failed to create synthetic bubblewrap mount registry (.+?): (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/linux-sandbox/src/linux_run_main.rs","lineNumber":1296,"sourceCode":"                path.display()\n            ),\n        },\n    }\n}\n\nfn process_is_active(pid: libc::pid_t) -> bool {\n    let result = unsafe { libc::kill(pid, 0) };\n    if result == 0 {\n        return true;\n    }\n    let err = std::io::Error::last_os_error();\n    !matches!(err.raw_os_error(), Some(libc::ESRCH))\n}\n\nfn with_synthetic_mount_registry_lock<T>(f: impl FnOnce() -> T) -> T {\n    let registry_root = synthetic_mount_registry_root();\n    fs::create_dir_all(&registry_root).unwrap_or_else(|err| {\n        panic!(\n            \"failed to create synthetic bubblewrap mount registry {}: {err}\",\n            registry_root.display()\n        )\n    });\n    let lock_path = registry_root.join(\"lock\");\n    let lock_file = OpenOptions::new()\n        .read(true)\n        .write(true)\n        .create(true)\n        .truncate(false)\n        .open(&lock_path)\n        .unwrap_or_else(|err| {\n            panic!(\n                \"failed to open synthetic bubblewrap mount registry lock {}: {err}\",\n                lock_path.display()\n            )\n        });\n    if unsafe { libc::flock(lock_file.as_raw_fd(), libc::LOCK_EX) } < 0 {","sourceCodeStart":1278,"sourceCodeEnd":1314,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/linux-sandbox/src/linux_run_main.rs#L1278-L1314","documentation":"Error \"failed to create synthetic bubblewrap mount registry {}: {err}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/linux-sandbox/src/linux_run_main.rs:1296 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"}