Keruspe / GPaste

Clipboard management system
BSD 2-Clause "Simplified" License
795 stars 56 forks source link

gpaste-client ui segfaults on Fedora31 #289

Open facetoe opened 5 years ago

facetoe commented 5 years ago

I just upgraded to Fedora31 and now gpaste segfaults.

⇒ uname -r
5.3.7-301.fc31.x86_64
⇒ cat /etc/os-release 
NAME=Fedora
VERSION="31 (Workstation Edition)"
ID=fedora
VERSION_ID=31
VERSION_CODENAME=""
PLATFORM_ID="platform:f31"
PRETTY_NAME="Fedora 31 (Workstation Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:31"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f31/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=31
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=31
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Journal output:

Nov 01 17:41:59 localhost.localdomain systemd[2742]: org.gnome.GPaste.Ui.service: Main process exited, code=dumped, status=11/SEGV
Nov 01 17:41:59 localhost.localdomain systemd[2742]: org.gnome.GPaste.Ui.service: Failed with result 'core-dump'.
Nov 01 17:42:00 localhost.localdomain systemd-coredump[5159]: Process 5143 (gpaste-ui) of user 1001 dumped core.

                                                              Stack trace of thread 5143:
                                                              #0  0x00007f03714ed4f9 on_histories_ready (libgpaste.so.11)
                                                              #1  0x00007f0370b4d19a g_task_return_now (libgio-2.0.so.0)
                                                              #2  0x00007f0370b4dd6d g_task_return.part.0 (libgio-2.0.so.0)
                                                              #3  0x00007f0370bb331d reply_cb (libgio-2.0.so.0)
                                                              #4  0x00007f0370b4d19a g_task_return_now (libgio-2.0.so.0)
                                                              #5  0x00007f0370b4dd6d g_task_return.part.0 (libgio-2.0.so.0)
                                                              #6  0x00007f0370ba7bf4 g_dbus_connection_call_done (libgio-2.0.so.0)
                                                              #7  0x00007f0370b4d19a g_task_return_now (libgio-2.0.so.0)
                                                              #8  0x00007f0370b4d1dd complete_in_idle_cb (libgio-2.0.so.0)
                                                              #9  0x00007f03713d8dcb g_idle_dispatch (libglib-2.0.so.0)
                                                              #10 0x00007f03713dc4a0 g_main_context_dispatch (libglib-2.0.so.0)
                                                              #11 0x00007f03713dc830 g_main_context_iterate.isra.0 (libglib-2.0.so.0)
                                                              #12 0x00007f03713dc8d3 g_main_context_iteration (libglib-2.0.so.0)
                                                              #13 0x00007f0370b7ac75 g_application_run (libgio-2.0.so.0)
                                                              #14 0x000055fdd61c96d1 main (gpaste-ui)
                                                              #15 0x00007f03708811a3 __libc_start_main (libc.so.6)
                                                              #16 0x000055fdd61c990e _start (gpaste-ui)

                                                              Stack trace of thread 5145:
                                                              #0  0x00007f037095c9fd recvmsg (libc.so.6)
                                                              #1  0x00007f0370b3ebaf g_socket_receive_message_with_timeout (libgio-2.0.so.0)
                                                              #2  0x00007f0370b3f90a g_socket_receive_message (libgio-2.0.so.0)
                                                              #3  0x00007f0370bb63aa _g_socket_read_with_control_messages_ready (libgio-2.0.so.0)
                                                              #4  0x00007f0370bb6527 _g_socket_read_with_control_messages (libgio-2.0.so.0)
                                                              #5  0x00007f0370bb6620 _g_dbus_worker_do_read_unlocked (libgio-2.0.so.0)
                                                              #6  0x00007f0370bb8c2b _g_dbus_worker_do_read_cb (libgio-2.0.so.0)
                                                              #7  0x00007f0370b4d19a g_task_return_now (libgio-2.0.so.0)
                                                              #8  0x00007f0370b4dd6d g_task_return.part.0 (libgio-2.0.so.0)
                                                              #9  0x00007f0370bb63de _g_socket_read_with_control_messages_ready (libgio-2.0.so.0)
                                                              #10 0x00007f0370b3cf8b socket_source_dispatch (libgio-2.0.so.0)
                                                              #11 0x00007f03713dc4a0 g_main_context_dispatch (libglib-2.0.so.0)
                                                              #12 0x00007f03713dc830 g_main_context_iterate.isra.0 (libglib-2.0.so.0)
                                                              #13 0x00007f03713dcb23 g_main_loop_run (libglib-2.0.so.0)
                                                              #14 0x00007f0370bb670a gdbus_shared_thread_func (libgio-2.0.so.0)
                                                              #15 0x00007f0371405f52 g_thread_proxy (libglib-2.0.so.0)
                                                              #16 0x00007f03705434e2 start_thread (libpthread.so.0)
                                                              #17 0x00007f037095b643 __clone (libc.so.6)

                                                              Stack trace of thread 5146:
                                                              #0  0x00007f037095615d syscall (libc.so.6)
                                                              #1  0x00007f0371428cb6 g_cond_wait_until (libglib-2.0.so.0)
                                                              #2  0x00007f03713ad411 g_async_queue_pop_intern_unlocked (libglib-2.0.so.0)
                                                              #3  0x00007f03714067ea g_thread_pool_thread_proxy (libglib-2.0.so.0)
                                                              #4  0x00007f0371405f52 g_thread_proxy (libglib-2.0.so.0)
                                                              #5  0x00007f03705434e2 start_thread (libpthread.so.0)
                                                              #6  0x00007f037095b643 __clone (libc.so.6)

                                                              Stack trace of thread 5149:
                                                              #0  0x00007f0370950a1f __poll (libc.so.6)
                                                              #1  0x00007f03713dc79e g_main_context_iterate.isra.0 (libglib-2.0.so.0)
                                                              #2  0x00007f03713dc8d3 g_main_context_iteration (libglib-2.0.so.0)
                                                              #3  0x00007f036e52e93d dconf_gdbus_worker_thread (libdconfsettings.so)
                                                              #4  0x00007f0371405f52 g_thread_proxy (libglib-2.0.so.0)
                                                              #5  0x00007f03705434e2 start_thread (libpthread.so.0)
                                                              #6  0x00007f037095b643 __clone (libc.so.6)

                                                              Stack trace of thread 5144:
                                                              #0  0x00007f0370950a1f __poll (libc.so.6)
                                                              #1  0x00007f03713dc79e g_main_context_iterate.isra.0 (libglib-2.0.so.0)
                                                              #2  0x00007f03713dc8d3 g_main_context_iteration (libglib-2.0.so.0)
                                                              #3  0x00007f03713dc921 glib_worker_main (libglib-2.0.so.0)
                                                              #4  0x00007f0371405f52 g_thread_proxy (libglib-2.0.so.0)
                                                              #5  0x00007f03705434e2 start_thread (libpthread.so.0)
                                                              #6  0x00007f037095b643 __clone (libc.so.6)

