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.
$ 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
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.
$ sudo qemu-debootstrap --arch=arm64 bullseye bullseye-arm64 http:// ftp.debian. org/debian ftp.debian. org/debian 4BDED34DB648ACF D622F3D138) ftp.debian. org/debian... debootstrap --second-stage debootstrap. log for details
I: Running command: debootstrap --arch arm64 --foreign bullseye bullseye-arm64 http://
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id 0146DC6D4A0B291
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://
...
I: Extracting zlib1g...
I: Running command: chroot bullseye-arm64 /debootstrap/
W: Failure trying to run: /sbin/ldconfig
W: See //debootstrap/
$ tail bullseye- arm64/debootstr ap/debootstrap. log 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] 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] 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] 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] 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] 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] 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] 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]
2021-05-11 11:42:17 URL:http://
2021-05-11 11:42:20 URL:http://
2021-05-11 11:42:21 URL:http://
2021-05-11 11:42:22 URL:http://
2021-05-11 11:42:23 URL:http://
2021-05-11 11:42:23 URL:http://
2021-05-11 11:42:24 URL:http://
2021-05-11 11:42:24 URL:http://
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
$ file bullseye- arm64/bin/ qemu-aarch64- static arm64/bin/ qemu-aarch64- static: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[ sha1]=9bf7d7337 05830e1a1c179ed 45bddce8f519079 7, for GNU/Linux 3.2.0, stripped
bullseye-
$ apt list qemu-user-static static/ focal-updates 1:4.2-3ubuntu6.16 amd64 [upgradable from: 1:4.2-3ubuntu6.15]
Listing... Done
qemu-user-