oven-sh / bun

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

bun install crashed #10795

Open wan54 opened 4 months ago

wan54 commented 4 months ago

How can we reproduce the crash?

Sorry, I'm not sure if it's reproducible. But looks like I can't use bun on this machine.

uname -a outputs

Darwin home.local 21.6.0 Darwin Kernel Version 21.6.0: Mon Feb 19 20:24:34 PST 2024; root:xnu-8020.240.18.707.4~1/RELEASE_X86_64 x86_64

Relevant log output

bun install v1.1.6 (e58d67b4)
  🔍 Resolving [1/1] ============================================================
Bun v1.1.6 (e58d67b4) macOS x64 (baseline)
Args: "bun", "i"
Elapsed: 177ms | User: 45ms | Sys: 22ms
RSS: 18.46MB | Peak: 18.46MB | Commit: 1.07GB | Faults: 0

panic: Illegal instruction at address 0x107CC76FD
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Stack Trace (bun.report)

Bun v1.1.6 (e58d67b) on macos x86_64_baseline [InstallCommand]

Illegal instruction at address 0x109D146FD

Features: dotenv

wan54 commented 4 months ago

Additional info:

bun init also hangs for me. No errors.

➜  buntest bun init
bun init helps you get started with a minimal project and tries to guess sensible defaults. Press ^C anytime to quit

package name (buntest):
entry point (index.ts):

Done! A package.json file was saved in the current directory.
 + index.ts
 + .gitignore
 + tsconfig.json (for editor auto-complete)
 + README.md

To get started, run:
  bun run index.ts
➜  buntest bun -v
1.1.7
wan54 commented 4 months ago

bun upgrade also crashed

➜  buntest bun upgrade
============================================================
Bun v1.1.7 (b0b7db5c) macOS x64 (baseline)
Args: "bun", "upgrade"
Elapsed: 387ms | User: 42ms | Sys: 25ms
RSS: 9.72MB | Peak: 9.72MB | Commit: 1.07GB | Faults: 0

panic: Illegal instruction at address 0x105F2695D
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.7/bp1b0b7db5AA__8tkzUkru4Swkv1jBk1j2jBy071jB+u/0Q897pG_A3C610p+F
Bun v1.1.7 ([`b0b7db5`](https://github.com/oven-sh/bun/tree/b0b7db5c060e830801b0273b7ff6e34e3eb5c254)) on macos x86_64_baseline [UpgradeCommand]

Illegal instruction at address 0x105F2695D

- *2 unknown/js code*
- `src.install.install.PackageManager.enqueueDependencyToRoot__struct_446997.issue_19586_workaround`
- `src.io.PipeReader.PosixPipeReader`
- `auto uWS::WebSocketContext<false, true, void*>::init(...)::__invoke<us_socket_t>`
- `auto uWS::WebSocketContext<true, true, void*>::init(...)::__invoke<us_socket_t>`
- `ofats::any_detail::handler_traits<void, uWS::WebSocket<true, true, void*>*, int, std::__1::basic_string_view<char, std::__1::char_traits<char> > >::handler_base<ofats::any_detail::handler_traits<void, uWS::WebSocket<true, true, void*>*, int, std::__1::basic_string_view<char, std::__1::char_traits<char> > >::large_handler<uWS::TemplatedApp<true>&& uWS::TemplatedApp<true>::ws<void*>(...)::'lambda'(...)> >::handle`
- `src.bun.js.javascript.VirtualMachine.printErrorInstance__anon_416339`
- `src.js_printer.NewPrinter`
- *1 unknown/js code*

<!-- from bun.report: nScFuZ99LyfteZx-9YHI -->