Looks like it dies in on_histories_ready(). I tried gpaste-client delete-history and then running again but no luck. Let me know if you need any more information.

DamienCassou commented 5 years ago

I have problems with gpaste on Fedora 31 regularly crashing too. How did you get these stack traces?

facetoe commented 5 years ago

@DamienCassou you run something like journalctl --since '10 minutes ago' after a crash and poke around in the journal. In my case there is usually a line in dmesg also

DamienCassou commented 5 years ago

Facetoe notifications@github.com writes:

@DamienCassou you run something like journalctl --since '10 minutes ago' after a crash and poke around in the journal. In my case there is usually a line in dmesg also

how do you start gpaste?

-- Damien Cassou

"Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill

facetoe commented 5 years ago

I run the command line tool: gpaste-client ui

DamienCassou commented 4 years ago

I'm experimenting with a locally-compiled gpaste. No crash so far.

LordChaos73 commented 4 years ago

It is also segfaulting on Pop_OS 19.10:

[22400.349481] gpaste-ui[8424]: segfault at 0 ip 00007fc2fa0d55fa sp 00007fff8fcf6210 error 4 in libgpaste.so.11.1.3[7fc2fa0b1000+29000] [22400.349490] Code: 24 08 48 8d 3d 80 ba 00 00 49 89 c5 4c 89 f6 e8 3c d7 fd ff 31 d2 48 89 ef 48 8d 35 69 ba 00 00 85 c0 0f 94 c2 e8 d6 fe ff ff <49> 8b 7d 00 48 85 ff 74 33 4c 89 eb 66 2e 0f 1f 84 00 00 00 00 00

