[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: linux-user/elfload.c: Seeing a segfault in qemu with a binary with n
|
From: |
Philippe Mathieu-Daudé |
|
Subject: |
Re: linux-user/elfload.c: Seeing a segfault in qemu with a binary with no data section |
|
Date: |
Mon, 2 Nov 2020 19:56:39 +0100 |
|
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 |
On 11/2/20 7:30 PM, Stephen Long wrote:
> Hi, we are seeing a segfault in qemu in the following code snippet in
> zero_bss():
>
> if (host_start < host_map_start) {
> memset((void *)host_start, 0, host_map_start - host_start);
> }
>
> The elf doesn't have a data section, so host_start isn't mapped. I'm not sure
> whether this is a qemu issue or the generated elf is no good.
Is it https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919921 ?
Ben never sent it to qemu-devel.
>
> Thanks,
> Stephen
>