oven-sh / bun

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

Segmentation fault #11848

Open blecorre-mnp opened 2 months ago

blecorre-mnp commented 2 months ago

How can we reproduce the crash?

This issue happened while running out backend project built using the following: bun build ./src/index.ts --target=bun --splitting --sourcemap --outdir=out

I unfortunately cannot setup a repo reproduction from our company code.

Relevant log output

No response

Stack Trace (bun.report)

Bun v1.1.13 (bd6a605) on macos aarch64 [AutoCommand]

Segmentation fault at address 0x00000000

Jarred-Sumner commented 2 months ago

Are you using macros? How’d it end up in JavaScript execution when using bun build?

blecorre-mnp commented 2 months ago

Sorry wasn't clear here, we built the backend to JS using the build command then ran bun out/index.js and got the error. I got it working by removing the --splitting arg.