Bug#1011003: regression: qemu-user-static produces segfaults in foreign arch mmdebstrap

2022-05-17 Thread Michael Tokarev
17.05.2022 14:51, Michael Tokarev wrote: ... Now you have a reproducer that installed qemu-user-static on a real system and not a chroot and we observe the same effect. And now this is interesting.  I finally were able to reproduce the issue but I don't think the prob is in qemu.  It is the gcc

Bug#1011003: regression: qemu-user-static produces segfaults in foreign arch mmdebstrap

2022-05-17 Thread Michael Tokarev
16.05.2022 17:49, Johannes Schauer Marin Rodrigues wrote: ... $ qemu-img create -f qcow2 disk.qcow 4G $ curl --fail https://d-i.debian.org/daily-images/amd64/daily/netboot/debian-installer/amd64/initrd.gz > initrd.gz $ curl --fail https://d-i.debian.org/daily-images/amd64/daily/

Bug#1011003: regression: qemu-user-static produces segfaults in foreign arch mmdebstrap

2022-05-16 Thread Michael Tokarev
17.05.2022 07:26, Johannes Schauer Marin Rodrigues wrote: ... I just learned about a much simpler way (classic: right after asking the expert). qemu-user emulation is also disabled by setting the QEMU_VERSION variable to something as this will mean that qemu-user exits without doing anything (oth

Bug#1011003: regression: qemu-user-static produces segfaults in foreign arch mmdebstrap

2022-05-16 Thread Johannes Schauer Marin Rodrigues
Quoting Michael Tokarev (2022-05-16 07:46:01) > Yes this is possible, but only at the binfmt_misc level. > >echo 0 > /proc/sys/fs/binfmt_misc/qemu-aarch64 -- disable this particular > entry >echo 1 > /proc/sys/fs/binfmt_misc/qemu-aarch64 -- enable it > >echo 0 > /proc/sys/fs/binfmt

Bug#1011003: regression: qemu-user-static produces segfaults in foreign arch mmdebstrap

2022-05-16 Thread Johannes Schauer Marin Rodrigues
Quoting Johannes Schauer Marin Rodrigues (2022-05-16 16:49:12) > Then reboot the thing just to be sure and then run: > > $ mmdebstrap --arch=arm64 --variant=apt unstable /dev/null > ... > I: extracting archives... > done > I: installing essential packages... > done > qe

Bug#1011003: regression: qemu-user-static produces segfaults in foreign arch mmdebstrap

2022-05-16 Thread Johannes Schauer Marin Rodrigues
Hi, Quoting Michael Tokarev (2022-05-16 07:46:01) > > I'm not sure what you mean with "fall back". Maybe you mean that mmdebstrap > > reads /proc/sys/fs/binfmt_misc/qemu-$arch and then looks for an F in the > > "flags" field. If it finds that, then it will not copy qemu-user-static > > into the ch

Bug#1011003: regression: qemu-user-static produces segfaults in foreign arch mmdebstrap

2022-05-15 Thread Michael Tokarev
Control: reopen -1 16.05.2022 01:07, Johannes Schauer Marin Rodrigues wrote: Hi mjt, Thank you very much for this excellent bug report! thank you for your very quick reply! :D Well.. it turned out my replies, while quick, aren't that helpful ;) But let's see.. On Sun, 15 May 2022 10:43:4

Bug#1011003: regression: qemu-user-static produces segfaults in foreign arch mmdebstrap

2022-05-15 Thread Johannes Schauer Marin Rodrigues
Hi mjt, > Thank you very much for this excellent bug report! thank you for your very quick reply! :D On Sun, 15 May 2022 10:43:43 +0300 Michael Tokarev wrote: > 15.05.2022 09:43, Michael Tokarev wrote: > > Meanwhile can you please try moving qemu bits away from /usr/lib/binfmt.d/ > > (this part

Bug#1011003: regression: qemu-user-static produces segfaults in foreign arch mmdebstrap

2022-05-15 Thread Michael Tokarev
15.05.2022 09:43, Michael Tokarev wrote: .. Meanwhile can you please try moving qemu bits away from /usr/lib/binfmt.d/ (this particular architecture should be enough), and see if that helps? I don't know what's needed for binfmt-support to re-register its fmt though, - a reboot should help but th

Bug#1011003: regression: qemu-user-static produces segfaults in foreign arch mmdebstrap

2022-05-14 Thread Michael Tokarev
15.05.2022 09:06, Johannes Schauer Marin Rodrigues wrote: ... Hello! Thank you very much for this excellent bug report! From the output above it is quite clear that the upgrade of qemu-user-static from 1:7.0+dfsg-2+b1 to 1:7.0+dfsg-3 is the culprit. Looking at d/changelog indeed reveals some

Bug#1011003: regression: qemu-user-static produces segfaults in foreign arch mmdebstrap

2022-05-14 Thread Johannes Schauer Marin Rodrigues
Package: qemu-user-static Version: 1:7.0+dfsg-3 Severity: important X-Debbugs-Cc: jo...@debian.org Control: affects -1 + mmdebstrap Hi, a few days ago, the mmdebstrap testsuite started to break like this: 00:00:00.206 E: + ./mmdebstrap --mode=root --variant=apt --architectures=arm64 unstable /t