oven-sh / bun

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

Segault on `bun upgrade` #11804

Closed headquarter8302 closed 3 months ago

headquarter8302 commented 3 months ago

How can we reproduce the crash?

  1. Run bun upgrade in any terminal or console environment

Relevant log output

============================================================
Bun v1.1.11 (4fb6056f) Windows x64
Args: "C:\Users\ASUS\.bun\bin\bun.exe" "upgrade"
Elapsed: 785ms | User: 0ms | Sys: 15ms
RSS: 55.99MB | Peak: 55.99MB | Commit: 117.02MB | Faults: 13878

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

Stack Trace (bun.report)

Bun v1.1.11 (4fb6056) on windows x86_64 [UpgradeCommand]

Segmentation fault at address 0xFFFFFFFFFFFFFFFF

headquarter8302 commented 3 months ago

I noticed that the error happened on VCRUNTIME140.dll, is it possible that I may have a corrupted dependency installed on my Windows machine?

Jarred-Sumner commented 3 months ago

This was fixed in Bun v1.1.12. Please upgrade via Powershell:

powershell -c "irm bun.sh/install.ps1 | iex"