architecture: 0.942 graphic: 0.914 device: 0.897 permissions: 0.894 arm: 0.894 performance: 0.761 PID: 0.754 hypervisor: 0.741 register: 0.701 semantic: 0.678 boot: 0.629 peripherals: 0.574 risc-v: 0.559 debug: 0.545 mistranslation: 0.520 ppc: 0.504 vnc: 0.448 TCG: 0.441 kernel: 0.407 VMM: 0.380 user-level: 0.349 socket: 0.320 network: 0.287 files: 0.198 assembly: 0.097 KVM: 0.088 virtual: 0.080 x86: 0.024 i386: 0.015 -------------------- arm: 0.904 virtual: 0.856 TCG: 0.561 PID: 0.509 debug: 0.354 register: 0.138 risc-v: 0.095 kernel: 0.095 files: 0.047 hypervisor: 0.033 socket: 0.026 user-level: 0.017 ppc: 0.017 performance: 0.016 device: 0.014 network: 0.009 x86: 0.006 VMM: 0.005 assembly: 0.004 semantic: 0.004 boot: 0.003 architecture: 0.003 peripherals: 0.003 permissions: 0.002 graphic: 0.002 vnc: 0.001 KVM: 0.001 i386: 0.001 mistranslation: 0.000 `stack smashing detected` running arm64 image from amd64 machine Description of problem: When running a linux/arm64 `ubuntu:20.04` docker image on a linux/amd64 machine, an single command `apt-get update` will through below error ```sh root@189bd36b9ae7:/# apt-get update 0% [Working]*** stack smashing detected ***: terminated Reading package lists... Done E: Method http has died unexpectedly! E: Sub-process http received signal 6. ``` Tested this is happening for ubuntu:18.04, ubuntu:20.04, ubuntu:22.04 so far If running same image directly from an ARM64 host, issue is gone Steps to reproduce: 1. install QEMU on an AMD64 host machine (Ubuntu20) ```sh docker run --rm --privileged multiarch/qemu-user-static --reset -p yes ``` 2. run linux/arm64 docker image of ubuntu:20.04 ```sh docker run --platform linux/arm64 -it --entrypoint /bin/bash ubuntu:20.04 ``` 3. from within the container, run `apt-get update`, it will through below error ```sh root@189bd36b9ae7:/# apt-get update 0% [Working]*** stack smashing detected ***: terminated Reading package lists... Done E: Method http has died unexpectedly! E: Sub-process http received signal 6. ```