-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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 #19932
Comments
@JasonLunn looks like potential pg_query issue? |
I don't have any experience with |
This is likely a dup of #16853 See #16853 (comment) |
You can try workaround in #16853 (comment) and see if it works. Basically you need to compile current version of google-protobuf gem from source on alpine and you should be fine. |
@JasonLunn I have no experience with Ruby at all. |
What version of protobuf and what language are you using?
Version: 4.29.3
Language: Ruby
What operating system (Linux, Windows, ...) and version?
Linux (ruby:3.4.1-alpine Docker image)
What runtime / compiler are you using (e.g., python version or gcc version)
Ruby 3.4.1
What did you do?
Installed sqlint gem.
Ran sqlint
What did you expect to see
sqlint to run.
What did you see instead?
Segmentation fault.
No segmentation fault with protobuf 4.29.2, so that seems to be the culprit (or at the very least shows up a either a ruby bug, or some issue with how pg_query is using protobuf).
The segmentation fault occurs within pg_query when it tries to decode a query. The
PgQuery::ParseResult.decode(result, recursion_limit: 1_000)
line below:Full output attached.
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment
The text was updated successfully, but these errors were encountered: