From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Zhang Chen <zhangckid@gmail.com>,
Li Zhijian <lizhijian@cn.fujitsu.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] test-filter-mirror hangs
Date: Fri, 11 Jan 2019 16:15:15 +0000 [thread overview]
Message-ID: <20190111161515.GG2738@work-vm> (raw)
In-Reply-To: <CAFEAcA_ZdOsXbKE=ZcOGUNB4LAnL_wZK5rdm+PvsaeBfyT0DSg@mail.gmail.com>
* Peter Maydell (peter.maydell@linaro.org) wrote:
> Recently I've noticed that test-filter-mirror has been hanging
> intermittently, typically when run on some other TCG architecture.
> In the instance I've just looked at, this was with s390x guest on
> x86-64 host, though I've also seen it on other host archs and
> perhaps with other guests.
Watch out to see if you really do see it for other guests;
it carefully avoids using virtio-net to avoid vhost; but on s390x it
uses virtio-net-ccw - could that hit the vhost it was trying to avoid?
> Below is a backtrace, though it seems to be pretty unhelpful.
> Anybody got any theories ? Does the mirror test rely on dirty
> memory bitmaps like the migration test (which also hangs
> occasionally with TCG due to some bug I'm sure we've investigated
> in the past) ?
I don't think it relies on the CPU at all.
Dave
> Processes:
> petmay01 10533 0.0 0.0 15624 1400 pts/16 S+ 14:22 0:00
> \_ tests/test-filter-mirror --quiet
> --keep-going -m=quick --GTestLogFD=6
> petmay01 10534 0.0 0.2 979892 36492 pts/16 Sl+ 14:22 0:00
> \_ s390x-softmmu/qemu-system-s390x
> -qtest unix:/tmp/qtest-10533.sock,nowait -qtest-log /dev/null -chardev
> socket,path=/tmp/qtest-10533.qmp,nowait,id=char0 -mon
> chardev=char0,mode=control -machine accel=qtest -display none -netdev
> socket,id=qtest-bn0,fd=4 -device
> virtio-net-ccw,netdev=qtest-bn0,id=qtest-e0 -chardev
> socket,id=mirror0,path=filter-mirror.Ongzms,server,nowait -object
> filter-mirror,id=qtest-f0,netdev=qtest-bn0,queue=tx,outdev=mirror0
>
> Backtrace of all threads in the QEMU process:
> Thread 4 (Thread 0x7f59b67ff700 (LWP 10539)):
> #0 0x00007f59cf908156 in __sigwait (sig=0x7f59b67fc510, set=<optimised out>)
> at ../sysdeps/unix/sysv/linux/sigwait.c:64
> #1 0x00007f59cf908156 in __sigwait (set=<optimised out>, sig=0x7f59b67fc510)
> at ../sysdeps/unix/sysv/linux/sigwait.c:96
> #2 0x00005639a87c4c8e in qemu_dummy_cpu_thread_fn (arg=0x5639aa544250)
> at /home/petmay01/linaro/qemu-for-merges/cpus.c:1326
> #3 0x00005639a8b8b911 in qemu_thread_start (args=0x5639aa569010)
> at /home/petmay01/linaro/qemu-for-merges/util/qemu-thread-posix.c:502
> #4 0x00007f59cf8fe6ba in start_thread (arg=0x7f59b67ff700) at
> pthread_create.c:333
> #5 0x00007f59cf63441d in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
>
> Thread 3 (Thread 0x7f59bf1f0700 (LWP 10538)):
> #0 0x00007f59cf62874d in poll () at ../sysdeps/unix/syscall-template.S:84
> #1 0x00007f59e64e638c in g_main_context_iterate (priority=2147483647,
> n_fds=3, fds=0x7f59b0001300, timeout=<optimised out>,
> context=0x7f59b00008c0)
> at /build/glib2.0-7ZsPUq/glib2.0-2.48.2/./glib/gmain.c:4135
> #2 0x00007f59e64e638c in g_main_context_iterate
> (context=0x7f59b00008c0, block=block@entry=1,
> dispatch=dispatch@entry=1, self=<optimised out>)
> at /build/glib2.0-7ZsPUq/glib2.0-2.48.2/./glib/gmain.c:3835
> #3 0x00007f59e64e6712 in g_main_loop_run (loop=0x7f59b00012e0)
> at /build/glib2.0-7ZsPUq/glib2.0-2.48.2/./glib/gmain.c:4034
> #4 0x00005639a88d187a in iothread_run (opaque=0x5639aa512710)
> at /home/petmay01/linaro/qemu-for-merges/iothread.c:74
> #5 0x00005639a8b8b911 in qemu_thread_start (args=0x5639aa49d6a0)
> at /home/petmay01/linaro/qemu-for-merges/util/qemu-thread-posix.c:502
> #6 0x00007f59cf8fe6ba in start_thread (arg=0x7f59bf1f0700) at
> pthread_create.c:333
> #7 0x00007f59cf63441d in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
>
> Thread 2 (Thread 0x7f59bf9f1700 (LWP 10537)):
> #0 0x00007f59cf62e4d9 in syscall () at
> ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
> #1 0x00005639a8b8b58f in qemu_futex_wait (f=0x5639a930a418
> <rcu_call_ready_event>, val=4294967295)
> at /home/petmay01/linaro/qemu-for-merges/include/qemu/futex.h:29
> #2 0x00005639a8b8b75e in qemu_event_wait (ev=0x5639a930a418
> <rcu_call_ready_event>)
> at /home/petmay01/linaro/qemu-for-merges/util/qemu-thread-posix.c:442
> #3 0x00005639a8ba41d3 in call_rcu_thread (opaque=0x0)
> at /home/petmay01/linaro/qemu-for-merges/util/rcu.c:261
> #4 0x00005639a8b8b911 in qemu_thread_start (args=0x5639aa449ac0)
> at /home/petmay01/linaro/qemu-for-merges/util/qemu-thread-posix.c:502
> #5 0x00007f59cf8fe6ba in start_thread (arg=0x7f59bf9f1700) at
> pthread_create.c:333
> #6 0x00007f59cf63441d in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
>
> Thread 1 (Thread 0x7f59e9017fc0 (LWP 10534)):
> #0 0x00007f59cf628811 in __GI_ppoll (fds=0x5639aa5a1b90, nfds=6,
> timeout=<optimised out>, sigmask=0x0) at
> ../sysdeps/unix/sysv/linux/ppoll.c:50
> #1 0x00005639a8b8534b in qemu_poll_ns (fds=0x5639aa5a1b90, nfds=6, timeout=-1)
> at /home/petmay01/linaro/qemu-for-merges/util/qemu-timer.c:322
> ---Type <return> to continue, or q <return> to quit---
> #2 0x00005639a8b86527 in os_host_main_loop_wait (timeout=-1)
> at /home/petmay01/linaro/qemu-for-merges/util/main-loop.c:233
> #3 0x00005639a8b865fe in main_loop_wait (nonblocking=0)
> at /home/petmay01/linaro/qemu-for-merges/util/main-loop.c:497
> #4 0x00005639a88dab83 in main_loop () at
> /home/petmay01/linaro/qemu-for-merges/vl.c:1925
> #5 0x00005639a88e25b9 in main (argc=21, argv=0x7ffd344d6138,
> envp=0x7ffd344d61e8)
> at /home/petmay01/linaro/qemu-for-merges/vl.c:4669
>
> Backtrace in test-filter-mirror:
> Thread 1 (Thread 0x7fd24ab03740 (LWP 10533)):
> #0 0x00007fd24a0eb81d in __libc_recv (fd=8, buf=0x7ffcef3a8c58, n=4, flags=0)
> at ../sysdeps/unix/sysv/linux/x86_64/recv.c:28
> #1 0x000055e065d2d26a in test_mirror ()
> at /home/petmay01/linaro/qemu-for-merges/tests/test-filter-mirror.c:70
> #2 0x00007fd24a67087b in test_case_run (tc=0x55e0676b6a00)
> at /build/glib2.0-7ZsPUq/glib2.0-2.48.2/./glib/gtestutils.c:2158
> #3 g_test_run_suite_internal (suite=suite@entry=0x55e0676b6060,
> path=path@entry=0x0)
> at /build/glib2.0-7ZsPUq/glib2.0-2.48.2/./glib/gtestutils.c:2241
> #4 0x00007fd24a670a43 in g_test_run_suite_internal
> (suite=suite@entry=0x55e0676b6040,
> path=path@entry=0x0) at
> /build/glib2.0-7ZsPUq/glib2.0-2.48.2/./glib/gtestutils.c:2253
> #5 0x00007fd24a670a43 in g_test_run_suite_internal
> (suite=suite@entry=0x55e0676b6020,
> path=path@entry=0x0) at
> /build/glib2.0-7ZsPUq/glib2.0-2.48.2/./glib/gtestutils.c:2253
> #6 0x00007fd24a670c4e in g_test_run_suite (suite=0x55e0676b6020)
> at /build/glib2.0-7ZsPUq/glib2.0-2.48.2/./glib/gtestutils.c:2328
> #7 0x00007fd24a670c71 in g_test_run ()
> at /build/glib2.0-7ZsPUq/glib2.0-2.48.2/./glib/gtestutils.c:1596
> #8 0x000055e065d2d4af in main (argc=1, argv=0x7ffcef3a9128)
> at /home/petmay01/linaro/qemu-for-merges/tests/test-filter-mirror.c:92
>
>
> thanks
> -- PMM
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2019-01-11 16:15 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-11 15:01 [Qemu-devel] test-filter-mirror hangs Peter Maydell
2019-01-11 16:15 ` Dr. David Alan Gilbert [this message]
2019-01-14 16:33 ` Zhang Chen
2019-01-17 9:46 ` Jason Wang
2019-01-21 18:56 ` Peter Maydell
2019-01-21 20:01 ` Dr. David Alan Gilbert
2019-01-22 9:06 ` Peter Maydell
2019-01-23 2:43 ` Jason Wang
2019-01-23 19:53 ` Dr. David Alan Gilbert
2019-01-24 4:01 ` Jason Wang
2019-01-24 9:11 ` Dr. David Alan Gilbert
2019-01-24 9:51 ` Peter Xu
2019-01-25 3:55 ` Jason Wang
2019-01-25 7:14 ` Markus Armbruster
2019-01-25 3:45 ` Jason Wang
2019-01-24 9:47 ` Markus Armbruster
2019-01-25 3:56 ` Jason Wang
2019-01-25 7:12 ` Markus Armbruster
2019-01-25 8:12 ` Jason Wang
2019-01-25 8:44 ` Markus Armbruster
2019-01-24 10:11 ` Daniel P. Berrangé
2019-01-24 10:30 ` Daniel P. Berrangé
2019-01-24 11:01 ` Daniel P. Berrangé
2019-01-25 7:12 ` Jason Wang
2019-01-25 7:00 ` Jason Wang
2019-01-15 10:28 ` Peter Maydell
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=20190111161515.GG2738@work-vm \
--to=dgilbert@redhat.com \
--cc=lizhijian@cn.fujitsu.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=zhangckid@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.