Description of problem: As subject Version-Release number of selected component (if applicable): qemu-img-2.10.1-1.fc28.x86_64 How reproducible: 100% Steps to Reproduce: 1. # qemu-img info replication: qemu-img: /builddir/build/BUILD/qemu-2.10.1/block.c:2542: bdrv_open_inherit: Assertion `!!(flags & BDRV_O_PROTOCOL) == !!drv->bdrv_file_open' failed. [1] 15247 abort (core dumped) qemu-img info replication: Actual results: As above. The backtrace: Thread 1 (Thread 0x7f2c18d3b900 (LWP 9884)): #0 0x00007f2c1658952b in raise () from /lib64/libc.so.6 No symbol table info available. #1 0x00007f2c1658ab41 in abort () from /lib64/libc.so.6 No symbol table info available. #2 0x00007f2c1658207a in __assert_fail_base () from /lib64/libc.so.6 No symbol table info available. #3 0x00007f2c165820f2 in __assert_fail () from /lib64/libc.so.6 No symbol table info available. #4 0x0000557cbd2215ab in bdrv_open_inherit (filename=filename@entry=0x7ffd605544a8 "replication://", reference=<optimized out>, options=0x557cbe1f5bc0, flags=<optimized out>, flags@entry=0, parent=parent@entry=0x557cbe1eb390, child_role=child_role@entry=0x557cbd547400 <child_file>, errp=0x7ffd60553ad8) at /usr/src/debug/qemu-2.10.1-1.fc28.x86_64/block.c:2542 ret = <optimized out> file = 0x0 bs = 0x557cbe1f17b0 drv = 0x557cbd553320 <bdrv_replication> drvname = <optimized out> backing = <optimized out> local_err = 0x0 snapshot_options = 0x0 snapshot_flags = 0 __PRETTY_FUNCTION__ = "bdrv_open_inherit" __func__ = "bdrv_open_inherit" #5 0x0000557cbd221adb in bdrv_open_child_bs (filename=filename@entry=0x7ffd605544a8 "replication://", options=options@entry=0x557cbe1ef6e0, bdref_key=bdref_key@entry=0x557cbd2f62ed "file", parent=parent@entry=0x557cbe1eb390, child_role=child_role@entry=0x557cbd547400 <child_file>, allow_none=allow_none@entry=true, errp=0x7ffd60553ad8) at /usr/src/debug/qemu-2.10.1-1.fc28.x86_64/block.c:2247 bs = 0x0 image_options = 0x557cbe1f0790 bdref_key_dot = <optimized out> reference = <optimized out> __PRETTY_FUNCTION__ = "bdrv_open_child_bs" __func__ = "bdrv_open_child_bs" #6 0x0000557cbd2209f9 in bdrv_open_inherit (filename=filename@entry=0x7ffd605544a8 "replication://", reference=reference@entry=0x0, options=0x557cbe1ef6e0, options@entry=0x557cbe1ea120, flags=<optimized out>, flags@entry=65792, parent=parent@entry=0x0, child_role=child_role@entry=0x0, errp=0x7ffd60553bc0) at /usr/src/debug/qemu-2.10.1-1.fc28.x86_64/block.c:2499 file_bs = <optimized out> ret = <optimized out> file = 0x0 bs = 0x557cbe1eb390 drv = 0x0 drvname = 0x0 backing = <optimized out> local_err = 0x0 snapshot_options = 0x0 snapshot_flags = 0 __PRETTY_FUNCTION__ = "bdrv_open_inherit" __func__ = "bdrv_open_inherit" #7 0x0000557cbd221c31 in bdrv_open (filename=filename@entry=0x7ffd605544a8 "replication://", reference=reference@entry=0x0, options=options@entry=0x557cbe1ea120, flags=flags@entry=65792, errp=errp@entry=0x7ffd60553bc0) at /usr/src/debug/qemu-2.10.1-1.fc28.x86_64/block.c:2630 No locals. #8 0x0000557cbd25c346 in blk_new_open (filename=0x7ffd605544a8 "replication://", reference=0x0, options=0x557cbe1ea120, flags=65792, errp=0x7ffd60553bc0) at /usr/src/debug/qemu-2.10.1-1.fc28.x86_64/block/block-backend.c:324 blk = 0x557cbe1eb140 bs = <optimized out> perm = 1 #9 0x0000557cbd213366 in img_open_file (filename=0x7ffd605544a8 "replication://", options=0x557cbe1ea120, fmt=<optimized out>, flags=65792, writethrough=<optimized out>, force_share=<optimized out>, quiet=<optimized out>) at /usr/src/debug/qemu-2.10.1-1.fc28.x86_64/qemu-img.c:315 blk = <optimized out> local_err = 0x0 #10 0x0000557cbd213cf2 in img_open (image_opts=<optimized out>, filename=0x7ffd605544a8 "replication://", fmt=<optimized out>, flags=65792, writethrough=<optimized out>, quiet=<optimized out>, force_share=false) at /usr/src/debug/qemu-2.10.1-1.fc28.x86_64/qemu-img.c:375 image_opts = false force_share = false writethrough = <optimized out> flags = 65792 fmt = <optimized out> quiet = <optimized out> filename = 0x7ffd605544a8 "replication://" #11 0x0000557cbd21400c in collect_image_info_list (force_share=<optimized out>, chain=false, fmt=0x0, filename=0x7ffd605544a8 "replication://", image_opts=false) at /usr/src/debug/qemu-2.10.1-1.fc28.x86_64/qemu-img.c:2481 blk = <optimized out> bs = <optimized out> info = 0x0 elem = <optimized out> head = 0x0 last = 0x7ffd60553c80 err = 0x0 #12 img_info (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/qemu-2.10.1-1.fc28.x86_64/qemu-img.c:2611 c = <optimized out> output_format = OFORMAT_HUMAN chain = false filename = <optimized out> fmt = <optimized out> output = <optimized out> force_share = <optimized out> #13 0x0000557cbd21190a in main (argc=2, argv=<optimized out>) at /usr/src/debug/qemu-2.10.1-1.fc28.x86_64/qemu-img.c:4779 cmd = 0x557cbd5472c0 <img_cmds+128> cmdname = <optimized out> local_error = 0x0 trace_file = 0x0 c = <optimized out> long_options = {{name = 0x557cbd2e484f "help", has_arg = 0, flag = 0x0, val = 104}, {name = 0x557cbd2ed3d4 "version", has_arg = 0, flag = 0x0, val = 86}, {name = 0x557cbd2e4c1e "trace", has_arg = 1, flag = 0x0, val = 84}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}} Expected results: No SIGABRT Additional info:
I am able to reproduce this. Note that the file is called "replication:" (with a following colon) so presumably qemu confuses this for a protocol. $ qemu-img info replication: qemu-img: /builddir/build/BUILD/qemu-2.10.0/block.c:2542: bdrv_open_inherit: Assertion `!!(flags & BDRV_O_PROTOCOL) == !!drv->bdrv_file_open' failed. Aborted (core dumped) $ rpm -q qemu qemu-2.10.0-1.fc28.x86_64 Since this bug also happens upstream, I filed it there: https://bugs.launchpad.net/qemu/+bug/1726733
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle. Changing version to '28'.
This message is a reminder that Fedora 28 is nearing its end of life. On 2019-May-28 Fedora will stop maintaining and issuing updates for Fedora 28. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '28'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 28 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
This didn't make it into f28 but is fixed in qemu f29+ with qemu 2.12+