Bug#1023967: gnome-boxes: Crashed on start

Bernhard Übelacker bernhardu at mailbox.org
Mon Nov 28 13:38:36 GMT 2022


Dear Maintainer,
I tried to get some more information from the dmesg lines.

It leads to the function "boxes_libvirt_broker_real_add_source_co",
which is also written in the critical message before
and unfortunately line numbers are for the generated c files from vala sources.

There are several upstream bug reports that might be related (see at the bottom).
Issue 603 notes that "~/.cache/libvirt" and/or "~/.config/libvirt"
might be causing it and moving/renaming it could help.

Kind regards,
Bernhard




# Minimal Bookworm/testing amd64 qemu VM 2022-11-28

apt update
apt dist-upgrade
apt install gdb gnome-boxes gnome-boxes-dbgsym

https://wiki.debian.org/InterpretingKernelOutputAtProcessCrash

error 4 == 0b00000100
--> 0: no page found, 0: read access, 1: user-mode access

$ gdb -q
(gdb) set width 0
(gdb) set pagination off
(gdb) file gnome-boxes
Reading symbols from gnome-boxes...
Reading symbols from /usr/lib/debug/.build-id/e3/cf084ee153360f107cb0e7b5dd7a9c5480d25c.debug...
(gdb) tb main
Temporary breakpoint 1 at 0x31150: file src/gnome-boxes.p/main.c, line 523.
(gdb) run
Starting program: /usr/bin/gnome-boxes
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Temporary breakpoint 1, main (argc=1, argv=0x7fffffffe4c8) at src/gnome-boxes.p/main.c:523
523     src/gnome-boxes.p/main.c: Datei oder Verzeichnis nicht gefunden.
(gdb) pipe info target | grep "\.text"
         0x0000555555584fd0 - 0x000055555560f804 is .text
...
(gdb) find /b 0x0000555555584fd0, 0x000055555560f804, 0xf6, 0xfd, 0xff, 0x85, 0xc0, 0x0f, 0x85, 0x03, 0x06, 0x00, 0x00, 0x31, 0xed, 0x48, 0x89, 0xab, 0xc0, 0x01, 0x00, 0x00, 0x48, 0x89, 0xef, 0x48, 0x89, 0xab, 0xa0, 0x01, 0x00, 0x00, 0x48, 0x89, 0xab, 0xd0, 0x01, 0x00, 0x00, 0xe8, 0x4c, 0x15, 0x04, 0x00, 0x48, 0x8b, 0x78, 0x40, 0x66, 0x48, 0x0f, 0x6e, 0xc0, 0x66, 0x0f, 0x6c, 0xc0, 0x48, 0x89, 0xbb, 0xe8, 0x01, 0x00, 0x00, 0x0f, 0x11
0x5555555a526a <boxes_libvirt_broker_real_add_source_co+2154>
1 pattern found.
(gdb) b * (0x5555555a526a + 42)
Breakpoint 2 at 0x5555555a5294: file src/gnome-boxes.p/libvirt-broker.c, line 1866.
(gdb) info b
Num     Type           Disp Enb Address            What
2       breakpoint     keep y   0x00005555555a5294 in boxes_libvirt_broker_real_add_source_co at src/gnome-boxes.p/libvirt-broker.c:1866
(gdb) disassemble /r 0x5555555a526a,0x5555555a526a + 62
Dump of assembler code from 0x5555555a526a to 0x5555555a52a8:
...
    0x00005555555a5288 <boxes_libvirt_broker_real_add_source_co+2184>:   48 89 ab d0 01 00 00    mov    %rbp,0x1d0(%rbx)
    0x00005555555a528f <boxes_libvirt_broker_real_add_source_co+2191>:   e8 4c 15 04 00          call   0x5555555e67e0 <boxes_vm_importer_get_source_media>
    0x00005555555a5294 <boxes_libvirt_broker_real_add_source_co+2196>:   48 8b 78 40             mov    0x40(%rax),%rdi                                     <<<<<<<<<<
    0x00005555555a5298 <boxes_libvirt_broker_real_add_source_co+2200>:   66 48 0f 6e c0          movq   %rax,%xmm0
...

https://sources.debian.org/src/gnome-boxes/43.0-1/src/libvirt-broker.vala/#L145
https://gitlab.gnome.org/GNOME/gnome-boxes/-/blob/main/src/libvirt-broker.vala#L145

https://gitlab.gnome.org/GNOME/gnome-boxes/-/issues/678
https://gitlab.gnome.org/GNOME/gnome-boxes/-/issues/649
https://gitlab.gnome.org/GNOME/gnome-boxes/-/issues/603
https://gitlab.gnome.org/GNOME/gnome-boxes/-/issues/566



More information about the pkg-gnome-maintainers mailing list