getporter / porter

Porter enables you to package your application artifact, client tools, configuration and deployment logic together as an installer that you can distribute, and install with a single command.
https://porter.sh
Apache License 2.0
1.24k stars 209 forks source link

Mac M1 porter version v1.0.0 qemu: throws uncaught target signal 11 (Segmentation fault) #2397

Open dejanu opened 2 years ago

dejanu commented 2 years ago

Describe the bug

Invoke Install action for a created bundle throws qemu: uncaught target signal 11 (Segmentation fault) - core dumped

To Reproduce

Steps to reproduce the behavior:

  1. Run $porter create
  2. Run $porter build
  3. Invoke install action $porter install

Expected behavior

Expected to run the install action from porter.yml (which is the default one used by exec mixin - meaning helper.sh)

Porter Command and Output

 $ porter install --debug
executing install action from porter-hello (installation: /porter-hello)
No existing bundle state to unpack
=== Step Template ===
{{=${ }=}}
exec:
    description: "Install Hello World"
    command: ./helpers.sh
    arguments:
        - install

Install Hello World
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
signal: segmentation fault
Collecting bundle outputs...
Packing bundle state...
1 error occurred:
    * mixin execution failed: signal: segmentation fault

1 error occurred:
    * mixin execution failed: signal: segmentation fault

1 error occurred:
    * container exit code: 1, message: <nil>

Version

dejanu commented 2 years ago

Docker uses qemu (upstream) to run Intel (amd64) containers on M1 (arm64) but it doesn’t always work, please supply an arm64 or multi-arch image, not just an Intel one.