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


Groups > linux.debian.kernel > #79586

Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user

From Helge Deller <deller@gmx.de>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user
Date 2023-07-14 06:20 +0200
Message-ID <GRirE-6gi-5@gated-at.bofh.it> (permalink)
References (1 earlier) <GRdih-2QS-5@gated-at.bofh.it> <GRdih-2QS-3@gated-at.bofh.it> <GReHn-3TC-1@gated-at.bofh.it> <GRdih-2QS-3@gated-at.bofh.it> <GReHn-3TC-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


On 7/14/23 01:56, Thorsten Glaser wrote:
> Dixi quod…
>
>> My guess here is that it’s, as usual, the fault of qemu-user,
>
> Strong evidence for that: doesn’t look like it even executes
> one bit of klibc code:
>
> $ qemu-arm-static -d cpu ./fstype --help
> qemu: uncaught target signal 11 (Segmentation fault) - core dumped
> Segmentation fault (core dumped)

what does this show?:
QEMU_STRACE=1 qemu-arm-static -d cpu ./fstype --help

I still believe, that the problem is that qemu's brk(NULL) doesn't return
a page-aligned address, which will have lots of other side-effects.
(see Andreas' RISC-V crash here: https://lists.nongnu.org/archive/html/qemu-devel/2023-07/msg00645.html)

Helge

Back to linux.debian.kernel | Previous | Next — Previous 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