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
- Running Bun v1.3.10 on Linux x86_64_baseline
- Executing a workload that involves WebAssembly execution
- 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.