Skip to content

Illegal instruction (core dumped) — SIGILL in wasm_trampoline_wasm_ipint_call_wide32 on Linux x86_64_baseline (v1.3.10) #27348

@MrTelecom

Description

@MrTelecom

Bug Report

Bun version: 1.3.10 (commit 1423d3c)
OS: Linux x86_64_baseline
Error: Illegal instruction (core dumped) — Segmentation fault at address 0x7FFF11BAC215

Crash Report

Full crash report: https://bun.report/1.3.10/B_11423d3cmgEuhogC4oi5wE+ypRslpuiEslpuiEslpuiEslpuiEslpuiEslpuiEslpuiEslpuiE__________A22//B3is8wiC

Stack Trace

The crash occurs in repeated calls to wasm_trampoline_wasm_ipint_call_wide32 in ld-temp.o, indicating a WebAssembly trampoline recursion issue that eventually triggers a SIGILL (illegal instruction).

Steps to Reproduce

  1. Running Bun v1.3.10 on Linux x86_64_baseline
  2. Executing a workload that involves WebAssembly execution
  3. Bun crashes with Illegal instruction (core dumped)

Expected Behavior

Bun should execute the WebAssembly workload without crashing.

Actual Behavior

Bun crashes with a SIGILL signal. The stack trace shows deep recursion in wasm_trampoline_wasm_ipint_call_wide32, suggesting the WASM interpreter trampoline hits an illegal CPU instruction on the baseline x86_64 build.

Additional Context

  • The crash occurs on the x86_64_baseline build, which may be relevant — this build targets older CPUs without AVX/AVX2 support, and the illegal instruction could indicate a codegen issue where non-baseline instructions are emitted.
  • The crash report has been automatically sent to the Bun team for internal tracking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions