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
Segmentation Fault in Postgres #17946
Comments
Hi @josejaviersanahuja! Could you please provide more information so we could try to reproduce it? What is your Prisma version, Node.js version, your operating system and the database you are using? |
Dear @aqrln I have tried to run again everything with less packages and with a different database. In Mysql the problem doesn't happen, only with postgres. I use Postgres 15.1 and Debian 11. Node 18.1. psql (15.1 (Debian 15.1-1.pgdg110+1), servidor 14.6 (Debian 14.6-1.pgdg110+1)) New test with less packages
|
Dear all. I had to delete my postgres installation. I started using postgres in docker and is working fine. It could have been a custom config that blew everything on my end. Sorry I couldn't help with this Thanks in advance |
I have the same issue on Debian 11 with PostgreSQL 15.1 and Node 18.14.2, couldn't find any way to fix it tho. Tried installing Postgres 14 and still getting the error. |
@josejaviersanahuja no worries, given the information in your previous message I'm pretty sure it was the same problem as #10649. @TenkoSpirit 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! |
@aqrln Hello I had the same segmentation fault problem (node v18.15.0, Ubuntu WSL) and updating prisma, @prisma/client to 4.12.0-integration-rtld-deepbind.3 fixed it. Thanks! |
Ah, sorry for the late reply. I had to switch from Debian to Ubuntu, since it was basically production deployment of some project, so yeah, can't really do that now. I'll try tomorrow on my own VPS tho 👍 |
After reading this, I looked forward to seeing my SEGFAULT errors disappear. Unfortunately, this is not the case for me.
After trying |
@andreasciamanna two things here:
Could you please try that just in case anyway, and then open a new issue describing your setup and any info you could provide for reproduction? Thank you! |
@aqrln I think I already had done this when I wrote my previous message: What am I missing? |
@andreasciamanna no, you didn’t:
You're missing the other package, |
Hey! Sorry for being so late once again, just got a chance to test this. The issue seems to be present.
And some versions here
|
@TenkoSpirit hi, no worries. Regarding the versions, looks like you're using the stable 4.12.0 here too:
I think this might have happened if you used a non-exact version ( Here's a newer integration version as a pre-release of 4.13: |
Oops... Thanks. I confirm it works now. Or at least, I didn't get the segfault since I've upgraded. |
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. |
There seems to be wide confusion on the big picture here. The segmentation fault is happening on the database server. It has nothing to do with Prisma (the database client). If you're seeing this in your local environment, it probably has to do with running the docker image
So the appropriate action item for the Prisma core team is to improve the try/retry logic when encountering any db server side errors related to connections dropping, irrespective of the root cause (e.g seg fault). |
I am studying prisma to use it. But I haven't been able to use it since my first attemp is showing me this error.
[1] 6655 segmentation fault node src/seed.js
[1] 5817 segmentation fault ts-node src/seed.ts
I made the models, I run the migration but I can't use prismaClient.
Adding package.json and tsconfig
POSTGRES VERSION
The text was updated successfully, but these errors were encountered: