Description of problem: There is a recursion cycle in the GTK3 clipboard handling code: VclToGtkHelper::setSelectionData -> GtkClipboardTransferable::getTransferData -> gtk_clipboard_wait_for_text -> VclToGtkHelper::setSelectionData This leads to infinite recursion and a crash due to stack exhaustion. I can reproduce it every time: 1. Open new Calc spreadsheet 2. Add a new sheet 3. On Sheet1, fill cells A1:E10 with numbers (using autofill) 4. Select cells A2:E3 (using mouse) and press Ctrl-X to cut 5. Switch to Sheet2 by clicking its tab handle at the bottom 6. Crash! Version-Release number of selected component: libreoffice-core-5.1.4.2-4.fc24 Additional info: reporter: libreport-2.7.1 backtrace_rating: 4 cmdline: /usr/lib64/libreoffice/program/soffice.bin --calc '/home/tootea/Sta\xc5\xbeen\xc3\xa9/Vyvoj_hodnoty_fond\xc5\xaf_2.xls' crash_function: g_pointer_bit_lock executable: /usr/lib64/libreoffice/program/soffice.bin global_pid: 4866 kernel: 4.6.3-300.fc24.x86_64 pkg_fingerprint: 73BD E983 81B4 6521 pkg_vendor: Fedora Project reproducible: The problem occurs regularly runlevel: N 5 type: CCpp uid: 1000 Truncated backtrace: Thread no. 1 (10 frames) #0 g_pointer_bit_lock at gbitlock.c:402 #1 g_datalist_lock at gdataset.c:209 #2 g_datalist_id_dup_data at gdataset.c:852 #3 g_datalist_id_get_data at gdataset.c:798 #4 g_object_notify_queue_freeze at gobject.c:232 #5 g_object_init at gobject.c:975 #6 g_type_create_instance at gtype.c:1869 #7 g_object_new_internal at gobject.c:1781 #10 _gdk_display_create_window at gdkdisplay.c:2190 #11 gdk_window_new at gdkwindow.c:1317
Created attachment 1176901 [details] File: backtrace
Created attachment 1176902 [details] File: cgroup
Created attachment 1176903 [details] File: core_backtrace
Created attachment 1176904 [details] File: dso_list
Created attachment 1176905 [details] File: environ
Created attachment 1176906 [details] File: exploitable
Created attachment 1176907 [details] File: limits
Created attachment 1176908 [details] File: maps
Created attachment 1176909 [details] File: mountinfo
Created attachment 1176910 [details] File: namespaces
Created attachment 1176911 [details] File: open_fds
Created attachment 1176912 [details] File: proc_pid_status
Created attachment 1176913 [details] File: var_log_messages
wayland or X ?
X (KDE Plasma)
*** This bug has been marked as a duplicate of bug 1352965 ***