-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Error: Command was killed with SIGSEGV (Segmentation fault): /Users/.../node_modules/prisma2/query-engine-darwin --enable_raw_queries cli --dmmf #1819
Comments
This comment has been minimized.
This comment has been minimized.
We could reproduce internally and are now investigating and working on a fix. |
Persisting the error logs of our internal reproduction (that only worked once unfortunately):
Version:
Manual execution of binary directly:
And the error output from prisma/migrate#364:
Interesting to note here that our internal reproduction was not with |
I use 2.0.0-preview021 because I can not upgrade without #1777 Please, how can I be affected by the bug and will the future fix force the upgrade to preview23 please? Thank You |
Sorry, I did not see this comment when you first posted it. Excuse the wait @dizzyn . Can you post more information how exactly you get this error? What are you doing, what is the exact error message? |
Ok, we have another case where the binary was broken:
Luckily @olance spent quite some time figuring stuff out - and could if it in the end. |
An update on our investigation: Somehow the binary is corrupted between download, unpacking, and being moved to the correct location. This is super hard and flaky to reproduce, and we have no real idea what is causing it: It might be the CDN, the download process, the unpacking, the moving, any third party or even OS software - or a combination of all of that as it seems under some circumstances multiple processes to the same thing at the same time. To avoid that as good as possible we for now implemented a lockfile that makes sure only one process downloads and unpacks (which also makes sense as doing the same thing twice is kind of useless). If that does not help enough, we might also implement some checksum comparison for the downloaded (or unpacked) files soon. We are open to other suggestions and ideas. |
Hi @janpio thanks for pointing me to this issue! I think I'm now 99% sure this was a corrupted binary that caused the issue:
I'd really encourage implementation of a checksum indeed, that would help at least catch the issue early on if it's really a corruption problem. I don't think crash reports will be very helpful if we're really looking at corrupted downloads, but just in case, here goes:
The 20 crash reports I have for I have uploaded all crash reports for your review, including one for The archive also contains a copy of the working runtime and one of the faulty runtime. That's it! |
Thanks @olance - this confirms our observations: There is a chunk of data missing in the binaries for an unknown reason. As I wrote above, we have our theories but we do not know for sure. We will get more data when |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
We haven't seen a segfault caused by a corrupt binary for quite some time, so I think the best move is to close this issue for now. We can still reopen if someone experiences the same problem again <3 |
@janpio Just found this post via a Google search seconds before you closed it; crazy timing. Anyway, I am hitting a segmentation fault error when running
And here's the full schema.prisma file:
There's not much detail provided about why there's a segmentation fault happening. FWIW, the Also, this problem was not occurring on Friday. I was using the same Prisma version, same dependencies, same sequence of commands, same schema file, etc. |
Happening as well when trying out redwoodjs.
Since then I blew out my entire git repo, yarn cache, prisma cache. I now get an error even trying Using Pop_os 20.04 (ubuntu basically) |
Are you using Node js 14? If yes, please try the latest alpha |
I sure am, I knew it was a bad idea to use newest node 🙃 I’ll try an older node, thank you EDIT node 12.16.3 works perfectly, thanks again! |
Using Node.js v12 instead of v14 fixed the issue for me as well. |
Sorry, should have highlighted issue #2361 in my closing comment as well to point out that there is/was a problem with Node 14. Thanks for the update, happy that this one is not back 🚀 |
This solved it for me too! Thank you. I used the snippet here to force the node version to 12.16.3 for my Prisma-containing project only. |
I ran into this issue when attempting seed 1,230 objects into a Supabase table. I was using node v17.x at the time and every time I ran
I then changed back to the most recent node LTS (v16.16.0 at the time of this writing) and it worked without issue. |
Same situation, Supabase table tutorial, node v18.x was causing the SIGSEGV issue. Changed back to v16.3, ran fine |
Redwood was released yesterday, and we have 2 reports of segfaults in Prisma tooling:
This issue is our representation of the second one above:
The Redwood team also supplied some context where in their code our tooling is called here:
The text was updated successfully, but these errors were encountered: