Skip to contentSkip to conversation

Intermittent failure of iotest 203

Qemu-devel Max Reitz 2 participants 2 messages Feb 23, 2018 – Mar 5, 2018

lore
Share & tools
lore

Max Reitz

author
#0 lore raw

Hi,

iotest 203 relatively often fails for me, at least when run in parallel.
When I run the following concurrently on four shells:

$ while TEST_DIR=/tmp/t1 ./check -T -qcow2 203; do; done
$ while TEST_DIR=/tmp/t2 ./check -T -qcow2 203; do; done
$ while TEST_DIR=/tmp/t3 ./check -T -qcow2 203; do; done
$ while TEST_DIR=/tmp/t4 ./check -T -qcow2 203; do; done

Very quickly (like under ten iterations), at least one of those starts to hang and then fails because of a timeout in vm.get_qmp_event().

Before digging deeper into the ppoll() dungeon* myself, I decided to report this so I wouldn't have to. :-)

*Backtrace:

(gdb) bt
#0 0x00007f354137b4d6 in ppoll () at /lib64/libc.so.6
#1 0x000055b659144299 in ppoll (__ss=0x0, __timeout=0x7ffe4eaca230, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/bits/poll2.h:77
#2 0x000055b659144299 in qemu_poll_ns (fds=<optimized out>, nfds=<optimized out>, timeout=timeout@entry=39512999619000) at util/qemu-timer.c:334
#3 0x000055b6591450a3 in os_host_main_loop_wait (timeout=<optimized out>) at util/main-loop.c:255
#4 0x000055b6591450a3 in main_loop_wait (nonblocking=<optimized out>) at util/main-loop.c:515
#5 0x000055b658d4a253 in main_loop () at vl.c:1933
#6 0x000055b658d4a253 in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4757

Max

#1 lore raw
Quoted 10 lines · Max Reitz

Hi,

iotest 203 relatively often fails for me, at least when run in parallel.
When I run the following concurrently on four shells:

$ while TEST_DIR=/tmp/t1 ./check -T -qcow2 203; do; done
$ while TEST_DIR=/tmp/t2 ./check -T -qcow2 203; do; done
$ while TEST_DIR=/tmp/t3 ./check -T -qcow2 203; do; done
$ while TEST_DIR=/tmp/t4 ./check -T -qcow2 203; do; done
Quoted 5 lines

Very quickly (like under ten iterations), at least one of those starts to hang and then fails because of a timeout in vm.get_qmp_event().

Before digging deeper into the ppoll() dungeon* myself, I decided to report this so I wouldn't have to. :-)

Thanks for reporting it. I will send a patch and CC you.

Stefan

Quoted 20 lines

*Backtrace:

(gdb) bt
#0 0x00007f354137b4d6 in ppoll () at /lib64/libc.so.6
#1 0x000055b659144299 in ppoll (__ss=0x0, __timeout=0x7ffe4eaca230, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/bits/poll2.h:77
#2 0x000055b659144299 in qemu_poll_ns (fds=<optimized out>, nfds=<optimized out>, timeout=timeout@entry=39512999619000) at util/qemu-timer.c:334
#3 0x000055b6591450a3 in os_host_main_loop_wait (timeout=<optimized out>) at util/main-loop.c:255
#4 0x000055b6591450a3 in main_loop_wait (nonblocking=<optimized out>) at util/main-loop.c:515
#5 0x000055b658d4a253 in main_loop () at vl.c:1933
#6 0x000055b658d4a253 in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4757

Max