Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #79581

Bug#1040981: klibc-utils: Segmentation fault while executin klibc binaries in armhf architecture under qemu-user

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Thorsten Glaser <tg@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1040981: klibc-utils: Segmentation fault while executin klibc binaries in armhf architecture under qemu-user
Date Fri, 14 Jul 2023 00:50:02 +0200
Message-ID <GRdih-2QS-5@gated-at.bofh.it> (permalink)
References <GRdih-2QS-3@gated-at.bofh.it> <GRdih-2QS-3@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Thu Jul 13 22:48:14 2023
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -2.61
Reply-To Thorsten Glaser <tg@debian.org>, 1040981@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Kernel Team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 1040981
X-Debian-Pr-Package klibc-utils
X-Debian-Pr-Source klibc
X-X-Sender tg@herc.mirbsd.org
Content-Language de-DE-1901, en-GB
MIME-Version 1.0
Content-Type TEXT/PLAIN; charset=utf-8
Content-Transfer-Encoding QUOTED-PRINTABLE
X-Crossassassin-Score 2
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1780370
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 41
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc dinesh.kumar@toshiba-tsip.com
X-Original-Date Thu, 13 Jul 2023 22:27:43 +0000 (UTC)
X-Original-Message-ID <Pine.BSM.4.64L.2307132220050.10937@herc.mirbsd.org>
X-Original-References <OSYPR01MB55428B22F74E7C2C2F2E273DA437A@OSYPR01MB5542.jpnprd01.prod.outlook.com> <OSYPR01MB55428B22F74E7C2C2F2E273DA437A@OSYPR01MB5542.jpnprd01.prod.outlook.com>
Xref csiph.com linux.debian.bugs.dist:1154118 linux.debian.kernel:79581

Cross-posted to 2 groups.

Show key headers only | View raw


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*

Since your one-stage debootstrap succeeds, can you not do the
remaining steps booting into the image-under-preparation and
run them there? Here, qemu-system-armhf should probably suffice.
I know, it’s just as a workaround, until the people in question
figure out why this happens.

bye,
//mirabilos
-- 
Solange man keine schmutzigen Tricks macht, und ich meine *wirklich*
schmutzige Tricks, wie bei einer doppelt verketteten Liste beide
Pointer XORen und in nur einem Word speichern, funktioniert Boehm ganz
hervorragend.		-- Andreas Bogk über boehm-gc in d.a.s.r

Back to linux.debian.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


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
  Processed: Re: Bug#1040981: klibc-utils: Segmentation fault while  executin klibc binaries in armhf architecture under qemu-user "Debian Bug Tracking System" <owner@bugs.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

csiph-web