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

Bug if running bun add on a parent directory to the actual project #18040

Open
borland502 opened this issue Mar 10, 2025 · 0 comments
Open

Bug if running bun add on a parent directory to the actual project #18040

borland502 opened this issue Mar 10, 2025 · 0 comments
Labels
bun install Something that relates to the npm-compatible client crash An issue that could cause a crash macOS An issue that occurs on macOS

Comments

@borland502
Copy link

borland502 commented Mar 10, 2025

How can we reproduce the crash?

The proximate cause of the crash is pretty easy. I was adding a dependency, specifically drizzle-seed to the parent directory instead of the actual project. I should add that the action was user error, but I figure segfaulting is not the desirable outcome to this action.

foo/
foo/bar

Relevant log output

❯ bun add drizzle-seed                                                                              
============================================================
Bun v1.2.4 (fd9a5ea6) macOS Silicon
macOS v15.3.1
Args: "bun" "add" "drizzle-seed"
Elapsed: 12ms | User: 3ms | Sys: 5ms
RSS: 4.96MB | Peak: 4.96MB | Commit: 1.07GB | Faults: 96

panic: Segmentation fault at address 0x3C663FFFFF5
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.2.4/MI1fd9a5eaAA_u/mK2hsK2z3K2on+B+pw7Bmls7Bmoh8B251BmyZA2s8Bq////jD

[1]    59204 trace trap  bun add drizzle-seed

Stack Trace (bun.report)

Bun v1.2.4 (fd9a5ea) on macos aarch64 [AddCommand]

Segmentation fault at address 0x534E1FFFFF5

  • 1 unknown/js code
  • env_loader.Parser.parse__anon_32440
  • env_loader.Loader.loadEnvFile__anon_32526
  • env_loader.Loader.load__anon_32542
  • install.install.PackageManager.init
  • install.install.PackageManager.updatePackageJSONAndInstallAndCLI
  • install.install.PackageManager.updatePackageJSONAndInstall
  • cli.add_command.AddCommand.exec
  • cli.Cli.start
  • main

Sentry Issue: BUN-E0N

@borland502 borland502 added the crash An issue that could cause a crash label Mar 10, 2025
@github-actions github-actions bot added the macOS An issue that occurs on macOS label Mar 10, 2025
@RiskyMH RiskyMH added the bun install Something that relates to the npm-compatible client label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bun install Something that relates to the npm-compatible client crash An issue that could cause a crash macOS An issue that occurs on macOS
Projects
None yet
Development

No branches or pull requests

2 participants