Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1154181
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1040981: klibc-utils: Segmentation fault while executin klibc binaries in armhf architecture under qemu-user |
| Date | 2023-07-14 15:30 +0200 |
| Message-ID | <GRr1U-bwl-13@gated-at.bofh.it> (permalink) |
| References | <GRdih-2QS-3@gated-at.bofh.it> <GRdih-2QS-3@gated-at.bofh.it> <GRdih-2QS-5@gated-at.bofh.it> <GRdih-2QS-3@gated-at.bofh.it> <GRdih-2QS-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Thu, 2023-07-13 at 22:27 +0000, Thorsten Glaser wrote: > retitle 1040981 klibc-utils: segfault executing armhf binaries under qemu-user > thanks > > Venkata.Pyla@toshiba-tsip.com dixit: > > > Follow below steps to reproduce this issue > > ``` > > $ sudo debootstrap --arch=arm bookworm arm-bookworm-rootfs/ http://deb.debian.org/debian/ > > $ sudo chroot arm-bookworm/ apt-update && apt install -y klibc-utils > > $ sudo chroot arm-bookworm/ /usr/lib/klibc/bin/fstype --help > > qemu: uncaught target signal 11 (Segmentation fault) - core dumped > > Segmentation fault > > ``` > > Same when just copying klibc-m13AniKHUCMUNN8mXSUhIi8CUSA.so out > of libklibc_2.0.12-1_armhf.deb into /lib/ and extracting fstype > from klibc-utils_2.0.12-1_armhf.deb… however it works both on a > real-metal ARM box (amdahl.d.o) and a statically(!) linked mksh > against klibc :/ > > My guess here is that it’s, as usual, the fault of qemu-user, > which has multiple outstanding emulation bugs, some of which > affecting klibc-built binaries especially, though this, since > a statically linked mksh works, is probably an issue with how > qemu-user handles .interp *shrug* [...] I use QEMU to test klibc changes on as many architectures as possible. For a long time I used QEMU 3.1 with some cherry-picked bug fixes. All the GNU-built binaries would run successfully on that, but Clang- built binaries for some architectures did not. Switching klibc to the time64 kernel API forced me to update to QEMU 7.2. This introduced regressions for shared-library executables for armhf and riscv64. There is some more detail on this at <https://git.kernel.org/pub/scm/linux/kernel/git/bwh/klibc-maint.git/plain/status.md> Ben. -- Ben Hutchings Hoare's Law of Large Problems: Inside every large problem is a small problem struggling to get out.
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#1040981: klibc-utils: Segmentation fault while executin klibc binaries in armhf architecture under qemu-user Thorsten Glaser <tg@debian.org> - 2023-07-14 00:50 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Thorsten Glaser <tg@debian.org> - 2023-07-14 02:20 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Helge Deller <deller@gmx.de> - 2023-07-14 06:20 +0200
Bug#1040981: klibc-utils: Segmentation fault while executin klibc binaries in armhf architecture under qemu-user Ben Hutchings <ben@decadent.org.uk> - 2023-07-14 15:30 +0200
Bug#1040981: klibc-utils: Segmentation fault while executin klibc binaries in armhf architecture under qemu-user Michael Tokarev <mjt@tls.msk.ru> - 2023-07-14 15:40 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Thorsten Glaser <tg@debian.org> - 2023-07-14 20:50 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Michael Tokarev <mjt@tls.msk.ru> - 2023-07-14 21:40 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Thorsten Glaser <tg@debian.org> - 2023-07-14 22:20 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Michael Tokarev <mjt@tls.msk.ru> - 2023-07-14 22:30 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Thorsten Glaser <tg@debian.org> - 2023-07-15 00:20 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Ben Hutchings <ben@decadent.org.uk> - 2023-07-15 23:50 +0200
csiph-web