Crash in gtk_clipboard_get_display
Affected version
- Nightly flatpak: Didn't test, I already have the latest version as RPM, at the time of writing this
- Other: gnome-connections-46.0-2.fc40.x86_64, Fedora 40
Steps to reproduce
I can easily trigger this crash:
- Use Remote Login to connect to a system and log in
- On the local system, use Alt+Tab or gnome overview to switch between gnome-connections window and other apps
- Crash.
Note: The crash only seems to occur with Remote Login (a new remote session from gdm). With Desktop Sharing (an existing session), it didn't crash for me. Note: When reproducing this, be aware that Remote Login is currently broken by SELinux on Fedora, see bug 2271661.
Current behavior
Crash
Expected behavior
Not crash
Additional information
Truncated backtrace
Thread no. 1 (19 frames)
#0 gtk_clipboard_get_display at ../gtk/gtkclipboard.c:1695
#1 gtk_clipboard_wait_for_targets at ../gtk/gtkclipboard.c:1869
#2 send_client_format_list at ../subprojects/gtk-frdp/src/frdp-channel-clipboard.c:737
#4 signal_emit_unlocked_R.isra.0 at ../gobject/gsignal.c:3888
#5 signal_emit_valist_unlocked at ../gobject/gsignal.c:3520
#8 _gdk_event_emit at ../gdk/gdkevents.c:73
#12 g_main_context_dispatch_unlocked at ../glib/gmain.c:4152
#13 g_main_context_iterate_unlocked.isra.0 at ../glib/gmain.c:4217
#15 gtk_clipboard_wait_for_contents at ../gtk/gtkclipboard.c:1436
#16 gtk_clipboard_wait_is_text_available at ../gtk/gtkclipboard.c:1720
#17 clipboard_owner_change_cb at ../subprojects/gtk-frdp/src/frdp-channel-clipboard.c:692
#20 signal_emit_unlocked_R.isra.0 at ../gobject/gsignal.c:3888
#21 signal_emit_valist_unlocked at ../gobject/gsignal.c:3520
#24 _gdk_event_emit at ../gdk/gdkevents.c:73
#28 g_main_context_dispatch_unlocked at ../glib/gmain.c:4152
#29 g_main_context_iterate_unlocked.isra.0 at ../glib/gmain.c:4217
#30 g_main_context_iteration at ../glib/gmain.c:4282
#31 g_application_run at ../gio/gapplication.c:2712
#32 _vala_main at ../src/main.vala:33
Full backtrace: backtrace
Downstream Fedora bug: bug 2273629