{"record":{"id":"3fe5d748502ed76e","repo":"oven-sh/bun","slug":"cast-bun-fd-uv-makes-closing-impossible-the","errorCode":null,"errorMessage":"Cast bun.FD.uv({}) makes closing impossible!\n\nThe supplier of fd FD should call 'FD.makeLibUVOwned', probably where open() was called.","messagePattern":"Cast bun\\.FD\\.uv\\((.+?)\\) makes closing impossible!\n\nThe supplier of fd FD should call 'FD\\.makeLibUVOwned', probably where open\\(\\) was called\\.","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/bun_core/util.rs","lineNumber":1008,"sourceCode":"                if Some(self) == fd::WINDOWS_CACHED_STDIN.get().copied() {\n                    return 0;\n                }\n                if Some(self) == fd::WINDOWS_CACHED_STDOUT.get().copied() {\n                    return 1;\n                }\n                if Some(self) == fd::WINDOWS_CACHED_STDERR.get().copied() {\n                    return 2;\n                }\n                if fd::is_stdio_handle(fd::STD_INPUT_HANDLE, handle) {\n                    return 0;\n                }\n                if fd::is_stdio_handle(fd::STD_OUTPUT_HANDLE, handle) {\n                    return 1;\n                }\n                if fd::is_stdio_handle(fd::STD_ERROR_HANDLE, handle) {\n                    return 2;\n                }\n                panic!(\n                    \"Cast bun.FD.uv({}) makes closing impossible!\\n\\n\\\n                     The supplier of fd FD should call 'FD.makeLibUVOwned',\\n\\\n                     probably where open() was called.\",\n                    self,\n                );\n            }\n        }\n    }\n\n    #[cfg(not(windows))]\n    #[inline]\n    pub const fn stdin() -> Fd {\n        Fd(0)\n    }\n    #[cfg(not(windows))]\n    #[inline]\n    pub const fn stdout() -> Fd {\n        Fd(1)","sourceCodeStart":990,"sourceCodeEnd":1026,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/bun_core/util.rs#L990-L1026","documentation":"Error \"Cast bun.FD.uv({}) makes closing impossible!\n\nThe supplier of fd FD should call 'FD.makeLibUVOwned', probably where open() was called.\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at src/bun_core/util.rs:1008 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":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}