qemu 7.2: test-io-channel-command fails sporadically
After updating to 7.2 we (the yocto project) started to see intermittent failures in test-io-channel-command :
root@qemux86-64:/usr/lib/qemu/ptest# ./tests/unit/test-io-channel-command
# random seed: R02S3c8627b155be76793ad41bf4f3ea1252
1..4
# Start of io tests
# Start of channel tests
# Start of command tests
# Start of fifo tests
2022/12/30 07:57:21 socat[1066] E mkfifo(/tmp/qemu-test-io-channel.K14PX1/test-io-channel-command.fifo, 438): File exists
You can see more of these collected here: https://bugzilla.yoctoproject.org/show_bug.cgi?id=14996
I believe the culprit is here: https://git.qemu.org/?p=qemu.git;a=commitdiff;h=68406d10859385c88da73d0106254a7f47e6652e
Particularly the
/* try to avoid a race to create the socket */
g_usleep(1000);
bit is not reliable enough, there has to be hard synchronization.
Edited by Alexander Kanavin