Package: qemu-user
Version: 1:10.0.8+ds-0+deb13u1
Severity: important
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: arm64

The cloud team user qemu-user to emulate various non-amd64 architectures to
build images for those architectures on amd64 hosts.  We generate images for
all stable Debian releases including LTS, as well as sid and testing.  We
build for all supported releases for all architectures and supported cloud
environments each day.  Builds are performed in trixie VMs.

We have observed a scenario in which qemu segfaults when running ldconfig in
an arm64 chroot during the debootstrap process of the image build.

We have a bit more context in a gitlab issue at
https://salsa.debian.org/cloud-team/debian-cloud-images/-/work_items/97

The problem can be reproduced on a trixie amd64 system with:

$ sudo debootstrap --verbose --variant minbase --arch arm64 bullseye 
bullseye-rootfs https://deb.debian.org/debian
$ sudo chroot bullseye-rootfs /usr/bin/bash -c 'declare -i count=0; while 
ldconfig && [ $count -lt 1000 ]; do count+=1; done ; echo "Done after $count 
iterations"'

The problem appears to only be triggered by bullseye's ldconfig.  I have not
been able to reproduce it with newer versions.

The problem does not occur with every ldconfig invocation, as you can see
with:
root@fai-test:~# declare -i count=0; while ldconfig; do count+=1; done; echo 
"Done after $count iterations"
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
Done after 71 iterations
root@fai-test:~# declare -i count=0; while ldconfig; do count+=1; done; echo 
"Done after $count iterations"
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
Done after 99 iterations
root@fai-test:~# declare -i count=0; while ldconfig; do count+=1; done; echo 
"Done after $count iterations"
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
Done after 23 iterations
root@fai-test:~# declare -i count=0; while ldconfig; do count+=1; done; echo 
"Done after $count iterations"
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
Done after 41 iterations

Thanks
noah

Reply via email to