axelsimon commented 4 years ago

Hello, i'm on Fedora 30 and i'm seeing something similar: if i call the gpaste history with ctrl+alt+H, it crashes my entire Gnome session. Hovewer, if i do the same and call the history not long after i've started the session, it works fine. But after a certain amount of time, it crashes the session.

I haven't found the cut-off point, as i've not tried to crash my session repeatedly (as you can imagine).

potassium-chloride commented 4 years ago

Hello, I'm on Mint Cinnamon 19.3 and I see similar problem: UI client cannot start or it's history is void. In journal I see segfault message:

[44833.388920] traps: gpaste-daemon[12885] general protection fault ip:7f027dd92f51 sp:7fffd85cdfe8 error:0 in libgobject-2.0.so.0.5600.4[7f027dd5d000+52000]
[44833.464813] gpaste-ui[6390]: segfault at 20 ip 00007f0e26ea1540 sp 00007ffd8bc20918 error 4 in libglib-2.0.so.0.5600.4[7f0e26e19000+114000]
[44833.464821] Code: 0c 89 43 20 48 89 d8 5b 5d 41 5c 41 5d 41 5e c3 66 2e 0f 1f 84 00 00 00 00 00 48 8b 07 c3 66 90 66 2e 0f 1f 84 00 00 00 00 00 <8b> 47 20 c1 e8 02 83 e0 01 c3 66 0f 1f 44 00 00 48 85 ff 0f 84 9f
[44839.850383] gpaste-daemon[12918]: segfault at 700000008 ip 00007fe3631144b4 sp 00007ffc1e0c9ee0 error 4 in libgtk-3.so.0.2200.30[7fe362e54000+6f1000]
[44839.850390] Code: 24 28 31 c0 48 85 ff 0f 84 b1 01 00 00 49 89 f5 48 89 fb e8 2e 37 dc ff 4d 85 ed 0f 84 35 01 00 00 49 8b 55 00 48 85 d2 74 05 <48> 39 02 74 13 48 89 c6 4c 89 ef e8 5c 86 dc ff 85 c0 0f 84 14 01
[44840.064846] gpaste-ui[12914]: segfault at 20 ip 00007fc068ebb540 sp 00007ffc678df528 error 4 in libglib-2.0.so.0.5600.4[7fc068e33000+114000]
[44840.064853] Code: 0c 89 43 20 48 89 d8 5b 5d 41 5c 41 5d 41 5e c3 66 2e 0f 1f 84 00 00 00 00 00 48 8b 07 c3 66 90 66 2e 0f 1f 84 00 00 00 00 00 <8b> 47 20 c1 e8 02 83 e0 01 c3 66 0f 1f 44 00 00 48 85 ff 0f 84 9f
[44844.476619] traps: gpaste-daemon[12934] general protection fault ip:7f3778442f51 sp:7ffe2cfbeaf8 error:0 in libgobject-2.0.so.0.5600.4[7f377840d000+52000]
[44861.541789] gpaste-daemon[12979]: segfault at 700000008 ip 00007f0590ae64b4 sp 00007fff9c180c80 error 4 in libgtk-3.so.0.2200.30[7f0590826000+6f1000]
[44861.541796] Code: 24 28 31 c0 48 85 ff 0f 84 b1 01 00 00 49 89 f5 48 89 fb e8 2e 37 dc ff 4d 85 ed 0f 84 35 01 00 00 49 8b 55 00 48 85 d2 74 05 <48> 39 02 74 13 48 89 c6 4c 89 ef e8 5c 86 dc ff 85 c0 0f 84 14 01
[44861.728967] gpaste-ui[12975]: segfault at 20 ip 00007f6e1aad0540 sp 00007ffc4e2ed138 error 4 in libglib-2.0.so.0.5600.4[7f6e1aa48000+114000]
[44861.728975] Code: 0c 89 43 20 48 89 d8 5b 5d 41 5c 41 5d 41 5e c3 66 2e 0f 1f 84 00 00 00 00 00 48 8b 07 c3 66 90 66 2e 0f 1f 84 00 00 00 00 00 <8b> 47 20 c1 e8 02 83 e0 01 c3 66 0f 1f 44 00 00 48 85 ff 0f 84 9f

