-
Notifications
You must be signed in to change notification settings - Fork 2.6k
qemu: uncaught target signal 11 (Segmentation fault) - core dumped - When running AMD64 Python PyArrow code on Mac #26036
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
Comments
Hi @Ark-kun I can't reproduce this on my M1 Macbook running Podman 5.4.2 or when building from main branch. On a mac the container operation is actually ran inside a Fedora CoreOS VM and Rosetta is used for binary translation. When the VM is created we attach the Apple Rosetta device, inside the VM we mount the device and configure binfmt_misc to use Apples Rosetta translation layer for any x86_64 binaries. Using your example I can test this:
When running a container with the --arch flag Podman is configured to pull the container image with the matching arch, binaries inside that pulled image will be compiled for that arch. When the binary is ran, if the binary files magic number matches the x86_64 bitmask we configure in You can verify if Rosetta is enable(default) by checking: Please let me know what you think. |
I'm on M4 Macbook. Pretty new, latest updates. Although, company-issued.
I'm not sure why Rosetta is turned off here. I think I've installed Podman myself (judging by dates) via Homebrew. |
Hi @Ark-kun, installing Podman from Homebrew is an unsupported method. Can you try removing the current installation and install via the pkg installer or build from source? You can find the pkg installer in our Releases page. |
I have Rosetta acceleration operational with Homebrew version (same with selfbuilt versions) on M4 Pro. I had to install Rosetta specifically, because it was not installed out of the box on a fresh OS install. @Ark-kun do you have Rosetta installed on your laptop? You might need to delete and recreate podman machine after installing Rosetta. |
please install the latest release from upstream. could you also provide |
A reviewer has determined we need more information to understand the reported issue. A comment on what is missing should be provided. Be certain you:
If no response to the For more information on reporting issues on this repository, consult our issue guide. |
Issue Description
Not sure Is this issue with Podman, Python or Pyarrow.
Trying to run container image that was built for AMD64 on a Mac. Importing
pyarrow
crashes the process. apache/arrow#46276After that I need to manually kill the podman process using
kill -9
. Normal kill does not work.Steps to reproduce the issue
Steps to reproduce the issue
podman run --arch amd64 python:3.11-slim bash -c 'pip install pyarrow==20.0.0; python -c "import pyarrow"'
Describe the results you received
Describe the results you expected
I expect to see no segfaults.
I expect podman process to not become stuck where it cannot be killed using
kill
.podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: