Crash on startup: boxes_vm_importer_get_source_media SIGSEGV
Affected version
- Boxes version: 45.0
- Operating system name and version:
uname -a
Linux eric-frmwk 6.6.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 02 Jan 2024 02:28:28 +0000 x86_64 GNU/Linux
Steps to reproduce
- Create a debian vm from 12.4.0-amd64 netinst image with mostly default settings, but bumped the RAM, but kept 20gb storage. Used the magical auto-installer.
- Do some stuff in it and realize I needed to give it more storage
- Try to clone the OS to a new image with 30gb
- That gets hung
- Now gnome-boxes crashes on startup
Seen behavior
Cloning hangs, now boxes crashes on startup
Expected behavior
Cloning works, doesn't prevent gnome boxes from starting up
Relevant logs, screenshots, screencasts etc.
❯ G_MESSAGES_DEBUG=Boxes gnome-boxes
(gnome-boxes:10846): Boxes-DEBUG: 18:16:03.924: util-app.vala:470: check_cpu_vt_capability: yes
(gnome-boxes:10846): Boxes-DEBUG: 18:16:03.928: util-app.vala:490: check_module_kvm_loaded: yes
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.054: libvirt-machine.vala:222: new libvirt machine: debian12-uni
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.054: machine.vala:105: State of 'Debian 12' changed to BOXES_MACHINE_MACHINE_STATE_STOPPED
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.304: util-app.vala:371: Connected to system libvirt, now fetching domains..
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.314: thumbnail.vala:58: Updating thumbnail!
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.316: thumbnail.vala:58: Updating thumbnail!
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.316: vm-configurator.vala:575: No XML node edited' for domain 'debian12-uni'.
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.317: vm-configurator.vala:678: Creating bridge network device for debian12-uni
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.317: vm-configurator.vala:343: Updating domain devices for debian12-uni
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.348: libvirt-machine.vala:222: new libvirt machine: debian12-uni-2
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.348: machine.vala:105: State of 'Debian 12 2' changed to BOXES_MACHINE_MACHINE_STATE_STOPPED
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.357: thumbnail.vala:58: Updating thumbnail!
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.358: thumbnail.vala:58: Updating thumbnail!
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.358: vm-configurator.vala:575: No XML node edited' for domain 'debian12-uni-2'.
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.358: vm-configurator.vala:678: Creating bridge network device for debian12-uni-2
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.358: vm-configurator.vala:343: Updating domain devices for debian12-uni-2
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.378: libvirt-broker.vala:113: Continuing cloning of 'Debian 12 2', ..
(gnome-boxes:10846): Boxes-DEBUG: 18:16:04.378: installed-media.vala:36: '/home/eric/.local/share/gnome-boxes/images/debian12-uni' doesn't need to be imported
(gnome-boxes:10846): Boxes-CRITICAL **: 18:16:04.378: boxes_vm_importer_get_source_media: assertion 'self != NULL' failed
fish: Job 1, 'G_MESSAGES_DEBUG=Boxes gnome-bo…' terminated by signal SIGSEGV (Address boundary error)
(gnome-boxes:14656): Boxes-CRITICAL **: 18:36:29.498: boxes_vm_importer_get_source_media: assertion 'self != NULL' failed
Thread 1 "gnome-boxes" received signal SIGSEGV, Segmentation fault.
boxes_libvirt_broker_real_add_source_co.isra.0 (_data_=0x555555a0d470) at src/gnome-boxes.p/libvirt-broker.c:1859
Downloading source file /usr/src/debug/gnome-boxes/build/src/gnome-boxes.p/libvirt-broker.c
1859 _data_->_tmp42_ = ((BoxesInstallerMedia*) _data_->_tmp41_)->device_file;
Edited by Eric Riese