Daemon status:

● org.gnome.GPaste.service - GPaste daemon
   Loaded: loaded (/usr/lib/systemd/user/org.gnome.GPaste.service; static; vendor preset: enabled)
   Active: failed (Result: core-dump) since Thu 2020-07-09 02:17:57 MSK; 38s ago
  Process: 12996 ExecStart=/usr/lib/x86_64-linux-gnu/gpaste/gpaste-daemon (code=dumped, signal=SEGV)
 Main PID: 12996 (code=dumped, signal=SEGV)

июл 09 02:17:54 ConstVivo systemd[1147]: Starting GPaste daemon...
июл 09 02:17:57 ConstVivo systemd[1147]: Started GPaste daemon.
июл 09 02:17:57 ConstVivo systemd[1147]: org.gnome.GPaste.service: Main process exited, code=dumped, status=11/SEGV
июл 09 02:17:57 ConstVivo systemd[1147]: org.gnome.GPaste.service: Failed with result 'core-dump'.
июл 09 02:17:57 ConstVivo systemd-coredump[13010]: Process 12996 (gpaste-daemon) of user 1000 dumped core.

                                                      Stack trace of thread 12996:
                                                      #0  0x00007fc765a574b4 gtk_selection_data_set_pixbuf (libgtk-3.so.0)
                                                      #1  0x00007fc764ebe10d g_closure_invoke (libgobject-2.0.so.0)
                                                      #2  0x00007fc764ed105e n/a (libgobject-2.0.so.0)
                                                      #3  0x00007fc764ed9715 g_signal_emit_valist (libgobject-2.0.so.0)
                                                      #4  0x00007fc764eda608 g_signal_emit_by_name (libgobject-2.0.so.0)
                                                      #5  0x00007fc765a5685b n/a (libgtk-3.so.0)
                                                      #6  0x00007fc765a56ad5 gtk_selection_convert (libgtk-3.so.0)
                                                      #7  0x00007fc7660b6e29 n/a (libgpaste.so.10)
                                                      #8  0x00007fc765b388e9 n/a (libgtk-3.so.0)
                                                      #9  0x00007fc764ebe10d g_closure_invoke (libgobject-2.0.so.0)
                                                      #10 0x00007fc764ed105e n/a (libgobject-2.0.so.0)
                                                      #11 0x00007fc764ed9715 g_signal_emit_valist (libgobject-2.0.so.0)
                                                      #12 0x00007fc764eda608 g_signal_emit_by_name (libgobject-2.0.so.0)
                                                      #13 0x00007fc765a54d63 n/a (libgtk-3.so.0)
                                                      #14 0x00007fc765a56af3 gtk_selection_convert (libgtk-3.so.0)
                                                      #15 0x00007fc764ebe10d g_closure_invoke (libgobject-2.0.so.0)
                                                      #16 0x00007fc764ed105e n/a (libgobject-2.0.so.0)
                                                      #17 0x00007fc764ed9715 g_signal_emit_valist (libgobject-2.0.so.0)
                                                      #18 0x00007fc764eda12f g_signal_emit (libgobject-2.0.so.0)
                                                      #19 0x00007fc764ebe10d g_closure_invoke (libgobject-2.0.so.0)
                                                      #20 0x00007fc764ed105e n/a (libgobject-2.0.so.0)
                                                      #21 0x00007fc764ed9715 g_signal_emit_valist (libgobject-2.0.so.0)
                                                      #22 0x00007fc764eda12f g_signal_emit (libgobject-2.0.so.0)
                                                      #23 0x00007fc7659c729d gtk_main_do_event (libgtk-3.so.0)
                                                      #24 0x00007fc7654d8765 n/a (libgdk-3.so.0)
                                                      #25 0x00007fc765508f92 n/a (libgdk-3.so.0)
                                                      #26 0x00007fc764be3417 g_main_context_dispatch (libglib-2.0.so.0)
                                                      #27 0x00007fc764be3650 n/a (libglib-2.0.so.0)
                                                      #28 0x00007fc764be36dc g_main_context_iteration (libglib-2.0.so.0)
                                                      #29 0x00007fc7651a4efd g_application_run (libgio-2.0.so.0)
                                                      #30 0x000056255caa7664 n/a (gpaste-daemon)
                                                      #31 0x00007fc7645a8b97 __libc_start_main (libc.so.6)
                                                      #32 0x000056255caa774a n/a (gpaste-daemon)

                                                      Stack trace of thread 13007:
                                                      #0  0x00007fc7646a2959 syscall (libc.so.6)
                                                      #1  0x00007fc764c2987a g_cond_wait_until (libglib-2.0.so.0)
                                                      #2  0x00007fc764bb6571 n/a (libglib-2.0.so.0)
                                                      #3  0x00007fc764c0bb14 n/a (libglib-2.0.so.0)
                                                      #4  0x00007fc764c0b175 n/a (libglib-2.0.so.0)
                                                      #5  0x00007fc76497f6db start_thread (libpthread.so.0)
                                                      #6  0x00007fc7646a8a3f __clone (libc.so.6)

                                                      Stack trace of thread 12998:
                                                      #0  0x00007fc76469bcf9 __GI___poll (libc.so.6)
                                                      #1  0x00007fc764be35c9 n/a (libglib-2.0.so.0)
                                                      #2  0x00007fc764be36dc g_main_context_iteration (libglib-2.0.so.0)
                                                      #3  0x00007fc764be3721 n/a (libglib-2.0.so.0)
                                                      #4  0x00007fc764c0b175 n/a (libglib-2.0.so.0)
                                                      #5  0x00007fc76497f6db start_thread (libpthread.so.0)
                                                      #6  0x00007fc7646a8a3f __clone (libc.so.6)

                                                      Stack trace of thread 12999:
                                                      #0  0x00007fc76469bcf9 __GI___poll (libc.so.6)
                                                      #1  0x00007fc764be35c9 n/a (libglib-2.0.so.0)
                                                      #2  0x00007fc764be3962 g_main_loop_run (libglib-2.0.so.0)
                                                      #3  0x00007fc7651d1276 n/a (libgio-2.0.so.0)
                                                      #4  0x00007fc764c0b175 n/a (libglib-2.0.so.0)
                                                      #5  0x00007fc76497f6db start_thread (libpthread.so.0)
                                                      #6  0x00007fc7646a8a3f __clone (libc.so.6)

                                                      Stack trace of thread 13000:
                                                      #0  0x00007fc76469bcf9 __GI___poll (libc.so.6)
                                                      #1  0x00007fc764be35c9 n/a (libglib-2.0.so.0)
                                                      #2  0x00007fc764be36dc g_main_context_iteration (libglib-2.0.so.0)
                                                      #3  0x00007fc75ab3436d n/a (libdconfsettings.so)
                                                      #4  0x00007fc764c0b175 n/a (libglib-2.0.so.0)
                                                      #5  0x00007fc76497f6db start_thread (libpthread.so.0)
                                                      #6  0x00007fc7646a8a3f __clone (libc.so.6)

                                                      Stack trace of thread 13008:
                                                      #0  0x00007fc7646a2959 syscall (libc.so.6)
                                                      #1  0x00007fc764c2987a g_cond_wait_until (libglib-2.0.so.0)
                                                      #2  0x00007fc764bb6571 n/a (libglib-2.0.so.0)
                                                      #3  0x00007fc764c0bb14 n/a (libglib-2.0.so.0)
                                                      #4  0x00007fc764c0b175 n/a (libglib-2.0.so.0)
                                                      #5  0x00007fc76497f6db start_thread (libpthread.so.0)
                                                      #6  0x00007fc7646a8a3f __clone (libc.so.6)
DamienCassou commented 4 years ago

I've stopped using gpaste for these reasons. I'm now happily using clipmenu.

MintYale commented 4 years ago

try these:

sudo dnf remove gpaste*

sudo dnf install gpaste*

sudo dnf install gnome-shell-extension*

reboot
Keruspe commented 3 years ago

Are you still experiencing this? Could you try with images support disabled?