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
Debian 11 Node 19.3.0 segmentation fault #16897
Comments
Thank you for the report! This looks like a duplicate of #10649, please see #10649 (comment) for the list of workarounds. TLDR: ensure that the version of OpenSSL used by Node.js is compatible with your system OpenSSL. If that is not possible, as the last resort you can try switching to the binary engine, but it is not recommended and may have worse performance. Could you provide some more details about your PostgreSQL deployment? Is it a local database or something like AWS RDS? |
@wvhulle I had same with node 18.12.1 and prisma 4.7.1. |
I encountered this problem suddenly since a few days ago too. The strange part is we had no changes in docker image or node dependencies for nearly 2 weeks. I am able to reproduce. Environment
Steps to reproduce
Dockerfile
|
Still failing on latest Prisma upgrade. I don't understand how I can fix it. How do I use other openssl? |
It is a database running on a local debian 11 server. Postgres version 15.1. The segfault handler still gives
Using `binaryTargets = ["native"] does not change this. |
It is solved by using |
@wvhulle check out their prisma docs. In the prisma schema file, you’ll see how to set the native target. |
Upgrading to debian unstable with openssl 3.0.7 fixed this temporarily but after reboot I get a segmentation fault again on prisma.$connect and prisma._engine.start(). Adding debian openssl 3 to binarytarget does not work, even though the versions are correct. |
Hi everyone! Could you check if updating This is an experimental dev version not intended for production but if it works as expected, we'll work on making this land in a stable release. Thank you! |
This version solves problem for me. Thank you! |
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 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
Some code based on the official Prisma getting started fails with a segmentation fault.
It is fine with node 16.16.0 but not node 19.3.0. I have tested also older versions of prisma but those don't work neither.
How to reproduce
Expected behavior
Run without error and output
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: