Public bug reported: On 20.04 amd64 trying to build a Debian bullseye chroot using debootstrap we hit a segfault apparently calling /sbin/ldconfig ,,, but don't have the same issue building a Debian buster chroot.
Can't make out if this is problems with our older qemu or something in the bullseye compilation options or a bit of both. Myself and a colleague have both hit this. $ sudo qemu-debootstrap --arch=arm64 bullseye bullseye-arm64 http://ftp.debian.org/debian I: Running command: debootstrap --arch arm64 --foreign bullseye bullseye-arm64 http://ftp.debian.org/debian I: Retrieving InRelease I: Checking Release signature I: Valid Release signature (key id 0146DC6D4A0B2914BDED34DB648ACFD622F3D138) I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Checking component main on http://ftp.debian.org/debian... ... I: Extracting zlib1g... I: Running command: chroot bullseye-arm64 /debootstrap/debootstrap --second-stage W: Failure trying to run: /sbin/ldconfig W: See //debootstrap/debootstrap.log for details $ tail bullseye-arm64/debootstrap/debootstrap.log 2021-05-11 11:42:17 URL:http://ftp.debian.org/debian/pool/main/u/util-linux/mount_2.36.1-7_arm64.deb [181404/181404] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/mount_2.36.1-7_arm64.deb" [1] 2021-05-11 11:42:20 URL:http://ftp.debian.org/debian/pool/main/u/util-linux/util-linux_2.36.1-7_arm64.deb [1096872/1096872] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/util-linux_2.36.1-7_arm64.deb" [1] 2021-05-11 11:42:21 URL:http://ftp.debian.org/debian/pool/main/v/vim/vim-common_8.2.2434-3_all.deb [226160/226160] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/vim-common_2%3a8.2.2434-3_all.deb" [1] 2021-05-11 11:42:22 URL:http://ftp.debian.org/debian/pool/main/v/vim/vim-tiny_8.2.2434-3_arm64.deb [692844/692844] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/vim-tiny_2%3a8.2.2434-3_arm64.deb" [1] 2021-05-11 11:42:23 URL:http://ftp.debian.org/debian/pool/main/v/vim/xxd_8.2.2434-3_arm64.deb [191516/191516] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/xxd_2%3a8.2.2434-3_arm64.deb" [1] 2021-05-11 11:42:23 URL:http://ftp.debian.org/debian/pool/main/x/xxhash/libxxhash0_0.8.0-2_arm64.deb [18544/18544] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/libxxhash0_0.8.0-2_arm64.deb" [1] 2021-05-11 11:42:24 URL:http://ftp.debian.org/debian/pool/main/x/xz-utils/liblzma5_5.2.5-2_arm64.deb [164528/164528] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/liblzma5_5.2.5-2_arm64.deb" [1] 2021-05-11 11:42:24 URL:http://ftp.debian.org/debian/pool/main/z/zlib/zlib1g_1.2.11.dfsg-2_arm64.deb [87944/87944] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/zlib1g_1%3a1.2.11.dfsg-2_arm64.deb" [1] qemu: uncaught target signal 11 (Segmentation fault) - core dumped Segmentation fault (core dumped) $ file bullseye-arm64/bin/qemu-aarch64-static bullseye-arm64/bin/qemu-aarch64-static: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=9bf7d733705830e1a1c179ed45bddce8f5190797, for GNU/Linux 3.2.0, stripped $ apt list qemu-user-static Listing... Done qemu-user-static/focal-updates 1:4.2-3ubuntu6.16 amd64 [upgradable from: 1:4.2-3ubuntu6.15] ** Affects: qemu (Ubuntu) Importance: Undecided Status: New ** Description changed: On 20.04 amd64 trying to build a Debian bullseye chroot using debootstrap we hit a segfault apparently calling /sbin/ldconfig ,,, but don't have the same issue building a Debian buster chroot. Can't make out if this is problems with our older qemu or something in the bullseye compilation options or a bit of both. + Myself and a colleague have both hit this. $ sudo qemu-debootstrap --arch=arm64 bullseye bullseye-arm64 http://ftp.debian.org/debian I: Running command: debootstrap --arch arm64 --foreign bullseye bullseye-arm64 http://ftp.debian.org/debian - I: Retrieving InRelease - I: Checking Release signature - I: Valid Release signature (key id 0146DC6D4A0B2914BDED34DB648ACFD622F3D138) - I: Retrieving Packages - I: Validating Packages - I: Resolving dependencies of required packages... - I: Resolving dependencies of base packages... + I: Retrieving InRelease + I: Checking Release signature + I: Valid Release signature (key id 0146DC6D4A0B2914BDED34DB648ACFD622F3D138) + I: Retrieving Packages + I: Validating Packages + I: Resolving dependencies of required packages... + I: Resolving dependencies of base packages... I: Checking component main on http://ftp.debian.org/debian... ... I: Extracting zlib1g... I: Running command: chroot bullseye-arm64 /debootstrap/debootstrap --second-stage W: Failure trying to run: /sbin/ldconfig W: See //debootstrap/debootstrap.log for details - - $ tail bullseye-arm64/debootstrap/debootstrap.log + $ tail bullseye-arm64/debootstrap/debootstrap.log 2021-05-11 11:42:17 URL:http://ftp.debian.org/debian/pool/main/u/util-linux/mount_2.36.1-7_arm64.deb [181404/181404] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/mount_2.36.1-7_arm64.deb" [1] 2021-05-11 11:42:20 URL:http://ftp.debian.org/debian/pool/main/u/util-linux/util-linux_2.36.1-7_arm64.deb [1096872/1096872] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/util-linux_2.36.1-7_arm64.deb" [1] 2021-05-11 11:42:21 URL:http://ftp.debian.org/debian/pool/main/v/vim/vim-common_8.2.2434-3_all.deb [226160/226160] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/vim-common_2%3a8.2.2434-3_all.deb" [1] 2021-05-11 11:42:22 URL:http://ftp.debian.org/debian/pool/main/v/vim/vim-tiny_8.2.2434-3_arm64.deb [692844/692844] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/vim-tiny_2%3a8.2.2434-3_arm64.deb" [1] 2021-05-11 11:42:23 URL:http://ftp.debian.org/debian/pool/main/v/vim/xxd_8.2.2434-3_arm64.deb [191516/191516] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/xxd_2%3a8.2.2434-3_arm64.deb" [1] 2021-05-11 11:42:23 URL:http://ftp.debian.org/debian/pool/main/x/xxhash/libxxhash0_0.8.0-2_arm64.deb [18544/18544] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/libxxhash0_0.8.0-2_arm64.deb" [1] 2021-05-11 11:42:24 URL:http://ftp.debian.org/debian/pool/main/x/xz-utils/liblzma5_5.2.5-2_arm64.deb [164528/164528] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/liblzma5_5.2.5-2_arm64.deb" [1] 2021-05-11 11:42:24 URL:http://ftp.debian.org/debian/pool/main/z/zlib/zlib1g_1.2.11.dfsg-2_arm64.deb [87944/87944] -> "/media/tj/SLBS/EV/IT/chroot/bullseye-arm64//var/cache/apt/archives/partial/zlib1g_1%3a1.2.11.dfsg-2_arm64.deb" [1] qemu: uncaught target signal 11 (Segmentation fault) - core dumped Segmentation fault (core dumped) - - $ file bullseye-arm64/bin/qemu-aarch64-static + $ file bullseye-arm64/bin/qemu-aarch64-static bullseye-arm64/bin/qemu-aarch64-static: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=9bf7d733705830e1a1c179ed45bddce8f5190797, for GNU/Linux 3.2.0, stripped $ apt list qemu-user-static Listing... Done qemu-user-static/focal-updates 1:4.2-3ubuntu6.16 amd64 [upgradable from: 1:4.2-3ubuntu6.15] -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1928075 Title: Segfault with qemu-aarch64-static doing debootstrap for debian bullseye but not buster To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1928075/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs