QEMU internal SIGSEGV when creating an x86_64 Debian chroot from an aarch64 host. Description of problem: When I try to create a x86_64 Debian chroot using debootstrap from an aarch64 host system, QEMU segfaults causing the process to fail. Steps to reproduce: 1. Run `sudo apt install debootstrap qemu-user-static binfmt-support` 2. Run `sudo debootstrap --arch amd64 bookworm debian_chroot http://deb.debian.org/debian/` Additional information: End of deboostrap output: ``` I: Configuring dash... I: Configuring libpam-modules:amd64... I: Configuring grep... I: Configuring perl-base... I: Configuring gzip... I: Configuring passwd... I: Configuring login... I: Configuring apt... I: Configuring adduser... I: Configuring libc-bin... W: Failure while configuring required packages. W: See /home/allen/debian_chroot/debootstrap/debootstrap.log for details (possibly the package passwd is at fault) ``` End of debootstrap log: ``` $ tail /home/allen/debian_chroot/debootstrap/debootstrap.log -n30 Setting up grep (3.8-5) ... Setting up perl-base (5.36.0-7+deb12u1) ... Setting up gzip (1.12-1) ... Setting up passwd (1:4.13+dfsg1-1+b1) ... x86_64-binfmt-P: QEMU internal SIGSEGV {code=MAPERR, addr=0x20} Segmentation fault groupadd: group 'shadow' already exists Group ID 42 has been allocated for the shadow group. You have either used 42 yourself or created a shadow group with a different ID. Please correct this problem and reconfigure with dpkg --configure passwd''. Note that both user and group IDs in the range 0-99 are globally allocated by the Debian project and must be the same on every Debian system. dpkg: error processing package passwd (--configure): installed passwd package post-installation script subprocess returned error exit status 1 Setting up libpam-runtime (1.5.2-6+deb12u1) ... Setting up login (1:4.13+dfsg1-1+b1) ... dpkg: apt: dependency problems, but configuring anyway as you requested: apt depends on adduser. Setting up apt (2.6.1) ... dpkg: adduser: dependency problems, but configuring anyway as you requested: adduser depends on passwd; however: Package passwd is not configured yet. Setting up adduser (3.134) ... Processing triggers for libc-bin (2.36-9+deb12u7) ... Errors were encountered while processing: passwd ``` Full debootstrap log: [debootstrap.log](/uploads/4eb24abd98a647e08bd03deea897b9dd/debootstrap.log)