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

Segfault in bun #15315

Open
jerebtw opened this issue Nov 21, 2024 · 2 comments
Open

Segfault in bun #15315

jerebtw opened this issue Nov 21, 2024 · 2 comments
Labels
crash An issue that could cause a crash runtime windows An issue that is known to occur on Windows

Comments

@jerebtw
Copy link

jerebtw commented Nov 21, 2024

How can we reproduce the crash?

I used bunx --bun shadcn@latest add and wanted to add these components: badge, breadcrumb, button, calendar, card, dialog, drawer, dropdown-menu, form, input, label, pagination, popover, scroll-area, select, separator, sheet, sidebar, skeleton, slider, sonner, switch, table, tabs, toast

And after sheet.tsx bun crashed

✔ Checking registry.
✔ Updating tailwind.config.ts
✔ Updating src\app\globals.css
✔ Installing dependencies.
√ The file badge.tsx already exists. Would you like to overwrite? ... yes
√ The file breadcrumb.tsx already exists. Would you like to overwrite? ... yes
√ The file button.tsx already exists. Would you like to overwrite? ... yes
√ The file calendar.tsx already exists. Would you like to overwrite? ... yes
√ The file card.tsx already exists. Would you like to overwrite? ... yes
√ The file dialog.tsx already exists. Would you like to overwrite? ... yes
√ The file drawer.tsx already exists. Would you like to overwrite? ... yes
√ The file dropdown-menu.tsx already exists. Would you like to overwrite? ... yes
√ The file form.tsx already exists. Would you like to overwrite? ... yes
√ The file label.tsx already exists. Would you like to overwrite? ... yes
√ The file input.tsx already exists. Would you like to overwrite? ... yes
√ The file popover.tsx already exists. Would you like to overwrite? ... yes
√ The file scroll-area.tsx already exists. Would you like to overwrite? ... yes
√ The file select.tsx already exists. Would you like to overwrite? ... yes
√ The file separator.tsx already exists. Would you like to overwrite? ... yes
√ The file sheet.tsx already exists. Would you like to overwrite? ... yes

Relevant log output

Bun v1.1.34 (5e5e7c60) Windows x64
Windows v.win10_fe
CPU: sse42 avx avx2 avx512
Args: "bunx" "--bun" "shadcn@latest" "add"
Features: Bun.stderr Bun.stdin(2) Bun.stdout fetch(83) jsc spawn(2) transpiler_cache(14) tsconfig(2) 
Builtins: "bun:main" "node:assert" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:net" "node:os" "node:path" "node:process" "node:readline" "node:stream" "node:string_decoder" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node-fetch" 
Elapsed: 59665ms | User: 937ms | Sys: 234ms
RSS: 0.35GB | Peak: 0.35GB | Commit: 0.45GB | Faults: 96685

panic(main thread): Segmentation fault at address 0x5
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Stack Trace (bun.report)

Bun v1.1.34 (5e5e7c6) on windows x86_64 [BunxCommand]

Segmentation fault at address 0x00000005

  • 5 unknown/js code
  • llint_entry

Features: Bun.stderr, Bun.stdin, Bun.stdout, dotenv, fetch, jsc, spawn, transpiler_cache, tsconfig

Sentry Issue: BUN-226

@jerebtw jerebtw added the crash An issue that could cause a crash label Nov 21, 2024
@github-actions github-actions bot added runtime windows An issue that is known to occur on Windows labels Nov 21, 2024
Copy link
Contributor

@jerebtw, the latest version of Bun is v1.1.36, but this crash was reported on Bun v1.1.34.

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

bun upgrade

@jerebtw
Copy link
Author

jerebtw commented Nov 21, 2024

This is strange, I am using the latest version of Bun

❯ bun --version
1.1.36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash An issue that could cause a crash runtime windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

1 participant