[PATCH v4 0/7] Tighten qemu-img rules on missing backing format

Eric Blake posted 7 patches 4 years, 1 month ago
Failed in applying to current master (apply log)
There is a newer version of this series
docs/system/deprecated.rst    | 31 +++++++++++++++
docs/tools/qemu-img.rst       |  4 ++
include/block/block.h         |  4 +-
block.c                       | 34 +++++++++++++++--
block/qcow.c                  | 16 +++++++-
block/qcow2.c                 |  7 +++-
block/sheepdog.c              | 14 +++++++
block/stream.c                |  2 +-
block/vmdk.c                  | 14 +++++++
blockdev.c                    |  3 +-
qemu-img.c                    |  4 +-
tests/qemu-iotests/017        |  2 +-
tests/qemu-iotests/017.out    |  2 +-
tests/qemu-iotests/018        |  2 +-
tests/qemu-iotests/018.out    |  2 +-
tests/qemu-iotests/019        |  5 ++-
tests/qemu-iotests/019.out    |  2 +-
tests/qemu-iotests/020        |  4 +-
tests/qemu-iotests/020.out    |  4 +-
tests/qemu-iotests/024        |  8 ++--
tests/qemu-iotests/024.out    |  5 ++-
tests/qemu-iotests/028        |  4 +-
tests/qemu-iotests/028.out    |  2 +-
tests/qemu-iotests/030        | 26 +++++++++----
tests/qemu-iotests/034        |  2 +-
tests/qemu-iotests/034.out    |  2 +-
tests/qemu-iotests/037        |  2 +-
tests/qemu-iotests/037.out    |  2 +-
tests/qemu-iotests/038        |  2 +-
tests/qemu-iotests/038.out    |  2 +-
tests/qemu-iotests/039        |  3 +-
tests/qemu-iotests/039.out    |  2 +-
tests/qemu-iotests/040        | 47 ++++++++++++++++-------
tests/qemu-iotests/041        | 37 ++++++++++++------
tests/qemu-iotests/042        |  4 +-
tests/qemu-iotests/043        | 18 ++++-----
tests/qemu-iotests/043.out    | 16 +++++---
tests/qemu-iotests/046        |  2 +-
tests/qemu-iotests/046.out    |  2 +-
tests/qemu-iotests/050        |  4 +-
tests/qemu-iotests/050.out    |  2 +-
tests/qemu-iotests/051        |  2 +-
tests/qemu-iotests/051.out    |  2 +-
tests/qemu-iotests/051.pc.out |  2 +-
tests/qemu-iotests/056        |  3 +-
tests/qemu-iotests/060        |  2 +-
tests/qemu-iotests/060.out    |  2 +-
tests/qemu-iotests/061        | 10 ++---
tests/qemu-iotests/061.out    | 11 +++---
tests/qemu-iotests/069        |  2 +-
tests/qemu-iotests/069.out    |  2 +-
tests/qemu-iotests/073        |  2 +-
tests/qemu-iotests/073.out    |  2 +-
tests/qemu-iotests/082        | 10 +++--
tests/qemu-iotests/082.out    | 14 ++++---
tests/qemu-iotests/085        |  4 +-
tests/qemu-iotests/085.out    |  6 +--
tests/qemu-iotests/089        |  2 +-
tests/qemu-iotests/089.out    |  2 +-
tests/qemu-iotests/095        |  4 +-
tests/qemu-iotests/095.out    |  4 +-
tests/qemu-iotests/097        |  4 +-
tests/qemu-iotests/097.out    | 16 ++++----
tests/qemu-iotests/098        |  2 +-
tests/qemu-iotests/098.out    |  8 ++--
tests/qemu-iotests/110        |  4 +-
tests/qemu-iotests/110.out    |  4 +-
tests/qemu-iotests/114        | 11 ++++++
tests/qemu-iotests/114.out    |  8 ++++
tests/qemu-iotests/122        | 27 +++++++------
tests/qemu-iotests/122.out    |  8 ++--
tests/qemu-iotests/126        |  4 +-
tests/qemu-iotests/126.out    |  4 +-
tests/qemu-iotests/127        |  4 +-
tests/qemu-iotests/127.out    |  4 +-
tests/qemu-iotests/129        |  3 +-
tests/qemu-iotests/133        |  2 +-
tests/qemu-iotests/133.out    |  2 +-
tests/qemu-iotests/139        |  2 +-
tests/qemu-iotests/141        |  4 +-
tests/qemu-iotests/141.out    |  4 +-
tests/qemu-iotests/142        |  2 +-
tests/qemu-iotests/142.out    |  2 +-
tests/qemu-iotests/153        | 14 +++----
tests/qemu-iotests/153.out    | 35 +++++++++--------
tests/qemu-iotests/154        | 42 ++++++++++----------
tests/qemu-iotests/154.out    | 42 ++++++++++----------
tests/qemu-iotests/155        | 12 ++++--
tests/qemu-iotests/156        |  9 +++--
tests/qemu-iotests/156.out    |  6 +--
tests/qemu-iotests/158        |  2 +-
tests/qemu-iotests/158.out    |  2 +-
tests/qemu-iotests/161        |  8 ++--
tests/qemu-iotests/161.out    |  8 ++--
tests/qemu-iotests/176        |  4 +-
tests/qemu-iotests/176.out    | 32 ++++++++--------
tests/qemu-iotests/177        |  2 +-
tests/qemu-iotests/177.out    |  2 +-
tests/qemu-iotests/179        |  2 +-
tests/qemu-iotests/179.out    |  2 +-
tests/qemu-iotests/189        |  2 +-
tests/qemu-iotests/189.out    |  2 +-
tests/qemu-iotests/191        | 12 +++---
tests/qemu-iotests/191.out    | 12 +++---
tests/qemu-iotests/195        |  6 +--
tests/qemu-iotests/195.out    |  6 +--
tests/qemu-iotests/198        |  2 +-
tests/qemu-iotests/198.out    |  3 +-
tests/qemu-iotests/204        |  2 +-
tests/qemu-iotests/204.out    |  2 +-
tests/qemu-iotests/216        |  2 +-
tests/qemu-iotests/224        |  4 +-
tests/qemu-iotests/225        |  2 +-
tests/qemu-iotests/225.out    |  2 +-
tests/qemu-iotests/228        |  5 ++-
tests/qemu-iotests/245        |  3 +-
tests/qemu-iotests/249        |  4 +-
tests/qemu-iotests/249.out    |  4 +-
tests/qemu-iotests/252        |  2 +-
tests/qemu-iotests/257        |  3 +-
tests/qemu-iotests/267        |  4 +-
tests/qemu-iotests/267.out    |  6 +--
tests/qemu-iotests/270        |  2 +-
tests/qemu-iotests/270.out    |  2 +-
tests/qemu-iotests/273        |  4 +-
tests/qemu-iotests/273.out    |  4 +-
tests/qemu-iotests/279        |  4 +-
tests/qemu-iotests/279.out    |  4 +-
tests/qemu-iotests/290        | 72 +++++++++++++++++++++++++++++++++++
tests/qemu-iotests/290.out    | 45 ++++++++++++++++++++++
tests/qemu-iotests/group      |  1 +
131 files changed, 671 insertions(+), 348 deletions(-)
create mode 100755 tests/qemu-iotests/290
create mode 100644 tests/qemu-iotests/290.out
[PATCH v4 0/7] Tighten qemu-img rules on missing backing format
Posted by Eric Blake 4 years, 1 month ago
v3 was here:
https://lists.gnu.org/archive/html/qemu-devel/2020-03/msg01730.html
In v4:
- old patch 1 was reworked into new patch 1-3, with stricter rules
on which backing formats are accepted [Kevin]
- patch 4 is new: amend is handled differently from rebase [Kashyap]
- rebase to master

