Segfault in `desktop_surface_removed` (of kiosk-shell) when client terminates abruptly
Weston segfaults. This happened directly after a client unexpectedly closed (it got killed) so this is very likely correlated. Info from coredumpctl can be seen below, I also attached the full coredump.
PID: 23542 (weston)
UID: 999 (kiosk)
GID: 999 (kiosk)
Signal: 11 (SEGV)
Timestamp: Wed 2024-06-19 00:34:52 CEST (16h ago)
Command Line: /usr/bin/weston --modules=systemd-notify.so
Executable: /usr/bin/weston
Control Group: /user.slice/user-999.slice/user@999.service/app.slice/weston.service
Unit: user@999.service
User Unit: weston.service
Slice: user-999.slice
Owner UID: 999 (kiosk)
Boot ID: 0619f041e2954009ad1aef843dcbd2b1
Machine ID: 87e832893dfe477888ca0958651efd0d
Hostname: Digital-Signage-Player
Storage: /var/lib/systemd/coredump/core.weston.999.0619f041e2954009ad1aef843dcbd2b1.23542.1718750092000000.zst (present)
Size on Disk: 1.9M
Package: weston/13.0.0-5.fc40
build-id: 205699b83aed4bdf7e337ba397209543dc25b719
Message: Process 23542 (weston) of user 999 dumped core.
Module systemd-notify.so from rpm weston-13.0.0-5.fc40.x86_64
Module kiosk-shell.so from rpm weston-13.0.0-5.fc40.x86_64
Module libxshmfence.so.1 from rpm libxshmfence-1.3.2-3.fc40.x86_64
Module libxcb-sync.so.1 from rpm libxcb-1.17.0-1.fc40.x86_64
Module libxcb-present.so.0 from rpm libxcb-1.17.0-1.fc40.x86_64
Module libxcb-xfixes.so.0 from rpm libxcb-1.17.0-1.fc40.x86_64
Module libxcb-dri2.so.0 from rpm libxcb-1.17.0-1.fc40.x86_64
Module libX11-xcb.so.1 from rpm libX11-1.8.9-1.fc40.x86_64
Module libEGL_mesa.so.0 from rpm mesa-24.0.9-1.fc40.x86_64
Module libGLdispatch.so.0 from rpm libglvnd-1.7.0-4.fc40.x86_64
Module libGLESv2.so.2 from rpm libglvnd-1.7.0-4.fc40.x86_64
Module libEGL.so.1 from rpm libglvnd-1.7.0-4.fc40.x86_64
Module gl-renderer.so from rpm weston-13.0.0-5.fc40.x86_64
Module libpciaccess.so.0 from rpm libpciaccess-0.16-12.fc40.x86_64
Module libtinfo.so.6 from rpm ncurses-6.4-12.20240127.fc40.x86_64
Module libedit.so.0 from rpm libedit-3.1-51.20240517cvs.fc40.x86_64
Module libdrm_intel.so.1 from rpm libdrm-2.4.121-1.fc40.x86_64
Module libdrm_nouveau.so.2 from rpm libdrm-2.4.121-1.fc40.x86_64
Module libdrm_amdgpu.so.1 from rpm libdrm-2.4.121-1.fc40.x86_64
Module libelf.so.1 from rpm elfutils-0.191-4.fc40.x86_64
Module libdrm_radeon.so.1 from rpm libdrm-2.4.121-1.fc40.x86_64
Module libsensors.so.4 from rpm lm_sensors-3.6.0-18.fc40.x86_64
Module libxcb-dri3.so.0 from rpm libxcb-1.17.0-1.fc40.x86_64
Module libz.so.1 from rpm zlib-ng-2.1.6-5.fc40.x86_64
Module iris_dri.so from rpm mesa-24.0.9-1.fc40.x86_64
Module libglapi.so.0 from rpm mesa-24.0.9-1.fc40.x86_64
Module libzstd.so.1 from rpm zstd-1.5.6-1.fc40.x86_64
Module liblzma.so.5 from rpm xz-5.4.6-3.fc40.x86_64
Module liblz4.so.1 from rpm lz4-1.9.4-6.fc40.x86_64
Module libXau.so.6 from rpm libXau-1.0.11-6.fc40.x86_64
Module libxcb.so.1 from rpm libxcb-1.17.0-1.fc40.x86_64
Module libsystemd.so.0 from rpm systemd-255.7-1.fc40.x86_64
Module libxcb-randr.so.0 from rpm libxcb-1.17.0-1.fc40.x86_64
Module libexpat.so.1 from rpm expat-2.6.2-1.fc40.x86_64
Module libseat.so.1 from rpm seatd-0.8.0-2.fc40.x86_64
Module libva-drm.so.2 from rpm libva-2.21.0-3.fc40.x86_64
Module libva.so.2 from rpm libva-2.21.0-3.fc40.x86_64
Module libgbm.so.1 from rpm mesa-24.0.9-1.fc40.x86_64
Module drm-backend.so from rpm weston-13.0.0-5.fc40.x86_64
Module libpcre2-8.so.0 from rpm pcre2-10.42-2.fc40.2.x86_64
Module libcap-ng.so.0 from rpm libcap-ng-0.8.4-4.fc40.x86_64
Module libglib-2.0.so.0 from rpm glib2-2.80.2-1.fc40.x86_64
Module libgobject-2.0.so.0 from rpm glib2-2.80.2-1.fc40.x86_64
Module libgudev-1.0.so.0 from rpm libgudev-238-5.fc40.x86_64
Module libcap.so.2 from rpm libcap-2.69-8.fc40.x86_64
Module libeconf.so.0 from rpm libeconf-0.6.2-2.fc40.x86_64
Module libaudit.so.1 from rpm audit-4.0.1-1.fc40.x86_64
Module libwacom.so.9 from rpm libwacom-2.11.0-1.fc40.x86_64
Module libudev.so.1 from rpm systemd-255.7-1.fc40.x86_64
Module libmtdev.so.1 from rpm mtdev-1.1.6-8.fc40.x86_64
Module libffi.so.8 from rpm libffi-3.4.4-7.fc40.x86_64
Module libpam.so.0 from rpm pam-1.6.1-3.fc40.x86_64
Module libxkbcommon.so.0 from rpm libxkbcommon-1.6.0-2.fc40.x86_64
Module libdrm.so.2 from rpm libdrm-2.4.121-1.fc40.x86_64
Module libpixman-1.so.0 from rpm pixman-0.43.4-1.fc40.x86_64
Module libevdev.so.2 from rpm libevdev-1.13.1-4.fc40.x86_64
Module libinput.so.10 from rpm libinput-1.25.0-5.fc40.x86_64
Module libwayland-server.so.0 from rpm wayland-1.22.0-3.fc40.x86_64
Module libwayland-client.so.0 from rpm wayland-1.22.0-3.fc40.x86_64
Module libweston-13.so.0 from rpm weston-13.0.0-5.fc40.x86_64
Module libexec_weston.so.0 from rpm weston-13.0.0-5.fc40.x86_64
Module weston from rpm weston-13.0.0-5.fc40.x86_64
Stack trace of thread 23542:
#0 0x00007f61e4c6467b desktop_surface_removed (kiosk-shell.so + 0x367b)
#1 0x00007f61e823600c weston_desktop_xdg_surface_destroy (libweston-13.so.0 + 0x3e00c)
#2 0x00007f61e82360b1 weston_desktop_surface_destroy (libweston-13.so.0 + 0x3e0b1)
#3 0x00007f61e8228d29 weston_desktop_client_destroy (libweston-13.so.0 + 0x30d29)
#4 0x00007f61e81df701 destroy_resource (libwayland-server.so.0 + 0x9701)
#5 0x00007f61e81dfee3 wl_client_destroy (libwayland-server.so.0 + 0x9ee3)
#6 0x00007f61e81e0450 wl_client_connection_data (libwayland-server.so.0 + 0xa450)
#7 0x00007f61e81df852 wl_event_loop_dispatch (libwayland-server.so.0 + 0x9852)
#8 0x00007f61e81e00d5 wl_display_run (libwayland-server.so.0 + 0xa0d5)
#9 0x00007f61e845bc7b wet_main (libexec_weston.so.0 + 0x11c7b)
#10 0x00007f61e827f088 __libc_start_call_main (libc.so.6 + 0x2a088)
#11 0x00007f61e827f14b __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2a14b)
#12 0x00005649134a90a5 _start (weston + 0x10a5)
Stack trace of thread 23545:
#0 0x00007f61e82e7919 __futex_abstimed_wait_common (libc.so.6 + 0x92919)
#1 0x00007f61e82ea2e9 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x952e9)
#2 0x00007f61e4e9d8ed cnd_wait (iris_dri.so + 0x9d8ed)
#3 0x00007f61e4e7b4ab util_queue_thread_func (iris_dri.so + 0x7b4ab)
#4 0x00007f61e4e9d81c impl_thrd_routine (iris_dri.so + 0x9d81c)
#5 0x00007f61e82eb1b7 start_thread (libc.so.6 + 0x961b7)
#6 0x00007f61e836d39c __clone3 (libc.so.6 + 0x11839c)
Stack trace of thread 23547:
#0 0x00007f61e82e7919 __futex_abstimed_wait_common (libc.so.6 + 0x92919)
#1 0x00007f61e82ea2e9 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x952e9)
#2 0x00007f61e4e9d8ed cnd_wait (iris_dri.so + 0x9d8ed)
#3 0x00007f61e4e7b4ab util_queue_thread_func (iris_dri.so + 0x7b4ab)
#4 0x00007f61e4e9d81c impl_thrd_routine (iris_dri.so + 0x9d81c)
#5 0x00007f61e82eb1b7 start_thread (libc.so.6 + 0x961b7)
#6 0x00007f61e836d39c __clone3 (libc.so.6 + 0x11839c)
Stack trace of thread 23544:
#0 0x00007f61e82e7919 __futex_abstimed_wait_common (libc.so.6 + 0x92919)
#1 0x00007f61e82ea2e9 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x952e9)
#2 0x00007f61e4e9d8ed cnd_wait (iris_dri.so + 0x9d8ed)
#3 0x00007f61e4e7b4ab util_queue_thread_func (iris_dri.so + 0x7b4ab)
#4 0x00007f61e4e9d81c impl_thrd_routine (iris_dri.so + 0x9d81c)
#5 0x00007f61e82eb1b7 start_thread (libc.so.6 + 0x961b7)
#6 0x00007f61e836d39c __clone3 (libc.so.6 + 0x11839c)
Stack trace of thread 23546:
#0 0x00007f61e82e7919 __futex_abstimed_wait_common (libc.so.6 + 0x92919)
#1 0x00007f61e82ea2e9 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x952e9)
#2 0x00007f61e4e9d8ed cnd_wait (iris_dri.so + 0x9d8ed)
#3 0x00007f61e4e7b4ab util_queue_thread_func (iris_dri.so + 0x7b4ab)
#4 0x00007f61e4e9d81c impl_thrd_routine (iris_dri.so + 0x9d81c)
#5 0x00007f61e82eb1b7 start_thread (libc.so.6 + 0x961b7)
#6 0x00007f61e836d39c __clone3 (libc.so.6 + 0x11839c)
ELF object binary architecture: AMD x86-64