oven-sh / bun

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

access of inactive union field on windows #10028

Open benjamint08 opened 7 months ago

benjamint08 commented 7 months ago

What version of Bun is running?

1.1.2+c8d072c2a

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

Running build.ts in my repo probun - this works fine on Linux. The error occurs when it calls:

await $`bun x tsc`;

What is the expected behavior?

It will build my TS into JS in the lib/ folder.

What do you see instead?

uh-oh: access of inactive union field bun will crash now 😭😭😭

----- bun meta ----- Bun v1.1.2 (c8d072c2) Windows x64 RunCommand: tsconfig external shell Bun.stdout Bun.stderr Builtins: "bun:main" "node:fs" "node:string_decoder" "node:util" "node:util/types" Elapsed: 41ms | User: 0ms | Sys: 31ms RSS: 123.38MB | Peak: 123.38MB | Commit: 0.18GB | Faults: 30340 ----- bun meta -----

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

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

thread 18640 panic: access of inactive union field ???:?:?: 0x7ff790142dc4 in ??? (bun.exe) ???:?:?: 0x7ff7903474d8 in ??? (bun.exe) ???:?:?: 0x7ff78fe51a7e in ??? (bun.exe) ???:?:?: 0x7ff78fee02f4 in ??? (bun.exe) ???:?:?: 0x7ff78fee0e70 in ??? (bun.exe) ???:?:?: 0x7ff78fee3f0d in ??? (bun.exe) ???:?:?: 0x7ff7907571c7 in ??? (bun.exe) ???:?:?: 0x7ffe995a257c in ??? (KERNEL32.DLL) ???:?:?: 0x7ffe9b0eaa57 in ??? (ntdll.dll)

Additional information

Nope

lassejlv commented 7 months ago

I get the same error. (also on windows) When it out of the blue just crashing.

harphobia commented 7 months ago

I got same issue, in v1.1.3 (2615dc74) Windows x64

dylan-conway commented 3 months ago

Are you able to reproduce this crash with latest bun (v1.1.20). I believe this issue is fixed