Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bun install crashed #10795

Open
wan54 opened this issue May 3, 2024 · 2 comments
Open

bun install crashed #10795

wan54 opened this issue May 3, 2024 · 2 comments
Labels
bug Something isn't working crash An issue that could cause a crash

Comments

@wan54
Copy link

wan54 commented May 3, 2024

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

  • 2 unknown/js code
  • src.install.install.PackageManager.enqueueDependencyToRoot__struct_445492.issue_19586_workaround
  • src.shell.interpreter.Interpreter.Binary.makeChild
  • uWS::WebSocketContext<false, true, void*>::handleFragment
  • auto uWS::WebSocketContext<true, true, void*>::init(...)::__invoke<us_socket_t>
  • auto uWS::WebSocketContext<true, true, void*>::init(...)::__invoke<us_socket_t>
  • src.bun.js.javascript.VirtualMachine.printErrorInstance__anon_414869
  • src.js_printer.NewPrinter
  • 1 unknown/js code

Features: dotenv

@wan54 wan54 added bug Something isn't working crash An issue that could cause a crash labels May 3, 2024
@wan54
Copy link
Author

wan54 commented May 4, 2024

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
Copy link
Author

wan54 commented May 4, 2024

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 -->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash An issue that could cause a crash
Projects
None yet
Development

No branches or pull requests

1 participant