oven-sh/bun · error
Unexpected error while reloading: errno {}
Error message
Unexpected error while reloading: errno {} What it means
Error "Unexpected error while reloading: errno {}" thrown in oven-sh/bun.
Source
Thrown at src/bun_core/util.rs:4490
p = p.add(1);
}
let mut envp: Vec<*const core::ffi::c_char> = dupe_env.iter().map(|z| z.as_ptr()).collect();
envp.push(core::ptr::null());
// we must clone selfExePath in case argv[0] was not an absolute path
let exec_path = self_exe_path().expect("unreachable").as_ptr();
libc::execve(exec_path, newargv.as_ptr().cast(), envp.as_ptr().cast());
// execve only returns on error.
let errno = std::io::Error::last_os_error().raw_os_error().unwrap_or(-1);
if may_return {
crate::output::pretty_errorln(format_args!(
"error: Failed to reload process: errno {}",
errno
));
return;
}
panic!("Unexpected error while reloading: errno {}", errno);
}
#[cfg(not(any(unix, windows)))]
{
// Bun only targets POSIX + Windows; any other target
// is a build-time error, not a runtime panic.
let _ = (clear_terminal, may_return);
compile_error!("unsupported platform for reload_process");
}
}
// ── spawn_sync_inherit ────────────────────────────────────────────────────
/// Minimal "spawn argv, inherit stdio, wait" used by crash_handler's
/// symbolizer. Port of the subset of `bun.spawnSync` needed at tier-0.
/// Full `bun.spawnSync` (with buffered stdio, env, cwd) is in bun_spawn.
#[derive(Debug, Clone, Copy)]
pub struct SpawnStatus {
pub(crate) code: i32,View on GitHub (pinned to 8c5296ac45)
When it happens
Trigger: Thrown at src/bun_core/util.rs:4490 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16).
Data as JSON: /api/errors/27deb601306354b8.
Report an issue: GitHub.