qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>,
	QEMU Developers <qemu-devel@nongnu.org>
Cc: John Snow <jsnow@redhat.com>
Subject: Re: test harness hang running functional test
Date: Mon, 11 Nov 2024 11:37:36 +0100	[thread overview]
Message-ID: <f2405acc-693f-415f-9f36-cd56bc472c75@redhat.com> (raw)
In-Reply-To: <CAFEAcA-4cf+yub8bsgtsdFOJD_9HziY3tekCN5s=+JcWEpw3Nw@mail.gmail.com>

On 07/11/2024 17.09, Peter Maydell wrote:
> I was trying to track down why one of the functional tests was
> hanging, so I tried running it directly:
> 
> UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1
> QEMU_TEST_QEMU_BINARY=build/clang/qemu-system-loongarch64
> PYTHONPATH=./build/clang/pyvenv:./python time
> ./build/clang/pyvenv/bin/python3
> ./tests/functional/test_loongarch64_virt.py
> 
> (This is with a QEMU built with the undefined-behaviour
> sanitizer.)
> 
> Mostly this seems to succeed, but this time it's hung. Looking
> at the process tree:
> 
> petmay01 3616444  0.0  0.0   4768  1124 pts/2    S+   15:53   0:00
>   \_ time ./build/clang/pyvenv/bin/python3
> ./tests/functional/test_loongarch64_virt.py
> petmay01 3616445 99.8  0.0  38480 23620 pts/2    R+   15:53  13:20
>       \_ ./build/clang/pyvenv/bin/python3
> ./tests/functional/test_loongarch64_virt.py
> petmay01 3616448  0.0  0.0      0     0 pts/2    Z+   15:53   0:00
>           \_ [qemu-system-loo] <defunct>
> 
> The QEMU process itself has exited, but the test harness has
> not yet noticed or reaped the zombie process. Instead it's sitting
> there eating CPU. Presumably this is a bug in the test harness?

Sounds like either a bug in the test harness or in the "python/qemu" module 
... I'll try to look at it, but maybe not in the next two weeks (I'm 
currently quite busy with other stuff), so if someone else wants to have a 
look already, that would be great!

  Thomas



      parent reply	other threads:[~2024-11-11 10:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-07 16:09 test harness hang running functional test Peter Maydell
2024-11-07 16:18 ` Peter Maydell
2024-11-11 10:37 ` Thomas Huth [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f2405acc-693f-415f-9f36-cd56bc472c75@redhat.com \
    --to=thuth@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).