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 when using Prisma in workers on windows #14332

Closed
KilianB opened this issue Oct 3, 2024 · 3 comments
Closed

Segfault when using Prisma in workers on windows #14332

KilianB opened this issue Oct 3, 2024 · 3 comments
Labels
crash An issue that could cause a crash windows An issue that is known to occur on Windows

Comments

@KilianB
Copy link
Contributor

KilianB commented Oct 3, 2024

How can we reproduce the crash?

Clone https://github.com/KilianB/BunWorkerCrash and run.
I tried version 1.26 as well as the current canary and both are crashing on windows. Ubuntu works fine.

Relevant log output

No response

Stack Trace (bun.report)

Bun v1.1.30-canary (39b1c01) on windows x86_64 [RunCommand]

Segmentation fault at address 0xFFFFFFFFFFFFFFFF

Features: workers_spawned, workers_terminated, dotenv, jsc, transpiler_cache, tsconfig, tsconfig_paths, tsconfig_paths

@KilianB KilianB added the crash An issue that could cause a crash label Oct 3, 2024
@github-actions github-actions bot added the windows An issue that is known to occur on Windows label Oct 3, 2024
@KilianB KilianB changed the title Segfault when using workers #2 Segfault in NapiFinalizer when using workers Oct 3, 2024
@KilianB
Copy link
Contributor Author

KilianB commented Oct 4, 2024

This might be a race condition. Defering terminating the workers for a few seconds with worker.terminate() does not result in a crash

@KilianB KilianB changed the title Segfault in NapiFinalizer when using workers Segfault when using Prisma in workers on windows Oct 4, 2024
@KilianB
Copy link
Contributor Author

KilianB commented Oct 4, 2024

Added a reproduction repository and checked that it runs on Linux. It's only crashing on windows. You might need to run the code few times for it to happen. The higher the worker count the more likely it is to fail

@Jarred-Sumner
Copy link
Collaborator

Tracking this in #15964

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 windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

2 participants