GPaste icon indicating copy to clipboard operation
GPaste copied to clipboard

Crash on fast remove item clicking

Open jtojnar opened this issue 4 years ago • 0 comments

When I am clicking the delete item button quickly in succession, trying to remove last few entries added by a broken program, both the UI and the daemon crash:

Aug 24 14:05:29 kaiser .gnome-shell-wr[25019]: JS ERROR: Exception in callback for signal: open-state-changed: TypeError: this._client is undefined
                                               _refresh@/run/current-system/sw/share/gnome-shell/extensions/[email protected]/indicator.js:257:13
                                               _updatePage@/run/current-system/sw/share/gnome-shell/extensions/[email protected]/indicator.js:197:9
                                               _onOpenStateChanged@/run/current-system/sw/share/gnome-shell/extensions/[email protected]/indicator.js:339:13
                                               _emit@resource:///org/gnome/gjs/modules/signals.js:142:27
                                               open@resource:///org/gnome/shell/ui/popupMenu.js:849:9
                                               toggle@resource:///org/gnome/shell/ui/popupMenu.js:728:13
                                               _onEvent@resource:///org/gnome/shell/ui/panelMenu.js:139:13
Aug 24 14:05:29 kaiser .gnome-shell-wr[25019]: JS ERROR: Exception in callback for signal: open-state-changed: TypeError: this._client is undefined
                                               _refresh@/run/current-system/sw/share/gnome-shell/extensions/[email protected]/indicator.js:257:13
                                               _updatePage@/run/current-system/sw/share/gnome-shell/extensions/[email protected]/indicator.js:197:9
                                               _onOpenStateChanged@/run/current-system/sw/share/gnome-shell/extensions/[email protected]/indicator.js:339:13
                                               _emit@resource:///org/gnome/gjs/modules/signals.js:142:27
                                               open@resource:///org/gnome/shell/ui/popupMenu.js:849:9
                                               toggle@resource:///org/gnome/shell/ui/popupMenu.js:728:13
                                               _onEvent@resource:///org/gnome/shell/ui/panelMenu.js:139:13

Aug 24 14:06:22 kaiser .gpaste-daemon-[25092]: g_paste_item_get_kind: assertion '_G_PASTE_IS_ITEM (self)' failed
Aug 24 14:06:22 kaiser kernel: .gpaste-daemon-[25092]: segfault at 0 ip 00007f7fe12a04b1 sp 00007ffc39d3acf8 error 4 in libc-2.27.so[7f7fe1170000+13d000]
Aug 24 14:06:22 kaiser kernel: Code: 84 00 00 00 00 00 0f 1f 00 31 c0 c5 f8 77 c3 66 2e 0f 1f 84 00 00 00 00 00 89 f9 48 89 fa c5 f9 ef c0 83 e1 3f 83 f9 20 77 1f <c5> fd 74 0f c5 fd d7 c1 85 c0 0f 85 df 00 00 00 48 83 c7 20 83 e1
Aug 24 14:06:22 kaiser .gpaste-daemon-[25092]: g_paste_item_get_special_values: assertion '_G_PASTE_IS_ITEM (self)' failed
Aug 24 14:06:22 kaiser .gpaste-daemon-[25092]: g_paste_item_get_value: assertion '_G_PASTE_IS_ITEM (self)' failed
Aug 24 14:06:22 kaiser .gpaste-daemon-[25092]: g_paste_util_xml_encode: assertion 'text' failed
Aug 24 14:06:22 kaiser systemd[1]: Started Process Core Dump (PID 25343/UID 0).
-- Subject: Unit [email protected] has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit [email protected] has finished starting up.
-- 
-- The start-up result is RESULT.
Aug 24 14:06:22 kaiser systemd[1563]: org.gnome.GPaste.service: Main process exited, code=dumped, status=11/SEGV
Aug 24 14:06:22 kaiser systemd[1563]: org.gnome.GPaste.service: Failed with result 'core-dump'.
Aug 24 14:06:22 kaiser .gnome-shell-wr[25019]: JS ERROR: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
                                               _refresh/</<@/run/current-system/sw/share/gnome-shell/extensions/[email protected]/indicator.js:261:38
Aug 24 14:06:22 kaiser .gnome-shell-wr[25019]: JS ERROR: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
                                               _refresh/<@/run/current-system/sw/share/gnome-shell/extensions/[email protected]/indicator.js:258:30
