Received: from eggs.gnu.org ([209.51.188.92]:59837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwoCI-0008Oa-1N for qemu-devel@nongnu.org; Thu, 21 Feb 2019 08:15:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwnxw-0005K4-Aw for qemu-devel@nongnu.org; Thu, 21 Feb 2019 08:00:48 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:42318) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gwnxw-0005Eu-3E for qemu-devel@nongnu.org; Thu, 21 Feb 2019 08:00:40 -0500 Received: by mail-wr1-x444.google.com with SMTP id r5so16624363wrg.9 for ; Thu, 21 Feb 2019 05:00:31 -0800 (PST) References: <20190220172811.10588-1-alex.bennee@linaro.org> <87k1hu41z6.fsf@zen.linaroharston> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: Date: Thu, 21 Feb 2019 13:00:29 +0000 Message-ID: <87imxd47pu.fsf@zen.linaroharston> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v1 0/8] testing/next List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , John Snow , qemu-block@nongnu.org, rth@twiddle.net, ehabkost@redhat.com Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, peter.maydell@linaro.org Thomas Huth writes: > On 20/02/2019 21.52, Alex Benn=C3=A9e wrote: >> >> Alex Benn=C3=A9e writes: >> >>> Hi, >>> >>> tests/boot-sector.c:161:boot_sector_test: >>> assertion failed (signature =3D=3D SIGNATURE): (0x0000face =3D=3D 0= x0000dead) >>> >>> I have seen this locally and got a core dump but it doesn't show much. >>> I'm going to see if I can get more out of a debug build. It is >>> generated by: >>> >>> tests/cdrom-test -m=3Dquick -k --tap >>> >>> I think the subtest is: >>> >>> /x86_64/cdrom/boot/isapc >>> >>> Attaching to the child QEMU looks like it is eternally returning >>> -EINTR and looping around with the occasionally kvm_handle_io to port >>> 146 and port 112. I guess under test conditions this eventually times >>> out and dies. >> >> >> This is load related. I can run: >> >> retry.py --timeout 600 -n 500 -c -- \ >> env QTEST_QEMU_BINARY=3Dx86_64-softmmu/qemu-system-x86_64 \ >> QTEST_QEMU_IMG=3Dqemu-img ./tests/cdrom-test \ >> -m=3Dquick -p /x86_64/cdrom/boot/isapc >> >> and then all 500 run fine. If I do the same while running a make check >> check-tcg -j9 in another build directory it hangs within 20 odd >> attempts. >> >> Can anyone else reproduce this? I should also mention my current config for the reproducer test is: '../../configure' '--python=3Dpython3' '--disable-docs' '--disable-tools'= '--disable-libusb' '--disable-vte' '--disable-xen' '--enable-debug' '--ext= ra-cflags=3D-O0 -g3' '--target-list=3Dx86_64-softmmu' > > I can't reproduce it here. Might be worth a try to check the BIOS output > in that case. Add this patch: > > diff --git a/tests/cdrom-test.c b/tests/cdrom-test.c > index 14bd981..c38e016 100644 > --- a/tests/cdrom-test.c > +++ b/tests/cdrom-test.c > @@ -132,7 +132,7 @@ static void add_x86_tests(void) > qtest_add_data_func("cdrom/boot/virtio-scsi", > "-device virtio-scsi -device scsi-cd,drive=3Dcdr= " > "-blockdev file,node-name=3Dcdr,filename=3D", te= st_cdboot); > - qtest_add_data_func("cdrom/boot/isapc", "-M isapc " > + qtest_add_data_func("cdrom/boot/isapc", "-M isapc -vga none -device = sga -serial file:/tmp/stdio " > "-drive if=3Dide,media=3Dcdrom,file=3D", test_cd= boot); > qtest_add_data_func("cdrom/boot/am53c974", > "-device am53c974 -device scsi-cd,drive=3Dcd1 " > > ... then check /tmp/stdio when it hangs. This gets us: SeaBIOS (version rel-1.12.0-0-ga698c8995f-prebuilt.qemu.org) Booting from Floppy... Boot failed: could not read the boot disk Booting from DVD/CD... Boot failed: Could not read from CDROM (code 000c) Booting from DVD/CD... Boot failed: Could not read from CDROM (code 0003) Booting from Hard Disk... Boot failed: could not read the boot disk No bootable device. I tried to bisect but this occurs even in v3.0.0 SeaBIOS (version rel-1.11.2-0-gf9626ccb91-prebuilt.qemu-project.org) Booting from Floppy... Boot failed: could not read the boot disk Booting from DVD/CD... Boot failed: Could not read from CDROM (code 000c) Booting from DVD/CD... Boot failed: Could not read from CDROM (code 0003) Booting from Hard Disk... Boot failed: could not read the boot disk No bootable device. Can I pass this over to the block/bios people to look at. I think at this point I think the test has always been unstable but tends only to trigger the fault on Travis because it is highly loaded. In the meantime I'll see if I can disable the test for the CI runs. -- Alex Benn=C3=A9e