Eric Blake (7):
  sheepdog: Add trivial backing_fmt support
  vmdk: Add trivial backing_fmt support
  qcow: Tolerate backing_fmt=, but warn on backing_fmt=raw
  qcow2: Deprecate use of qemu-img amend to change backing file
  iotests: Specify explicit backing format where sensible
  block: Add support to warn on backing file change without format
  qemu-img: Deprecate use of -b without -F

 docs/system/deprecated.rst    | 31 +++++++++++++++
 docs/tools/qemu-img.rst       |  4 ++
 include/block/block.h         |  4 +-
 block.c                       | 34 +++++++++++++++--
 block/qcow.c                  | 16 +++++++-
 block/qcow2.c                 |  7 +++-
 block/sheepdog.c              | 14 +++++++
 block/stream.c                |  2 +-
 block/vmdk.c                  | 14 +++++++
 blockdev.c                    |  3 +-
 qemu-img.c                    |  4 +-
 tests/qemu-iotests/017        |  2 +-
 tests/qemu-iotests/017.out    |  2 +-
 tests/qemu-iotests/018        |  2 +-
 tests/qemu-iotests/018.out    |  2 +-
 tests/qemu-iotests/019        |  5 ++-
 tests/qemu-iotests/019.out    |  2 +-
 tests/qemu-iotests/020        |  4 +-
 tests/qemu-iotests/020.out    |  4 +-
 tests/qemu-iotests/024        |  8 ++--
 tests/qemu-iotests/024.out    |  5 ++-
 tests/qemu-iotests/028        |  4 +-
 tests/qemu-iotests/028.out    |  2 +-
 tests/qemu-iotests/030        | 26 +++++++++----
 tests/qemu-iotests/034        |  2 +-
 tests/qemu-iotests/034.out    |  2 +-
 tests/qemu-iotests/037        |  2 +-
 tests/qemu-iotests/037.out    |  2 +-
 tests/qemu-iotests/038        |  2 +-
 tests/qemu-iotests/038.out    |  2 +-
 tests/qemu-iotests/039        |  3 +-
 tests/qemu-iotests/039.out    |  2 +-
 tests/qemu-iotests/040        | 47 ++++++++++++++++-------
 tests/qemu-iotests/041        | 37 ++++++++++++------
 tests/qemu-iotests/042        |  4 +-
 tests/qemu-iotests/043        | 18 ++++-----
 tests/qemu-iotests/043.out    | 16 +++++---
 tests/qemu-iotests/046        |  2 +-
 tests/qemu-iotests/046.out    |  2 +-
 tests/qemu-iotests/050        |  4 +-
 tests/qemu-iotests/050.out    |  2 +-
 tests/qemu-iotests/051        |  2 +-
 tests/qemu-iotests/051.out    |  2 +-
 tests/qemu-iotests/051.pc.out |  2 +-
 tests/qemu-iotests/056        |  3 +-
 tests/qemu-iotests/060        |  2 +-
 tests/qemu-iotests/060.out    |  2 +-
 tests/qemu-iotests/061        | 10 ++---
 tests/qemu-iotests/061.out    | 11 +++---
 tests/qemu-iotests/069        |  2 +-
 tests/qemu-iotests/069.out    |  2 +-
 tests/qemu-iotests/073        |  2 +-
 tests/qemu-iotests/073.out    |  2 +-
 tests/qemu-iotests/082        | 10 +++--
 tests/qemu-iotests/082.out    | 14 ++++---
 tests/qemu-iotests/085        |  4 +-
 tests/qemu-iotests/085.out    |  6 +--
 tests/qemu-iotests/089        |  2 +-
 tests/qemu-iotests/089.out    |  2 +-
 tests/qemu-iotests/095        |  4 +-
 tests/qemu-iotests/095.out    |  4 +-
 tests/qemu-iotests/097        |  4 +-
 tests/qemu-iotests/097.out    | 16 ++++----
 tests/qemu-iotests/098        |  2 +-
 tests/qemu-iotests/098.out    |  8 ++--
 tests/qemu-iotests/110        |  4 +-
 tests/qemu-iotests/110.out    |  4 +-
 tests/qemu-iotests/114        | 11 ++++++
 tests/qemu-iotests/114.out    |  8 ++++
 tests/qemu-iotests/122        | 27 +++++++------
 tests/qemu-iotests/122.out    |  8 ++--
 tests/qemu-iotests/126        |  4 +-
 tests/qemu-iotests/126.out    |  4 +-
 tests/qemu-iotests/127        |  4 +-
 tests/qemu-iotests/127.out    |  4 +-
 tests/qemu-iotests/129        |  3 +-
 tests/qemu-iotests/133        |  2 +-
 tests/qemu-iotests/133.out    |  2 +-
 tests/qemu-iotests/139        |  2 +-
 tests/qemu-iotests/141        |  4 +-
 tests/qemu-iotests/141.out    |  4 +-
 tests/qemu-iotests/142        |  2 +-
 tests/qemu-iotests/142.out    |  2 +-
 tests/qemu-iotests/153        | 14 +++----
 tests/qemu-iotests/153.out    | 35 +++++++++--------
 tests/qemu-iotests/154        | 42 ++++++++++----------
 tests/qemu-iotests/154.out    | 42 ++++++++++----------
 tests/qemu-iotests/155        | 12 ++++--
 tests/qemu-iotests/156        |  9 +++--
 tests/qemu-iotests/156.out    |  6 +--
 tests/qemu-iotests/158        |  2 +-
 tests/qemu-iotests/158.out    |  2 +-
 tests/qemu-iotests/161        |  8 ++--
 tests/qemu-iotests/161.out    |  8 ++--
 tests/qemu-iotests/176        |  4 +-
 tests/qemu-iotests/176.out    | 32 ++++++++--------
 tests/qemu-iotests/177        |  2 +-
 tests/qemu-iotests/177.out    |  2 +-
 tests/qemu-iotests/179        |  2 +-
 tests/qemu-iotests/179.out    |  2 +-
 tests/qemu-iotests/189        |  2 +-
 tests/qemu-iotests/189.out    |  2 +-
 tests/qemu-iotests/191        | 12 +++---
 tests/qemu-iotests/191.out    | 12 +++---
 tests/qemu-iotests/195        |  6 +--
 tests/qemu-iotests/195.out    |  6 +--
 tests/qemu-iotests/198        |  2 +-
 tests/qemu-iotests/198.out    |  3 +-
 tests/qemu-iotests/204        |  2 +-
 tests/qemu-iotests/204.out    |  2 +-
 tests/qemu-iotests/216        |  2 +-
 tests/qemu-iotests/224        |  4 +-
 tests/qemu-iotests/225        |  2 +-
 tests/qemu-iotests/225.out    |  2 +-
 tests/qemu-iotests/228        |  5 ++-
 tests/qemu-iotests/245        |  3 +-
 tests/qemu-iotests/249        |  4 +-
 tests/qemu-iotests/249.out    |  4 +-
 tests/qemu-iotests/252        |  2 +-
 tests/qemu-iotests/257        |  3 +-
 tests/qemu-iotests/267        |  4 +-
 tests/qemu-iotests/267.out    |  6 +--
 tests/qemu-iotests/270        |  2 +-
 tests/qemu-iotests/270.out    |  2 +-
 tests/qemu-iotests/273        |  4 +-
 tests/qemu-iotests/273.out    |  4 +-
 tests/qemu-iotests/279        |  4 +-
 tests/qemu-iotests/279.out    |  4 +-
 tests/qemu-iotests/290        | 72 +++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/290.out    | 45 ++++++++++++++++++++++
 tests/qemu-iotests/group      |  1 +
 131 files changed, 671 insertions(+), 348 deletions(-)
 create mode 100755 tests/qemu-iotests/290
 create mode 100644 tests/qemu-iotests/290.out

