oven-sh / bun

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

Bun crash at bun run dev #13965

Open BenBdlt opened 1 week ago

BenBdlt commented 1 week ago

How can we reproduce the crash?

On Windows 11, run a api with ElysiaJS. Im on version 1.1.20, when i try to bun upgrade ive got an error (maybe cause of my username in windows with 2 space = "PC BENIN V4"). Here is the output of the upgrade error : "$ bun upgrade Bun v1.1.27 is out! You're on v1.1.20 Expand-Archive : Impossible de trouver un paramètre positionnel acceptant l'argument « BENIN ». Au caractère Ligne:1 : 47

error: Failed to verify Bun (code: FileNotFound))"

Relevant log output

$ bun run dev
$ bun run --watch src/index.ts
============================================================
Bun v1.1.20 (ae194892) Windows x64
CPU: sse42 avx avx2
Args: "C:\Users\PC BENIN V4\.bun\bin\bun.exe" "run" "--watch" "src/index.ts"
Features: jsc Bun.stdin(2) dotenv http_server transpiler_cache(19) tsconfig_paths(2) tsconfig(15) 
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:net" "node:os" "node:path" "node:process" "node:stream" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib"         
Elapsed: 1008ms | User: 578ms | Sys: 218ms
RSS: 0.28GB | Peak: 0.28GB | Commit: 0.36GB | Faults: 69834

panic(main thread): reached unreachable code
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.20/wr1ae19489AqoghwD6/qiHmm6wN4nooKk3xqKgojizCiom93C___A1

--- Bun is auto-restarting due to crash [time: 1726321094362] ---
============================================================
Bun v1.1.20 (ae194892) Windows x64
Elapsed: 1020ms | User: 578ms | Sys: 156ms
RSS: 0.29GB | Peak: 0.29GB | Commit: 0.36GB | Faults: 70032

panic(main thread): reached unreachable code
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.20/wr1ae19489AqoghwD6/qiHmm6wNwv6wN4nooKk3xqKgojizCiom93C___A1

--- Bun is auto-restarting due to crash [time: 1726321095442] ---

      ┌─────────────────────────────────────────────────┐
      │                                                 │
      │                 Elysia v1.1.12                  │
      │                                                 │
      │  🦊 Elysia is running at http://localhost:8501  │
      │                                                 │
      └─────────────────────────────────────────────────┘

🦊 Elysia is running at localhost:8501
Connected to MongoDB

Stack Trace (bun.report)

Bun v1.1.20 (ae19489) on windows x86_64 [RunCommand]

panic: reached unreachable code

github-actions[bot] commented 1 week ago

@BenBdlt, the latest version of Bun is v1.1.27, but this crash was reported on Bun v1.1.20.

Are you able to reproduce this crash on the latest version of Bun?

bun upgrade