oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
72.25k stars 2.58k forks source link

Crash on start #12196

Open trawor opened 4 weeks ago

trawor commented 4 weeks ago

How can we reproduce the crash?

just as the log , it's crashed in docker alpine latest + glibc

Relevant log output

============================================================
Bun v1.1.17 (bb66bba1) Linux x64
Linux Kernel v6.7.12 | glibc v2.34
Args: "bun" "run" "index.js"
Features: jsc dotenv fetch http_server 
Builtins: "bun:main" "node:buffer" "node:crypto" "node:string_decoder" "node:util/types" 
Elapsed: 104ms | User: 112ms | Sys: 40ms
RSS: 1.07GB | Peak: 75.62MB | Commit: 1.07GB | Faults: 0

panic(main thread): Segmentation fault at address 0x0
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Stack Trace (bun.report)

Bun v1.1.17 (bb66bba) on linux x86_64 [RunCommand]

Segmentation fault at address 0x00000000

trawor commented 4 weeks ago

with more info:

  1. I'm running a bundled js file with bun build index.ts --target bun
  2. if bun build WITHOUT --sourcemap, it runs fine