Intermittent failure of iotest 203
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
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
#00x00007f354137b4d6in ppoll () at/lib64/libc.so.6
#10x000055b659144299in ppoll (__ss=0x0, __timeout=0x7ffe4eaca230, __nfds=<optimized out>, __fds=<optimized out>) at/usr/include/bits/poll2.h:77
#20x000055b659144299inqemu_poll_ns(fds=<optimized out>, nfds=<optimized out>, timeout=timeout@entry=39512999619000) atutil/qemu-timer.c:334
#30x000055b6591450a3inos_host_main_loop_wait(timeout=<optimized out>) atutil/main-loop.c:255
#40x000055b6591450a3inmain_loop_wait(nonblocking=<optimized out>) atutil/main-loop.c:515
#50x000055b658d4a253inmain_loop() at vl.c:1933
#60x000055b658d4a253in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4757Max