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
99056 segmentation fault (core dumped) node --require esbuild-register prisma/seed.ts #18559
Comments
Try using binary engine generator client {
provider = "prisma-client-js"
engineType = "binary"
} then npx prisma db push |
That worked thank you @roxxel! I wonder what this does though and why it fixed the bug. |
@aqrln can explain this one. We are working on a fix and currently testing it already. |
@sergiotapia Prisma relies on system OpenSSL library, which in your case is OpenSSL 1.1. So we download the Query Engine library (Node.js addon) and the Migration Engine binary compatible with OpenSSL 1.1. However, when the Node.js addon is dynamically loaded, the symbols are resolved by the dynamic linker to point at the functions from OpenSSL 3 bundled with Node.js, and the system OpenSSL is ignored. This leads to problems because OpenSSL 1.1 and OpenSSL 3 aren't compatible. This doesn't happen when using As @janpio said above, we have a fix for this and are currently testing it. |
Thanks for the in depth explanation! You guys are fantastic |
This issue is fixed in Prisma 4.13.0 which will be released tomorrow, on Tuesday, Apr 18. If you need to temporarily use a pre-release version until then, you can use For future readers: Note that this GitHub issue is about a specific bug that occurs when using Node.js 17+ on a system with OpenSSL 1.1 on x86-64 CPUs when using TLS to connect to database. Please do not post comments here if you encounter a segfault under different circumstances, and open a new issue instead. If you are facing segfaults on ARM, please leave a comment in #18510 or open a new issue. |
Bug description
I'm following the Remix joke tutorial app and in this part with the seeds file, I get a seg fault.
[1] 99056 segmentation fault (core dumped) node --require esbuild-register prisma/seed.ts
The output is:
Appreciate any tips!
How to reproduce
Run the command in the output.
node --require esbuild-register prisma/seed.ts
Expected behavior
Should run the script.
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: