Skip to content
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

Segfault with google-protobuf 4.29.3 #323

Open
vhiairrassary opened this issue Jan 10, 2025 · 1 comment
Open

Segfault with google-protobuf 4.29.3 #323

vhiairrassary opened this issue Jan 10, 2025 · 1 comment

Comments

@vhiairrassary
Copy link

Hello,

After upgrading our gems we encountered a lot of segfaults, which seem to be linked to pg_query (6.0.0) and google-protobuf 4.29.3 (as it works fine with 4.29.2). Other people seem to be impacted as well (we also use ruby:3.4.1-alpine). Do you have any idea where we can start to have a look to create a minimal example?

Thank you in advance

@stanhu
Copy link
Contributor

stanhu commented Jan 15, 2025

This isn't a pg_query issue. I think the issue is that for Ruby 3.4 the precompiled google-protobuf gem doesn't work on Alpine (musl) builds. As described in protocolbuffers/protobuf#16853 (comment), you'll probably need to ensure google-protobuf uses the Ruby platform to recompile it properly:

gem 'google-protobuf', force_ruby_platform: true if RUBY_PLATFORM.include?('linux-musl')

I suspect like other precompiled gems, google-protobuf will release separate GNU and musl versions of the gem. Until then, you'll need to ensure google-protobuf is recompiled for your platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants