-
Notifications
You must be signed in to change notification settings - Fork 910
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
when running in a linux/amd64
docker container on Apple Silicon macOS
#3902
Comments
I believe this is the same as rust-lang/rust#125430, which has some workarounds. I believe this may be a Docker issue, and I'm not sure how possible it would be for rustup to work around it. |
Ah, thanks. I'll close this issue as a dupe of rust-lang/rust#125430 then. |
rustup doesn't work in a amd64 container on aarch64 host. See rust-lang/rustup#3902
For the record, disabling Rosetta in the Docker Desktop options does also solve this problem, as mentioned in rust-lang/rust#125430 |
@staktrace i had the same issue in macbook pro m1 - disabling rosetta in the Docker Desktop also helped there. |
@geraldstanje I don't plan on fixing it, no. Seems like a docker desktop bug. You'd have to ask docker folks. |
For those looking for a solution right now, disable |
Segmentation fault
when running in a linux/amd64
docker container on macOS M3 host
Segmentation fault
when running in a linux/amd64
docker container on macOS M3 hostSegmentation fault
when running in a linux/amd64
docker container on Apple Silicon macOS
FYI this is a Docker issue and has nothing to do with this project per se. You'll need to update docker to fix it:
|
Verification
Problem
Running rustup inside a linux/amd64 docker container on an M3 macOS machine segfaults. Instead it should not segfault.
Steps
On a Macbook Pro with a Apple M3 Max chip, running Sonoma 14.5 (23F79). I have docker installed, and start a docker container like so:
Inside the docker container, I run the following:
The rustup command produces this output:
Possible Solution(s)
Running the docker command with
--platform linux/aarch64
and intead of--platform linux/amd64
allows the rustup command to succeed. However I need the amd64 docker build as I need to install other tools that are only precompiled for amd64.Notes
No response
Rustup version
rustup 1.27.1 (54dd3d00f 2024-04-24)
Installed toolchains
N/A since the toolchain installation is the problem
OS version
macOS Sonoma 14.5 (23F79)
The text was updated successfully, but these errors were encountered: