Skip to content

bun init crash on windows #18587

Closed as duplicate
Closed as duplicate

Description

@jboyesreach

How can we reproduce the crash?

create a folder.
do bun init inside the folder.

Relevant log output

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) on windows x86_64 [_]

Segmentation fault at address 0x3297B94010

Activity

  1. github-actions commented on Mar 28, 2025

    @github-actions
    Contributor

    Thank you for reporting this crash.

    For Bun's internal tracking, this issue is BUN-F04.

  2. jboyesreach commented on Mar 28, 2025

    @jboyesreach
    Author

    TBH most cli commands crash, more often than not, on my machine. They usually seem to actually succeed and then crash anyway.

  3. tuyen-at-work commented on Apr 1, 2025

    @tuyen-at-work

    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

  4. jboyesreach commented on Apr 23, 2025

    @jboyesreach
    Author

    Possible workaround here:
    #18588

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

crashAn issue that could cause a crashwindowsAn issue that is known to occur on Windows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions