bun icon indicating copy to clipboard operation
bun copied to clipboard

Bun crashes when trying to run any subcommand

Open cartercanedy opened this issue 10 months ago • 1 comments

What version of Bun is running?

1.1.0+5903a6141

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What steps can reproduce the bug?

The bun CLI is correctly able to produce the help dialog, but all subcommands crash with a Panic: incorrect alignment error message.

What is the expected behavior?

No crashes, able to use bun i/repl/x

What do you see instead?

Full error message:

Panic: incorrect alignment

bun has crashed :'(

----- bun meta -----
Bun v1.1.0 (5903a614) Windows x64 
BunxCommand: 
Elapsed: 4ms | User: 0ms | Sys: 31ms
RSS: 20.39MB | Peak: 20.40MB | Commit: 62.39MB | Faults: 5113
----- bun meta -----

0   00007FF62102A4C8
1   ???
2   ???
3   ???
4   ???
5   ???
6   ???
7   ???
8   ???
9   ???
10  ???
11  ???

Search GitHub issues https://bun.sh/issues or join in #windows channel in https://bun.sh/discord

thread 48264 panic: incorrect alignment
???:?:?: 0x7ff61f9fabf4 in ??? (bun.exe)
???:?:?: 0x7ff61f9f939f in ??? (bun.exe)
???:?:?: 0x7ff61f9f4bf9 in ??? (bun.exe)
???:?:?: 0x7ff61fb88cca in ??? (bun.exe)
???:?:?: 0x7ff61fbf1108 in ??? (bun.exe)
???:?:?: 0x7ff61fc83442 in ??? (bun.exe)
???:?:?: 0x7ff61f9b1603 in ??? (bun.exe)
???:?:?: 0x7ff6224e7e33 in ??? (bun.exe)
???:?:?: 0x7fffd9047343 in ??? (KERNEL32.DLL)
???:?:?: 0x7fffd93226b0 in ??? (ntdll.dll)

Additional information

The machine that is having issues is a workstation with an older build of windows 10 on it. I've been able to install and run the cli properly on my personal machine running Windows 11 23H2.

Also, the processor on the pc in question supports AVX2 instructions, in case that becomes relevant.

cartercanedy avatar Apr 03 '24 19:04 cartercanedy

bump

cartercanedy avatar Apr 08 '24 21:04 cartercanedy

Are there any further details you can share about the machine where this error happens, to aid in reproducing this?

gvilums avatar Apr 12 '24 19:04 gvilums

I'm on a Lenovo P1 workstation laptop, processor: Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz 2.81 GHz. Is there anything else that you want me to add?

cartercanedy avatar Apr 12 '24 20:04 cartercanedy

Also happens to me on whatever I do on my work's computer (HP ZBook on windows 10). I installed bun with npm because unsigned powershell is blocked by company's policy.

Bun v1.1.4 (1.1.0 did the same). Anything else you need me to provide ?

jeremyVignelles avatar Apr 18 '24 08:04 jeremyVignelles

We're currently working on a new crash reporting tool that will hopefully enable us to debug this better. Should probably be coming in v1.1.5. Once that's merged it would be great if you could run bun again and then submit the generated crash report. Will update this issue once relevant.

gvilums avatar Apr 19 '24 16:04 gvilums