qemu-img: GLib: g_hash_table_foreach_remove: assertion 'hash_table != NULL' failed
Host environment
- Operating system: Fedora Rawhide
- OS/kernel version: Linux pick 6.2.0-0.rc2.18.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 2 14:54:23 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
- Architecture: x86-64
- QEMU flavor: qemu-img
- QEMU version: qemu from git @ commit 13356edb
- QEMU command line: (see below)
Description of problem
Mixing driver=https with an http URL gives this assert fail in glib2:
$ ~/d/qemu/build/qemu-img convert -p -W -f qcow2 'json:{ "file.readahead": 67108864, "file.driver": "https", "file.url": "http://web/tmp/jammy-server-cloudimg-amd64.qcow2", "file.timeout":2000 }' -O raw jammy-server-cloudimg-amd64.img.raw
qemu-img: GLib: g_hash_table_foreach_remove: assertion 'hash_table != NULL' failed
qemu-img: GLib: g_hash_table_destroy: assertion 'hash_table != NULL' failed
qemu-img: Could not open 'json:{ "file.readahead": 67108864, "file.driver": "https", "file.url": "http://web/tmp/jammy-server-cloudimg-amd64.qcow2", "file.timeout":2000 }': https curl driver cannot handle the URL 'http://oirase.annexia.org/tmp/jammy-server-cloudimg-amd64.qcow2' (does not start with 'https://')
(It seems to be a warning rather than a crash)
Steps to reproduce
- Run the command above.
Edited by Richard W.M. Jones