oven-sh / bun

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

Expo / EAS builds crashing with 'bun install ' SIGTRAP #12820

Open imattaai opened 1 month ago

imattaai commented 1 month ago

How can we reproduce the crash?

Create a production build through EAS. Assuming your project uses bun: my local builds work:

eas build --platform ios I'm on Expo 49 but builds were not an issue until this

Relevant log output

Running "bun install" in /Users/expo/workingdir/build directory
bun install v1.1.13 (bd6a6051)
============================================================
Bun v1.1.13 (bd6a6051) macOS Silicon
Args: "bun" "install"
Elapsed: 56ms | User: 18ms | Sys: 18ms
RSS:
29.66MB | Peak: 29.66MB | Commit: 1.07GB | Faults: 677
panic(main thread): Segmentation fault at address 0xAA5
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
bun install exited with signal: SIGTRAP

Stack Trace (bun.report)

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

Segmentation fault at address 0x00000AA5

Jarred-Sumner commented 1 month ago

The current version of Bun is 1.1.20. Can you try in Bun v1.1.20?

bun upgrade 
imattaai commented 1 month ago

The current version of Bun is 1.1.20. Can you try in Bun v1.1.20?

bun upgrade 

On my local machine, I had an older version which built succesfully and also upgraded to 1.1.20 and it built succesfully.

I believe this is within the EAS pipeline and that they have to upgrade. I've mentioned this in the eas-custom-builds channel on the Expo Developers discord.

Just opening the ticket here in case there are hints.

Edit: I've logged it somewhere else for better visibility hopefully https://github.com/expo/eas-cli/issues/2471