Aug 24 14:06:22 kaiser .gpaste-ui-wrap[25335]: g_variant_new_string: assertion 'string != NULL' failed
Aug 24 14:06:22 kaiser kernel: .gpaste-ui-wrap[25335]: segfault at 20 ip 00007fd916a947e0 sp 00007fff08ae2fa8 error 4 in libglib-2.0.so.0.6000.4[7fd916a23000+7f000]
Aug 24 14:06:22 kaiser kernel: Code: 89 68 10 48 89 58 18 48 83 c4 08 5b 5d c3 66 66 2e 0f 1f 84 00 00 00 00 00 90 48 8b 07 c3 66 66 2e 0f 1f 84 00 00 00 00 00 90 <8b> 47 20 c1 e8 02 83 e0 01 c3 66 0f 1f 44 00 00 48 85 ff 74 7b 53
Aug 24 14:06:22 kaiser .gpaste-ui-wrap[25335]: g_variant_ref_sink: assertion 'value != NULL' failed

gpaste-daemon backtrace

#0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62
#1  0x00007efe32ca135a in g_paste_file_backend_write_history_file () from /nix/store/v6jsl0xifp7knrjrvr8ig8dmn4n5yqnn-gpaste-3.32.0/lib/libgpaste.so.11
#2  0x00007efe32ca1c23 in g_paste_storage_backend_write_history () from /nix/store/v6jsl0xifp7knrjrvr8ig8dmn4n5yqnn-gpaste-3.32.0/lib/libgpaste.so.11
#3  0x00007efe32c9880c in g_paste_history_update () from /nix/store/v6jsl0xifp7knrjrvr8ig8dmn4n5yqnn-gpaste-3.32.0/lib/libgpaste.so.11
#4  0x00007efe32c9d90d in g_paste_daemon_dbus_method_call () from /nix/store/v6jsl0xifp7knrjrvr8ig8dmn4n5yqnn-gpaste-3.32.0/lib/libgpaste.so.11
#5  0x00007efe32352019 in call_in_idle_cb () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libgio-2.0.so.0
#6  0x00007efe32120755 in g_main_context_dispatch () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libglib-2.0.so.0
#7  0x00007efe32120b20 in g_main_context_iterate.isra () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libglib-2.0.so.0
#8  0x00007efe32120bac in g_main_context_iteration () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libglib-2.0.so.0
#9  0x00007efe323280ad in g_application_run () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libgio-2.0.so.0
#10 0x0000000000402537 in main ()

gpaste-ui backtrace

#0  0x00007fd916a947e0 in g_variant_is_trusted () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libglib-2.0.so.0
#1  0x00007fd916a8e1cd in g_variant_new_tuple () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libglib-2.0.so.0
#2  0x00007fd9174d3169 in g_paste_client_get_history_size () from /nix/store/v6jsl0xifp7knrjrvr8ig8dmn4n5yqnn-gpaste-3.32.0/lib/libgpaste.so.11
#3  0x00007fd916c31c19 in g_task_return_now () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libgio-2.0.so.0
#4  0x00007fd916c32723 in g_task_return.part () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libgio-2.0.so.0
#5  0x00007fd916c94d39 in reply_cb () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libgio-2.0.so.0
#6  0x00007fd916c31c19 in g_task_return_now () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libgio-2.0.so.0
#7  0x00007fd916c32723 in g_task_return.part () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libgio-2.0.so.0
#8  0x00007fd916c89911 in g_dbus_connection_call_done () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libgio-2.0.so.0
#9  0x00007fd916c31c19 in g_task_return_now () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libgio-2.0.so.0
#10 0x00007fd916c31c59 in complete_in_idle_cb () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libgio-2.0.so.0
#11 0x00007fd916a56755 in g_main_context_dispatch () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libglib-2.0.so.0
#12 0x00007fd916a56b20 in g_main_context_iterate.isra () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libglib-2.0.so.0
#13 0x00007fd916a56bac in g_main_context_iteration () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libglib-2.0.so.0
#14 0x00007fd916c5e0ad in g_application_run () from /nix/store/vl5a1s7i5bqjjbgs5x821avx3ddcx8a4-glib-2.60.4/lib/libgio-2.0.so.0
#15 0x00000000004023fb in main ()

No debug symbols at the moment :disappointed:

This is GPaste 3.32.0 on GNOME Shell 3.32.2.

jtojnar avatar Aug 24 '19 12:08 jtojnar