Description of problem: $ truncate -s 1G test_sparse $ echo "a" >> test_sparse $ qemu-img map test_sparse Version-Release number of selected component: qemu-img-2.3.0-4.fc22 Additional info: reporter: libreport-2.5.1 backtrace_rating: 4 cmdline: qemu-img map test_sparse crash_function: get_block_status executable: /usr/bin/qemu-img global_pid: 70309 kernel: 4.0.4-303.fc22.x86_64 runlevel: N 5 type: CCpp uid: 1000 Truncated backtrace: Thread no. 1 (2 frames) #4 get_block_status at qemu-img.c:2190 #5 img_map at qemu-img.c:2286
Created attachment 1036422 [details] File: backtrace
Created attachment 1036423 [details] File: cgroup
Created attachment 1036424 [details] File: core_backtrace
Created attachment 1036425 [details] File: dso_list
Created attachment 1036426 [details] File: environ
Created attachment 1036427 [details] File: limits
Created attachment 1036428 [details] File: maps
Created attachment 1036429 [details] File: mountinfo
Created attachment 1036430 [details] File: namespaces
Created attachment 1036431 [details] File: open_fds
Created attachment 1036432 [details] File: proc_pid_status
Created attachment 1036433 [details] File: var_log_messages
Thanks for the simple reproducer! The assertion reproduces for me with qemu-2.1 up to current qemu.git CCing some block layer folks
Sent an upstream patch to fix this: http://lists.nongnu.org/archive/html/qemu-devel/2015-06/msg02505.html
Thanks Kevin!
qemu-2.3.0-7.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/qemu-2.3.0-7.fc22
qemu-2.3.1-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/qemu-2.3.1-1.fc22
Package qemu-2.3.1-1.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing qemu-2.3.1-1.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-13402/qemu-2.3.1-1.fc22 then log in and leave karma (feedback).
qemu-2.3.1-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.