-- 
2.25.1

Re: [PATCH v4 0/7] Tighten qemu-img rules on missing backing format
Posted by no-reply@patchew.org 4 years, 1 month ago
Patchew URL: https://patchew.org/QEMU/20200312192822.3739399-1-eblake@redhat.com/



Hi,

This series failed the asan 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-debug@fedora TARGET_LIST=x86_64-softmmu J=14 NETWORK=1
=== TEST SCRIPT END ===

  CC      block/replication.o
  CC      block/throttle.o
  CC      block/copy-on-read.o
/tmp/qemu-test/src/block/sheepdog.c:2174:9: error: variable 'qdict' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
    if (backing_fmt && strcmp(backing_fmt, "sheepdog") != 0) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/qemu-test/src/block/sheepdog.c:2241:19: note: uninitialized use occurs here
---
                ^
                 = NULL
1 error generated.
make: *** [/tmp/qemu-test/src/rules.mak:69: block/sheepdog.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=93997e5b5eb34c2f9cb85363713a7f85', '-u', '1001', '--security-opt', 'seccomp=unconfined', '--rm', '-e', 'TARGET_LIST=x86_64-softmmu', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=14', '-e', 'DEBUG=', '-e', 'SHOW_ENV=', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-7l8c91wu/src/docker-src.2020-03-12-17.35.51.6480:/var/tmp/qemu:z,ro', 'qemu:fedora', '/var/tmp/qemu/run', 'test-debug']' returned non-zero exit status 2.
filter=--filter=label=com.qemu.instance.uuid=93997e5b5eb34c2f9cb85363713a7f85
make[1]: *** [docker-run] Error 1
make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-7l8c91wu/src'
make: *** [docker-run-test-debug@fedora] Error 2

real    3m14.071s
user    0m8.555s


The full log is available at
http://patchew.org/logs/20200312192822.3739399-1-eblake@redhat.com/testing.asan/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [PATCH v4 0/7] Tighten qemu-img rules on missing backing format
Posted by Eric Blake 4 years, 1 month ago
On 3/12/20 4:39 PM, no-reply@patchew.org wrote:
> Patchew URL: https://patchew.org/QEMU/20200312192822.3739399-1-eblake@redhat.com/
> 
> 
> 
> Hi,
> 
> This series failed the asan 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-debug@fedora TARGET_LIST=x86_64-softmmu J=14 NETWORK=1
> === TEST SCRIPT END ===
> 
>    CC      block/replication.o
>    CC      block/throttle.o
>    CC      block/copy-on-read.o
> /tmp/qemu-test/src/block/sheepdog.c:2174:9: error: variable 'qdict' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
>      if (backing_fmt && strcmp(backing_fmt, "sheepdog") != 0) {
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /tmp/qemu-test/src/block/sheepdog.c:2241:19: note: uninitialized use occurs here
> ---
>                  ^
>                   = NULL

Bah, real problem (and I missed it because I compiled for debug, while 
this error depends on -O2 for gcc to flag it).  Squash this in:

diff --git i/block/sheepdog.c w/block/sheepdog.c
index 376f4ef74638..e0ea335131d9 100644
--- i/block/sheepdog.c
+++ w/block/sheepdog.c
@@ -2161,9 +2161,9 @@ static int coroutine_fn sd_co_create_opts(const 
char *filename, QemuOpts *opts,
                                            Error **errp)
  {
      BlockdevCreateOptions *create_options = NULL;
-    QDict *qdict, *location_qdict;
+    QDict *qdict = NULL, *location_qdict;
      Visitor *v;
-    char *redundancy;
+    char *redundancy = NULL;
      Error *local_err = NULL;
      int ret;
      char *backing_fmt = NULL;

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

Re: [PATCH for-5.0? v4 0/7] Tighten qemu-img rules on missing backing format
Posted by Eric Blake 4 years ago
On 3/12/20 2:28 PM, Eric Blake wrote:
> v3 was here:
> https://lists.gnu.org/archive/html/qemu-devel/2020-03/msg01730.html
> In v4:
> - old patch 1 was reworked into new patch 1-3, with stricter rules
> on which backing formats are accepted [Kevin]
> - patch 4 is new: amend is handled differently from rebase [Kashyap]
> - rebase to master
> 
> Eric Blake (7):
>    sheepdog: Add trivial backing_fmt support
>    vmdk: Add trivial backing_fmt support
>    qcow: Tolerate backing_fmt=, but warn on backing_fmt=raw
>    qcow2: Deprecate use of qemu-img amend to change backing file
>    iotests: Specify explicit backing format where sensible
>    block: Add support to warn on backing file change without format
>    qemu-img: Deprecate use of -b without -F

Is this still worth trying to get in 5.0?  There were not many comments 
on v4, other than a compile fix I need to squash in and Kashyap asking a 
question on qemu-img convert behavior that I still need to double-check, 
or at a bare minimum add iotest coverage for.  But depending on the 
urgency to get this in now, vs. delaying the deprecation clock for 4 
more months by starting it in 5.1, determines how much effort I need to 
put in getting a v5 out right now.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Re: [PATCH v4 0/7] Tighten qemu-img rules on missing backing format
Posted by no-reply@patchew.org 4 years, 1 month ago
Patchew URL: https://patchew.org/QEMU/20200312192822.3739399-1-eblake@redhat.com/



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 ===

In file included from /tmp/qemu-test/src/include/qapi/qmp/qdict.h:16,
                 from /tmp/qemu-test/src/block/sheepdog.c:20:
/tmp/qemu-test/src/block/sheepdog.c: In function 'sd_co_create_opts':
/tmp/qemu-test/src/include/qapi/qmp/qobject.h:99:13: error: 'qdict' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     if (obj && --obj->base.refcnt == 0) {
         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/qemu-test/src/block/sheepdog.c:2164:12: note: 'qdict' was declared here
     QDict *qdict, *location_qdict;
            ^~~~~
cc1: all warnings being treated as errors
make: *** [/tmp/qemu-test/src/rules.mak:69: block/sheepdog.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=2bc4557fecf04aae88a65433b16d7773', '-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-yqol9ujz/src/docker-src.2020-03-12-17.44.12.28207:/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=2bc4557fecf04aae88a65433b16d7773
make[1]: *** [docker-run] Error 1
make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-yqol9ujz/src'
make: *** [docker-run-test-mingw@fedora] Error 2

real    1m54.790s
user    0m8.304s


The full log is available at
http://patchew.org/logs/20200312192822.3739399-1-eblake@redhat.com/testing.docker-mingw@fedora/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [PATCH v4 0/7] Tighten qemu-img rules on missing backing format
Posted by no-reply@patchew.org 4 years, 1 month ago
Patchew URL: https://patchew.org/QEMU/20200312192822.3739399-1-eblake@redhat.com/



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 ===

In file included from /tmp/qemu-test/src/include/qapi/qmp/qdict.h:16:0,
                 from /tmp/qemu-test/src/block/sheepdog.c:20:
/tmp/qemu-test/src/block/sheepdog.c: In function 'sd_co_create_opts':
/tmp/qemu-test/src/include/qapi/qmp/qobject.h:98:29: error: 'qdict' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     assert(!obj || obj->base.refcnt);
                             ^
/tmp/qemu-test/src/block/sheepdog.c:2164:12: note: 'qdict' was declared here
---
            ^
cc1: all warnings being treated as errors
  CC      scsi/pr-manager.o
make: *** [block/sheepdog.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=42390fc6cae14dfc8db84779948e6236', '-u', '1003', '--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/patchew2/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-bmmmjgbx/src/docker-src.2020-03-12-17.41.49.21365:/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=42390fc6cae14dfc8db84779948e6236
make[1]: *** [docker-run] Error 1
make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-bmmmjgbx/src'
make: *** [docker-run-test-quick@centos7] Error 2

real    1m47.430s
user    0m7.951s


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