You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Segmentation fault when running in a linux/amd64 docker container on Apple Silicon macOS #3902
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
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.
@staktrace i had the same issue in macbook pro m1 - disabling rosetta in the Docker Desktop also helped there.
do you plan to fix it also for not disabling rosetta in the Docker Desktop? what is the consequence of disabling rosetta - will the compile time for rust be slower because of that?
changed the title [-]rustup segfaults 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 host[/+]on Nov 14, 2024
changed the title [-]`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 Apple Silicon macOS[/+]on Nov 14, 2024
Activity
ehuss commentedon Jun 24, 2024
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.
staktrace commentedon Jun 24, 2024
Ah, thanks. I'll close this issue as a dupe of rust-lang/rust#125430 then.
Switch back to default container and compile graphviz from source
staktrace commentedon Jun 24, 2024
For the record, disabling Rosetta in the Docker Desktop options does also solve this problem, as mentioned in rust-lang/rust#125430
geraldstanje commentedon Jun 26, 2024
@staktrace i had the same issue in macbook pro m1 - disabling rosetta in the Docker Desktop also helped there.
do you plan to fix it also for not disabling rosetta in the Docker Desktop? what is the consequence of disabling rosetta - will the compile time for rust be slower because of that?
staktrace commentedon Jun 27, 2024
@geraldstanje I don't plan on fixing it, no. Seems like a docker desktop bug. You'd have to ask docker folks.
kylehassett commentedon Jul 16, 2024
For those looking for a solution right now, disable
Rosettain Docker Desktop'sGeneralsettings.[-]rustup segfaults 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 host[/+][-]`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 Apple Silicon macOS[/+]rami3l commentedon Nov 14, 2024
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:
rust-lang/rust#125430 (comment)
ci: add amd64 Docker build & push workflow