oven-sh / bun

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

Crash on Windows #13433

Open aralroca opened 1 month ago

aralroca commented 1 month ago

What version of Bun is running?

1.1.24+85a329911

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What steps can reproduce the bug?

I don't have very clear when the bug happens, I have +2000 tests and when running Windows there is a moment when it crashes and stops the execution all at once.

To reproduce it is currently a private repo, but I can give you access and then it would be just to run bun test in Windows.

What is the expected behavior?

I expect the tests to pass correctly on Windows just as they do on Mac or Linux.

What do you see instead?

Bun v1.1.24 (85a32991) Windows x64 (baseline)
Windows v.win10_fe
CPU: sse42 avx
Args: "C:\Users\Manel\.bun\bin\bun.exe" "test"
Features: jsc(2) Bun.stderr(6) Bun.stdin(4) Bun.stdout(6) bunfig define(10) external(6) macros(13) shell(16) spawn(5) transpiler_cache(9) tsconfig_paths(4) tsconfig(14) no_avx2
Builtins: "node:buffer" "node:child_process" "node:crypto" "node:fs" "node:fs/promises" "node:http" "node:https" "node:net" "node:os" "node:path" 
"node:process" "node:stream" "node:stream/web" "node:string_decoder" "node:tty" "node:url" "node:util/types" "node:vm" "node:zlib"
Elapsed: 587306ms | User: 7718ms | Sys: 2953ms
RSS: 0.41GB | Peak: 0.41GB | Commit: 9.15GB | Faults: 118145

panic(thread 8124): access of union field 'entries' while field 'err' is 
active
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:

 https://bun.report/1.1.24/et185a3299A+2gg3jBkspQ81smSCYKERNEL32.DLLo35FCSntdll.dllipmTA0eNolyEEKwCAMBMCv7C3vkrjSBYmQaPv9HpzjNHdWYQ2c0AoMcXYYY6dYhu/R5F0YMw0qNN96+QN6ZBTp

Additional information

Note: the crash link gives 404 not found, so I had to create the issue directly.

nektro commented 1 week ago

Bun v1.1.24 (85a3299) on windows x86_64_baseline [TestCommand]

panic: access of union field 'entries' while field 'err' is active