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

Malformed enum causes crash loop #16083

Closed
xorraxraxret opened this issue Dec 31, 2024 · 1 comment · Fixed by #16084
Closed

Malformed enum causes crash loop #16083

xorraxraxret opened this issue Dec 31, 2024 · 1 comment · Fixed by #16084
Labels
crash An issue that could cause a crash linux An issue that occurs on Linux

Comments

@xorraxraxret
Copy link

xorraxraxret commented Dec 31, 2024

How can we reproduce the crash?

enum CrashMe {
  [a] = "Davis fix",
}

Putting this in your code causes Bun to crash repeatedly during parsing.

Stack Trace (bun.report)

Bun v1.1.42-canary (e96dded) on linux x86_64 [RunCommand]

Segmentation fault at address 0x3724A000000

Features: process_dlopen, dotenv, jsc, transpiler_cache, tsconfig, tsconfig

@xorraxraxret xorraxraxret added the crash An issue that could cause a crash label Dec 31, 2024
Copy link
Contributor

Thank you for reporting this crash.

For Bun's internal tracking, this issue is BUN-AJ2.

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 linux An issue that occurs on Linux
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant