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

Segmentation fault on linux-musl platform #210

Closed
Physium opened this issue May 15, 2024 · 4 comments
Closed

Segmentation fault on linux-musl platform #210

Physium opened this issue May 15, 2024 · 4 comments

Comments

@Physium
Copy link

Physium commented May 15, 2024

I'm trying to run rails 7 on ruby-alphine docker image and face an issue when i try executing any rails commands

Error:
sass-embedded-1.77.0-aarch64-linux-musl/ext/sass/embedded_sass_pb.rb:11: [BUG] Segmentation fault at 0x0000000000003b60

Is this gem not supported for alphine?

@ntkme
Copy link
Member

ntkme commented May 15, 2024

This is a bug in google-protobuf, see protocolbuffers/protobuf#16853 for details.

Workaround - add the following to Gemfile:

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

@ntkme ntkme closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
@Physium
Copy link
Author

Physium commented May 15, 2024

Thanks! I have the workaround, just wondering if theres a way if I can get gems natively compiled based on the platform type. Will proceed with the workaround, thanks!

@ntkme
Copy link
Member

ntkme commented May 15, 2024

if theres a way if I can get gems natively compiled based on the platform type

The bug has been reported protobuf team, now we have to wait for them to fix it in future releases.

@ntkme
Copy link
Member

ntkme commented Jan 14, 2025

This now affects x86_64-linux-musl as well.

Workaround:

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

@ntkme ntkme changed the title Gem fails when trying to run on aarch64-linux-musl platform Gem fails when trying to run on linux-musl platform Jan 14, 2025
@ntkme ntkme changed the title Gem fails when trying to run on linux-musl platform Segmentation fault on linux-musl platform Jan 14, 2025
@ntkme ntkme marked this as a duplicate of #282 Jan 24, 2025
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