id = 2531 title = "QEMU internal SIGSEGV when creating an x86_64 Debian chroot from an aarch64 host." state = "closed" created_at = "2024-08-22T20:23:04.155Z" closed_at = "2024-10-07T16:11:20.811Z" labels = ["host: arm", "linux-user", "target: i386", "workflow::Needs Info"] url = "https://gitlab.com/qemu-project/qemu/-/issues/2531" host-os = "Ubuntu 24.04 LTS (Running in WSL2 on Windows 11)" host-arch = "aarch64" qemu-version = "qemu-x86_64 version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1)" guest-os = "Debian 12" guest-arch = "x86_64" description = """When I try to create a x86_64 Debian chroot using debootstrap from an aarch64 host system, QEMU segfaults causing the process to fail.""" 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 = """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)"""