oven-sh / bun

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

bun init is crashing on Windows 10 #11074

Open ak-jdesrosiers opened 2 weeks ago

ak-jdesrosiers commented 2 weeks ago

How can we reproduce the crash?

In Powershell, create a new folder:

PS C:\Users\jdesrosiers\Documents> mkdir me

Change Directory:

PS C:\Users\jdesrosiers\Documents> cd .\me\

Run bun init from there:

PS C:\Users\jdesrosiers\Documents\me> bun init

It produces the same issue in a git bash session on Windows. (BTW: Thanks a lot for Bun!)

JavaScript/TypeScript code that reproduces the crash?

No response

Relevant log output

bun init helps you get started with a minimal project and tries to guess sensible defaults. Press ^C anytime to quit

package name (me):
entry point (index.ts):

Done! A package.json file was saved in the current directory.
 + index.ts
 + .gitignore
 + tsconfig.json (for editor auto-complete)
 + README.md

To get started, run:
  bun run index.ts
============================================================
Bun v1.1.8 (89d25807) Windows x64
Args: "C:\Users\jdesrosiers\.bun\bin\bun.exe", "init"
Elapsed: 1998ms | User: 0ms | Sys: 62ms
RSS: 22.32MB | Peak: 22.87MB | Commit: 63.64MB | Faults: 6997

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

Stack Trace (bun.report)

Bun v1.1.8 (89d2580) on windows x8664 []

Segmentation fault at address 0xD4D2B1E010