[PATCH 0/4] hw/arm: Replace hw_error() by qemu_log_mask()

Philippe Mathieu-Daudé posted 4 patches 3 years, 11 months ago
Test docker-mingw@fedora failed
Test checkpatch passed
Test asan passed
Test docker-quick@centos7 failed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200518095203.1013-1-f4bug@amsat.org
There is a newer version of this series
hw/arm/integratorcp.c     | 23 +++++++++++++++--------
hw/arm/pxa2xx_gpio.c      |  7 ++++---
hw/char/xilinx_uartlite.c |  5 +++--
hw/display/pxa2xx_lcd.c   |  8 +++++---
hw/dma/pxa2xx_dma.c       | 14 +++++++++-----
hw/timer/exynos4210_mct.c | 10 ++++------
6 files changed, 40 insertions(+), 27 deletions(-)
[PATCH 0/4] hw/arm: Replace hw_error() by qemu_log_mask()
Posted by Philippe Mathieu-Daudé 3 years, 11 months ago
When fuzzing the devices, we don't want the whole process to
exit calling hw_error().
Replace these calls by qemu_log_mask LOG_GUEST_ERROR/LOG_UNIMP
when possible.

Philippe Mathieu-Daudé (4):
  hw/arm/integratorcp: Replace hw_error() by qemu_log_mask()
  hw/arm/pxa2xx: Replace hw_error() by qemu_log_mask()
  hw/char/xilinx_uartlite: Replace hw_error() by qemu_log_mask()
  hw/timer/exynos4210_mct: Replace hw_error() by qemu_log_mask()

 hw/arm/integratorcp.c     | 23 +++++++++++++++--------
 hw/arm/pxa2xx_gpio.c      |  7 ++++---
 hw/char/xilinx_uartlite.c |  5 +++--
 hw/display/pxa2xx_lcd.c   |  8 +++++---
 hw/dma/pxa2xx_dma.c       | 14 +++++++++-----
 hw/timer/exynos4210_mct.c | 10 ++++------
 6 files changed, 40 insertions(+), 27 deletions(-)

-- 
2.21.3


Re: [PATCH 0/4] hw/arm: Replace hw_error() by qemu_log_mask()
Posted by no-reply@patchew.org 3 years, 11 months ago
Patchew URL: https://patchew.org/QEMU/20200518095203.1013-1-f4bug@amsat.org/



Hi,

This series failed the docker-quick@centos7 build test. Please find the testing commands and
their output below. If you have Docker installed, you can probably reproduce it
locally.

=== TEST SCRIPT BEGIN ===
#!/bin/bash
make docker-image-centos7 V=1 NETWORK=1
time make docker-test-quick@centos7 SHOW_ENV=1 J=14 NETWORK=1
=== TEST SCRIPT END ===

  CC      hw/xen/xen-bus.o
  CC      hw/xen/xen-bus-helper.o
/tmp/qemu-test/src/hw/timer/exynos4210_mct.c: In function 'exynos4210_mct_read':
/tmp/qemu-test/src/hw/timer/exynos4210_mct.c:1163:5: error: 'value' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     return value;
     ^
cc1: all warnings being treated as errors
  CC      hw/xen/xen-backend.o
make: *** [hw/timer/exynos4210_mct.o] Error 1
make: *** Waiting for unfinished jobs....
Traceback (most recent call last):
  File "./tests/docker/docker.py", line 664, in <module>
---
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=bf3c7472f2054a9a96a2632f835d0520', '-u', '1001', '--security-opt', 'seccomp=unconfined', '--rm', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=14', '-e', 'DEBUG=', '-e', 'SHOW_ENV=1', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-6oonsuxg/src/docker-src.2020-05-18-08.47.24.20860:/var/tmp/qemu:z,ro', 'qemu:centos7', '/var/tmp/qemu/run', 'test-quick']' returned non-zero exit status 2.
filter=--filter=label=com.qemu.instance.uuid=bf3c7472f2054a9a96a2632f835d0520
make[1]: *** [docker-run] Error 1
make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-6oonsuxg/src'
make: *** [docker-run-test-quick@centos7] Error 2

real    2m29.302s
user    0m9.175s


The full log is available at
http://patchew.org/logs/20200518095203.1013-1-f4bug@amsat.org/testing.docker-quick@centos7/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [PATCH 0/4] hw/arm: Replace hw_error() by qemu_log_mask()
Posted by no-reply@patchew.org 3 years, 11 months ago
Patchew URL: https://patchew.org/QEMU/20200518095203.1013-1-f4bug@amsat.org/



Hi,

This series failed the docker-mingw@fedora build test. Please find the testing commands and
their output below. If you have Docker installed, you can probably reproduce it
locally.

=== TEST SCRIPT BEGIN ===
#! /bin/bash
export ARCH=x86_64
make docker-image-fedora V=1 NETWORK=1
time make docker-test-mingw@fedora J=14 NETWORK=1
=== TEST SCRIPT END ===

  BUILD   pc-bios/optionrom/multiboot.img
  CC      pc-bios/optionrom/pvh_main.o
/tmp/qemu-test/src/hw/timer/exynos4210_mct.c: In function 'exynos4210_mct_read':
/tmp/qemu-test/src/hw/timer/exynos4210_mct.c:1163:12: error: 'value' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     return value;
            ^~~~~
cc1: all warnings being treated as errors
make: *** [/tmp/qemu-test/src/rules.mak:69: hw/timer/exynos4210_mct.o] Error 1
make: *** Waiting for unfinished jobs....
  BUILD   pc-bios/optionrom/linuxboot.img
  BUILD   pc-bios/optionrom/multiboot.raw
---
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=66e69e66db6a4cee93b9e70e50c0bc31', '-u', '1003', '--security-opt', 'seccomp=unconfined', '--rm', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=14', '-e', 'DEBUG=', '-e', 'SHOW_ENV=', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew2/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-ags415do/src/docker-src.2020-05-18-08.58.38.5219:/var/tmp/qemu:z,ro', 'qemu:fedora', '/var/tmp/qemu/run', 'test-mingw']' returned non-zero exit status 2.
filter=--filter=label=com.qemu.instance.uuid=66e69e66db6a4cee93b9e70e50c0bc31
make[1]: *** [docker-run] Error 1
make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-ags415do/src'
make: *** [docker-run-test-mingw@fedora] Error 2

real    2m45.200s
user    0m8.526s


The full log is available at
http://patchew.org/logs/20200518095203.1013-1-f4bug@amsat.org/testing.docker-mingw@fedora/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com