mutter from current git main branch segfaults at startup
Affected version
Provide at least the following information:
- Fedora 38
- mutter from git main at commit a95a3a0d
- Wayland
Bug summary
mutter segfaults at startup.
Steps to reproduce
- Build mutter
- Run mutter
What happened
mutter segfaults with the following backtrace:
(gdb) bt
#0 0x00007f65a5773958 in meta_input_device_native_new_virtual (seat_impl=0x0, type=type@entry=CLUTTER_POINTER_DEVICE,
mode=mode@entry=CLUTTER_INPUT_MODE_PHYSICAL) at ../../../../src/gnome/mutter/src/backends/native/meta-input-device-native.c:1535
#1 0x00007f65a57983fc in meta_virtual_input_device_native_constructed (object=0x7f6538077c80)
at ../../../../src/gnome/mutter/src/backends/native/meta-virtual-input-device-native.c:1038
#2 0x00007f65a52a2956 in g_object_new_internal (class=class@entry=0x7f65380e90f0, params=params@entry=0x7f65677fd600, n_params=n_params@entry=3)
at ../../../../src/gnome/glib/gobject/gobject.c:2297
#3 0x00007f65a52a4321 in g_object_new_valist (object_type=<optimized out>, first_property_name=first_property_name@entry=0x7f65a57c600e "seat",
var_args=var_args@entry=0x7f65677fd8c8) at ../../../../src/gnome/glib/gobject/gobject.c:2585
#4 0x00007f65a52a498c in g_object_new (object_type=<optimized out>, first_property_name=first_property_name@entry=0x7f65a57c600e "seat")
at ../../../../src/gnome/glib/gobject/gobject.c:2058
#5 0x00007f65a5795ee5 in meta_seat_native_create_virtual_device (seat=0x9d6c70, device_type=CLUTTER_POINTER_DEVICE)
at ../../../../src/gnome/mutter/src/backends/native/meta-seat-native.c:312
#6 0x00007f65a57738e2 in enable_mousekeys (device_evdev=0x9da0e0) at ../../../../src/gnome/mutter/src/backends/native/meta-input-device-native.c:895
#7 meta_input_device_native_apply_kbd_a11y_settings_in_impl (device=device@entry=0x9da0e0, settings=settings@entry=0x7f65677fda80)
at ../../../../src/gnome/mutter/src/backends/native/meta-input-device-native.c:1239
#8 0x00007f65a5793561 in evdev_add_device (libinput_device=<optimized out>, seat_impl=0x9d7db0)
at ../../../../src/gnome/mutter/src/backends/native/meta-seat-impl.c:1755
#9 process_base_event (event=0x7f653806d770, seat_impl=0x9d7db0) at ../../../../src/gnome/mutter/src/backends/native/meta-seat-impl.c:1813
#10 process_event (event=0x7f653806d770, seat_impl=0x9d7db0) at ../../../../src/gnome/mutter/src/backends/native/meta-seat-impl.c:2682
#11 process_events (seat_impl=seat_impl@entry=0x9d7db0) at ../../../../src/gnome/mutter/src/backends/native/meta-seat-impl.c:2698
#12 0x00007f65a5794b66 in init_libinput (error=0x7f65677fdaf8, seat_impl=0x9d7db0) at ../../../../src/gnome/mutter/src/backends/native/meta-seat-impl.c:2844
#13 input_thread (seat_impl=0x9d7db0) at ../../../../src/gnome/mutter/src/backends/native/meta-seat-impl.c:2909
#14 0x00007f65a554451d in g_thread_proxy (data=0x924d40) at ../../../../src/gnome/glib/glib/gthread.c:831
#15 0x00007f65a50f1907 in start_thread () from /lib64/libc.so.6
#16 0x00007f65a5177870 in clone3 () from /lib64/libc.so.6
What did you expect to happen
mutter starts.
Relevant logs, screenshots, screencasts etc.
As discussed on IRC with @jadahl, this was first introduced with !3070 (merged)
Edited by Olivier Fourdan