Subject: Re: bug#43534: qemu-minimal-5.1.0 fails to build during test phase on aarch64

From: Maxim Cournoyer <[email-masked]>
Date: Sat, 26 Sep 2020 02:05:11 -0400

Hello,

Stefan <[email-masked]> writes:

> Hi Maxim!
>
>> Do you think this is a regression?  I doubt so, because even before
>> pushing the update to 5.1.0, the test suite of qemu (not qemu-minimal)
>> was failing on master.
>
> I don’t know. Until today I always got a substitute. There was at least a successful build in late August.
>
> http://ci.guix.gnu.org/search?query=system%3Aaarch64-linux+spec%3Aguix-master+qemu-minimal-5
>
>> The error in the log you posted appear to be:
>> 
>> ERROR:tests/qtest/arm-cpu-features.c:508:test_query_cpu_model_expansion_kvm: assertion failed: (resp_has_props(_resp))
>> ERROR arm-cpu-features - Bail out! ERROR:tests/qtest/arm-cpu-features.c:508:test_query_cpu_model_expansion_kvm: assertion failed: (resp_has_props(_resp))
>
> I only searched for “FAIL”. :-)
>
> The same test was passing in August.
>
> http://ci.guix.gnu.org/log/391wav2qcfd1wkss2ssv408zhbgcxhq7-qemu-minimal-5.0.0

OK!

> MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))}
> QTEST_QEMU_BINARY=arm-softmmu/qemu-system-arm QTEST_QEMU_IMG=qemu-img
> tests/qtest/arm-cpu-features -m=quick -k --tap < /dev/null |
> ./scripts/tap-driver.pl --test-name="arm-cpu-features"
> PASS 1 arm-cpu-features /arm/arm/query-cpu-model-expansion
> …
> MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))}
> QTEST_QEMU_BINARY=aarch64-softmmu/qemu-system-aarch64
> QTEST_QEMU_IMG=qemu-img tests/qtest/arm-cpu-features -m=quick -k --tap
> < /dev/null | ./scripts/tap-driver.pl --test-name="arm-cpu-features"
> PASS 1 arm-cpu-features /aarch64/arm/query-cpu-model-expansion
> PASS 2 arm-cpu-features /aarch64/arm/kvm/query-cpu-model-expansion
> PASS 3 arm-cpu-features /aarch64/arm/kvm/query-cpu-model-expansion/sve-off
> PASS 4 arm-cpu-features /aarch64/arm/max/query-cpu-model-expansion/sve-max-vq-8
> PASS 5 arm-cpu-features /aarch64/arm/max/query-cpu-model-expansion/sve-off

Is this reproducible on your side?

Here, I couldn't reproduce this exact failure, but I'm getting another
one trying to build with --linux-aarch64:

ERROR:tests/qtest/qos-test.c:186:subprocess_run_one_test: child process (/arm/virt/virtio-mmio/virtio-bus/virtio-net-device/virtio-net/virtio-net-tests/vhost-user/migrate/subprocess [22034]) failed unexpectedly
ERROR qos-test - Bail out! ERROR:tests/qtest/qos-test.c:186:subprocess_run_one_test: child process (/arm/virt/virtio-mmio/virtio-bus/virtio-net-device/virtio-net/virtio-net-tests/vhost-user/migrate/subprocess [22034]) failed unexpectedly
qemu: uncaught target signal 6 (Aborted) - core dumped
make: *** [/tmp/guix-build-qemu-minimal-5.1.0.drv-0/qemu-5.1.0/tests/Makefile.include:650: check-qtest-arm] Error 

I'll go back to the previous version and see if I can reproduce or not.

Thanks,

Maxim