oven-sh/bun · error · ElfError
NewVaddrCollides
NewVaddrCollides
Error message
NewVaddrCollides
What it means
Error "NewVaddrCollides" thrown in oven-sh/bun.
Source
Thrown at src/exe_format/elf.rs:33
use bun_core::{slice_to_nul, strings};
use crate::{align_up, read_struct, write_struct};
bun_core::declare_scope!(elf, visible);
#[derive(Debug, thiserror::Error, strum::IntoStaticStr)]
pub enum ElfError {
#[error("InvalidElfFile")]
InvalidElfFile,
#[error("Not64Bit")]
Not64Bit,
#[error("NotLittleEndian")]
NotLittleEndian,
#[error("BunSectionNotFound")]
BunSectionNotFound,
#[error("NoWritableLoadSegment")]
NoWritableLoadSegment,
#[error("NewVaddrCollides")]
NewVaddrCollides,
}
pub struct ElfFile {
pub data: Vec<u8>,
}
impl ElfFile {
pub fn init(data: Vec<u8>) -> Result<Box<ElfFile>, ElfError> {
validate_elf64_le(&data)?;
Ok(Box::new(ElfFile { data }))
}
/// If PT_INTERP points into a Nix/Guix store path, rewrite it to the
/// standard FHS path so `bun build --compile` output stays portable when
/// the bun binary itself was patchelf'd (NixOS autoPatchelfHook). See #24742.
///
/// Skipped when the host system itself uses a Nix/Guix store interpreterView on GitHub (pinned to 8c5296ac45)
When it happens
Trigger: Thrown at src/exe_format/elf.rs:33 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/fd517528f05f1519.
Report an issue: GitHub.