evilmartians / fullstaq-ruby-docker

Docker image for Ruby build from Fullstaq packages based on Debian 10, 11, and 12.
https://evilmartians.com/chronicles/fullstaq-ruby-first-impressions-and-how-to-migrate-your-docker-kubernetes-ruby-apps-today
177 stars 21 forks source link

qemu: uncaught target signal 6 (Aborted) - core dumped #17

Open taco-chen opened 2 years ago

taco-chen commented 2 years ago

Try to use 3.1.2-jemalloc as docker base, but it seems been hanged on the bundle install with message qemu: uncaught target signal 6 (Aborted) - core dumped I'm not sure if I miss anything to build the image since I can build the image properly with ruby:3.1.2 base.

MacBook Pro (13-inch, M1, 2020) Chip: Apple M1 Latest Version of Docker Desktop for Mac

ARG RUBY_VERSION=3.1.2-jemalloc
FROM quay.io/evl.ms/fullstaq-ruby:${RUBY_VERSION}-slim
 => CACHED [4/7] COPY Gemfile /backend/Gemfile                                                                          0.0s
 => CACHED [5/7] COPY Gemfile.lock /backend/Gemfile.lock                                                                0.0s
 => [6/7] RUN bundle install                                                                                          360.0s
 => => # Fetching gem metadata from https://rubygems.org/.SEGV received in SEGV handler
 => => # SEGV received in SEGV handler
 => => # SEGV received in SEGV handler
 => => # qemu: uncaught target signal 6 (Aborted) - core dumped
Envek commented 2 years ago

That seems to be pretty widespread issue in running some AMD64 Docker images on ARM64 Macs. See:

Not sure that I can do anything to fix it here.

For proper solution we need native ARM64 build of Fullstaq Ruby, but there is no one currently (see https://github.com/evilmartians/fullstaq-ruby-docker/issues/11 and https://github.com/fullstaq-ruby/server-edition/issues/38), so most probably you can't use it reliably on ARM Macs.

taco-chen commented 2 years ago

@Envek thanks for your explanation. I'll try to build the image with another compatible devise and looking forward to native ARM64 build of Fullstaq Ruby.