On 28 September 2018 at 15:36, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 25 September 2018 at 18:09, Peter Maydell <peter.maydell@linaro.org> wrote:
>> On 25 September 2018 at 16:14, Max Reitz <mreitz@redhat.com> wrote:
>>> The following changes since commit 506e4a00de01e0b29fa83db5cbbc3d154253b4ea:
>>>
>>> Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-3.1-20180925' into staging (2018-09-25 13:30:45 +0100)
>>>
>>> are available in the Git repository at:
>>>
>>> https://git.xanclic.moe/XanClic/qemu.git tags/pull-block-2018-09-25
>>>
>>> for you to fetch changes up to 9c76ff9c16be890e70fce30754b096ff9950d1ee:
>>>
>>> Merge remote-tracking branch 'kevin/tags/for-upstream' into block (2018-09-25 16:12:44 +0200)
>>>
>>> ----------------------------------------------------------------
>>> Block layer patches:
>>> - Drain fixes
>>> - node-name parameters for block-commit
>>> - Refactor block jobs to use transactional callbacks for exiting
>>>
>>> ----------------------------------------------------------------
>>
>> Applied, thanks.
>
> I'm finding that test-bdrv-drain hangs intermittently on my OSX host.
Here's a hang from my aarch32 Linux build:
(gdb) thread apply all bt
Thread 4 (Thread 0xe68fe040 (LWP 13198)):
#0 __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:46
#1 0xec79ec0a in __GI_ppoll (fds=0xe5f015c0, nfds=1,
timeout=<optimised out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0)
at ../sysdeps/unix/sysv/linux/ppoll.c:50
#2 0x000b28ee in ppoll (__ss=0x0, __timeout=0x0, __nfds=<optimised
out>, __fds=<optimised out>)
at /usr/include/arm-linux-gnueabihf/bits/poll2.h:77
#3 qemu_poll_ns (fds=<optimised out>, nfds=<optimised out>,
timeout=<optimised out>) at
/home/peter.maydell/qemu/util/qemu-timer.c:322
#4 0x000b3dc4 in aio_poll (ctx=0xe5f00470, blocking=<optimised out>)
at /home/peter.maydell/qemu/util/aio-posix.c:645
#5 0x00091230 in iothread_run (opaque=0x149e3a0) at
/home/peter.maydell/qemu/tests/iothread.c:51
#6 0xec8035b4 in start_thread (arg=0x0) at pthread_create.c:335
#7 0xec7a4bec in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:89
from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 3 (Thread 0xe72e9040 (LWP 13197)):
#0 __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:46
#1 0xec79ec0a in __GI_ppoll (fds=0xe69016c0, nfds=1,
timeout=<optimised out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0)
at ../sysdeps/unix/sysv/linux/ppoll.c:50
#2 0x000b28ee in ppoll (__ss=0x0, __timeout=0x0, __nfds=<optimised
out>, __fds=<optimised out>)
at /usr/include/arm-linux-gnueabihf/bits/poll2.h:77
#3 qemu_poll_ns (fds=<optimised out>, nfds=<optimised out>,
timeout=<optimised out>) at
/home/peter.maydell/qemu/util/qemu-timer.c:322
#4 0x000b3dc4 in aio_poll (ctx=0xe6900470, blocking=<optimised out>)
at /home/peter.maydell/qemu/util/aio-posix.c:645
#5 0x00091230 in iothread_run (opaque=0x149e268) at
/home/peter.maydell/qemu/tests/iothread.c:51
#6 0xec8035b4 in start_thread (arg=0x0) at pthread_create.c:335
#7 0xec7a4bec in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:89
from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 2 (Thread 0xebd2b040 (LWP 13196)):
#0 syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
#1 0x000b578e in qemu_futex_wait (val=<optimised out>, f=<optimised
out>) at /home/peter.maydell/qemu/include/qemu/futex.h:29
#2 qemu_event_wait (ev=ev@entry=0x1169c4 <rcu_call_ready_event>) at
/home/peter.maydell/qemu/util/qemu-thread-posix.c:442
#3 0x000bfc54 in call_rcu_thread (opaque=<optimised out>) at
/home/peter.maydell/qemu/util/rcu.c:261
#4 0xec8035b4 in start_thread (arg=0x0) at pthread_create.c:335
#5 0xec7a4bec in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:89
from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 1 (Thread 0xebd2e000 (LWP 13194)):
#0 syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
#1 0x000b578e in qemu_futex_wait (val=<optimised out>, f=<optimised
out>) at /home/peter.maydell/qemu/include/qemu/futex.h:29
#2 qemu_event_wait (ev=ev@entry=0x115644 <done_event>) at
/home/peter.maydell/qemu/util/qemu-thread-posix.c:442
#3 0x0001e89c in test_iothread_common
(drain_type=drain_type@entry=BDRV_DRAIN_ALL,
drain_thread=drain_thread@entry=0)
at /home/peter.maydell/qemu/tests/test-bdrv-drain.c:733
#4 0x0001eab2 in test_iothread_drain_all () at
/home/peter.maydell/qemu/tests/test-bdrv-drain.c:768
#5 0xeca3894c in ?? () from /lib/arm-linux-gnueabihf/libglib-2.0.so.0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
thanks
-- PMM