[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Qemu with E1000 NIC causing segfault when compiled statically in Doc
From: |
Peter Maydell |
Subject: |
Re: Qemu with E1000 NIC causing segfault when compiled statically in Docker |
Date: |
Tue, 11 Jul 2023 15:42:13 +0100 |
On Tue, 11 Jul 2023 at 15:18, Weller, Nitzan <nitzan.weller@sap.com> wrote:
>
> Hello,
>
> We are trying to run Qemu with E1000 as the NIC.
> The Qemu we use is compiled statically using a Docker, based on
> https://github.com/ziglang/qemu-static.
> When we boot a VM it causes a Segfault that crashes the VM during the boot
> process, before reaching the prompt.
> The Core dump indicated there is an issue in libslirp.
> A few things we tried:
>
> Compiling locally - Running a VM using static Qemu that we compiled locally
> on a computer doesn't cause the Segfault.
> Updating the version of Qemu or libslirp - Didn't change the outcome.
> Different NIC - Using virtio instead of E1000 doesn't cause a Segfault, but
> we need E1000.
>
> Do you have an idea what might cause this issue or how to proceed in
> investigating it?
If I understand your bug report right then you have:
* build QEMU locally, no segfault
* build identical QEMU in docker, segfaults
?
In that case you should try to narrow down exactly what
the differences are between the two build environments
(what dependent libraries are present, what configure
options passed to QEMU, what compiler version, etc),
because presumably one of those differences is affecting
the outcome.
The other thing that would be useful here is if you can
build both (the latest versions of) QEMU and libslirp with
debugging enabled and reproduce the backtrace -- optimization
has removed most of the useful clues from the backtrace you
list here, unfortunately.
thanks
-- PMM