### How can we reproduce the crash? create a folder. do `bun init` inside the folder. ### Relevant log output ```shell PS C:\Users\JeffBoyes\Documents\mantis-hydra> cd ../temp PS C:\Users\JeffBoyes\Documents\temp> mkdir bun-crash Directory: C:\Users\JeffBoyes\Documents\temp Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 28/03/2025 13:22 bun-crash PS C:\Users\JeffBoyes\Documents\temp> cd bun-crash PS C:\Users\JeffBoyes\Documents\temp\bun-crash> bun init ✓ Select a project template: Blank + .gitignore + package.json + index.ts + tsconfig.json (for editor autocomplete) + README.md To get started, run: bun run index.ts ============================================================ Bun v1.2.7 (5c0fa6dc) Windows x64 Windows v.win10_cu CPU: sse42 avx avx2 Args: "C:\Users\JeffBoyes\.bun\bin\bun.exe" "init" Elapsed: 3599ms | User: 0ms | Sys: 46ms RSS: 26.69MB | Peak: 26.70MB | Commit: 56.31MB | Faults: 8160 panic(main thread): Segmentation fault at address 0x3297B94010 oh no: Bun has crashed. This indicates a bug in Bun, not your code. https://bun.report/1.2.7/.... -> here panic: Segmentation fault at address 0x113 panicked during a panic. Aborting. PS C:\Users\JeffBoyes\Documents\temp\bun-crash> ``` ### Stack Trace (bun.report) Bun v1.2.7 ([`5c0fa6d`](<https://github.com/oven-sh/bun/tree/5c0fa6dc214431a11cbd8279c6629f0fc562881d>)) on windows x86_64 [_] Segmentation fault at address 0x3297B94010 - ??? at `0x75e60` in ctiuser.dll - ??? at `0x74814` in ctiuser.dll - ??? at `0x7eb23` in KERNELBASE.dll - ??? at `0x1d3bc` in KERNEL32.DLL - [`windows.zig:434`](<https://github.com/oven-sh/bun/blob/5c0fa6dc214431a11cbd8279c6629f0fc562881d//Users/administrator/Library/Services/buildkite-agent/builds/darwin-aarch64-15-1-9/bun/bun/vendor/zig/lib/std/os/windows.zig#L434>): `WaitForSingleObjectEx` - [`Child.zig:334`](<https://github.com/oven-sh/bun/blob/5c0fa6dc214431a11cbd8279c6629f0fc562881d//Users/administrator/Library/Services/buildkite-agent/builds/darwin-aarch64-15-1-9/bun/bun/vendor/zig/lib/std/process/Child.zig#L334>): `wait` - [`cli.zig:1832`](<https://github.com/oven-sh/bun/blob/5c0fa6dc214431a11cbd8279c6629f0fc562881d/src/cli.zig#L1832>): `start` - [`cli.zig:70`](<https://github.com/oven-sh/bun/blob/5c0fa6dc214431a11cbd8279c6629f0fc562881d/src/cli.zig#L70>): `start` - [`main.zig:63`](<https://github.com/oven-sh/bun/blob/5c0fa6dc214431a11cbd8279c6629f0fc562881d/src/main.zig#L63>): `main` - [`iterator:488`](<https://github.com/oven-sh/bun/blob/5c0fa6dc214431a11cbd8279c6629f0fc562881d/src/vctools/crt/github/stl/inc/iterator#L488>): `std::operator==` <!-- from bun.report: tA65hoZJx5y_a7IYJzDY --> <!-- sentry_id: 4791d914eabc91ad2423c7b88d402563 -->
Activity
github-actions commentedon Mar 28, 2025
Thank you for reporting this crash.
For Bun's internal tracking, this issue is BUN-F04.
jboyesreach commentedon Mar 28, 2025
TBH most cli commands crash, more often than not, on my machine. They usually seem to actually succeed and then crash anyway.
tuyen-at-work commentedon Apr 1, 2025
It's an issues happened for already long time but it seems we don't know the root cause yet:
https://github.com/search?q=repo%3Aoven-sh%2Fbun+ctiuser.dll&type=issues
jboyesreach commentedon Apr 23, 2025
Possible workaround here:
#18588