Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 1459048[details]
gdb backtrace
Description of problem:
The command "qemu-img map" results in 'core dumped' when specifying the tested file which is a plain file (i.e. not qcow2/raw image).
Version-Release number of selected component (if applicable):
qemu-kvm-rhev-2.12.0-7.el7
kernel-3.10.0-919.el7
How reproducible:
3/3
Steps to Reproduce:
1.Create a plain file
# cat test
ttttttttttt
tttttttt
2.Dump the metadata
# qemu-img map test
Offset Length Mapped to File
qemu-img: qemu-img.c:2765: get_block_status: Assertion `bytes' failed.
Aborted (core dumped)
Actual results:
Expected results:
No core dumped, and the metadata should be dumped successfully.
Additional info:
1.The result is expected in rhel7.5, so I think it should be a regression. And more details are listed below.
Tested packages:
qemu-kvm-rhev-2.10.0-21.el7_5.1
kernel-3.10.0-862.el7
Steps:
1.1 Create one plain file
# cat test
tttttttttt
sssssss
1.2 Dump metadata of the file
# qemu-img map test
Offset Length Mapped to File
0 0x200 0 test
# qemu-img map test --output=json
[{ "start": 0, "length": 512, "depth": 0, "zero": false, "data": true, "offset": 0}]
2. It is successful to dump metadata for a qcow2/raw image file
Tested packages:
qemu-kvm-rhev-2.12.0-7.el7
kernel-3.10.0-919.el7
Steps:
2.1 # qemu-img create -f qcow2 base.qcow2 1G
Formatting 'base.qcow2', fmt=qcow2 size=1073741824 cluster_size=65536 lazy_refcounts=off refcount_bits=16
2.2 # qemu-io -c 'write 0 200M' base.qcow2
wrote 209715200/209715200 bytes at offset 0
200 MiB, 1 ops; 0.1861 sec (1.049 GiB/sec and 5.3720 ops/sec)
2.3 # qemu-img map base.qcow2
Offset Length Mapped to File
0 0xc800000 0x50000 base.qcow2
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2018:3443
Created attachment 1459048 [details] gdb backtrace Description of problem: The command "qemu-img map" results in 'core dumped' when specifying the tested file which is a plain file (i.e. not qcow2/raw image). Version-Release number of selected component (if applicable): qemu-kvm-rhev-2.12.0-7.el7 kernel-3.10.0-919.el7 How reproducible: 3/3 Steps to Reproduce: 1.Create a plain file # cat test ttttttttttt tttttttt 2.Dump the metadata # qemu-img map test Offset Length Mapped to File qemu-img: qemu-img.c:2765: get_block_status: Assertion `bytes' failed. Aborted (core dumped) Actual results: Expected results: No core dumped, and the metadata should be dumped successfully. Additional info: 1.The result is expected in rhel7.5, so I think it should be a regression. And more details are listed below. Tested packages: qemu-kvm-rhev-2.10.0-21.el7_5.1 kernel-3.10.0-862.el7 Steps: 1.1 Create one plain file # cat test tttttttttt sssssss 1.2 Dump metadata of the file # qemu-img map test Offset Length Mapped to File 0 0x200 0 test # qemu-img map test --output=json [{ "start": 0, "length": 512, "depth": 0, "zero": false, "data": true, "offset": 0}] 2. It is successful to dump metadata for a qcow2/raw image file Tested packages: qemu-kvm-rhev-2.12.0-7.el7 kernel-3.10.0-919.el7 Steps: 2.1 # qemu-img create -f qcow2 base.qcow2 1G Formatting 'base.qcow2', fmt=qcow2 size=1073741824 cluster_size=65536 lazy_refcounts=off refcount_bits=16 2.2 # qemu-io -c 'write 0 200M' base.qcow2 wrote 209715200/209715200 bytes at offset 0 200 MiB, 1 ops; 0.1861 sec (1.049 GiB/sec and 5.3720 ops/sec) 2.3 # qemu-img map base.qcow2 Offset Length Mapped to File 0 0xc800000 0x50000 base.qcow2