shutter crashes every about every second time

Bug #1529645 reported by Vladimir Chebotarev
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Shutter
Fix Released
Undecided
Unassigned

Bug Description

0.93.1 Rev.1278

I have up-to-date Arch Linux distributive and start shutter as "shutter -s".

segfault at 0 ip 00007f7a8167a560 sp 00007ffc1880c458 error 4 in libglib-2.0.so.0.4600.2[7f7a81600000+10c000]

systemd-coredump[7140]: Process 7118 (shutter) of user 1000 dumped core.

                                                  Stack trace of thread 7118:
                                                  #0 0x00007f7a8167a560 g_utf8_validate (libglib-2.0.so.0)
                                                  #1 0x00007f7a70ce9d60 n/a (libunique-1.0.so.0)
                                                  #2 0x00007f7a70ef64e7 XS_Gtk2__UniqueMessageData_get_text (Unique.so)
                                                  #3 0x00007f7a82e3d9ea Perl_pp_entersub (libperl.so)
                                                  #4 0x00007f7a82e36826 Perl_runops_standard (libperl.so)
                                                  #5 0x00007f7a82dbb8f6 Perl_call_sv (libperl.so)
                                                  #6 0x00007f7a70ef3809 perl_unique_app_marshall_message_received (Unique.so)
                                                  #7 0x00007f7a8191e015 g_closure_invoke (libgobject-2.0.so.0)
                                                  #8 0x00007f7a81930061 n/a (libgobject-2.0.so.0)
                                                  #9 0x00007f7a81938899 g_signal_emit_valist (libgobject-2.0.so.0)
                                                  #10 0x00007f7a8193912f g_signal_emit (libgobject-2.0.so.0)
                                                  #11 0x00007f7a70ce8e55 unique_app_emit_message_received (libunique-1.0.so.0)
                                                  #12 0x00007f7a70cebf8e n/a (libunique-1.0.so.0)
                                                  #13 0x00007f7a79528b0c n/a (libgio-2.0.so.0)
                                                  #14 0x00007f7a81649c7a g_main_context_dispatch (libglib-2.0.so.0)
                                                  #15 0x00007f7a8164a020 n/a (libglib-2.0.so.0)
                                                  #16 0x00007f7a8164a342 g_main_loop_run (libglib-2.0.so.0)
                                                  #17 0x00007f7a7a20c787 gtk_main (libgtk-x11-2.0.so.0)
                                                  #18 0x00007f7a7a7c7ad5 XS_Gtk2_main (Gtk2.so)
                                                  #19 0x00007f7a82e3d9ea Perl_pp_entersub (libperl.so)
                                                  #20 0x00007f7a82e36826 Perl_runops_standard (libperl.so)
                                                  #21 0x00007f7a82dc2e05 perl_run (libperl.so)
                                                  #22 0x0000000000400e39 main (perl)
                                                  #23 0x00007f7a829e4610 __libc_start_main (libc.so.6)
                                                  #24 0x0000000000400e79 _start (perl)

                                                  Stack trace of thread 7120:
                                                  #0 0x00007f7a82aa418d poll (libc.so.6)
                                                  #1 0x00007f7a81649fbc n/a (libglib-2.0.so.0)
                                                  #2 0x00007f7a8164a342 g_main_loop_run (libglib-2.0.so.0)
                                                  #3 0x00007f7a79538236 n/a (libgio-2.0.so.0)
                                                  #4 0x00007f7a81670715 n/a (libglib-2.0.so.0)
                                                  #5 0x00007f7a827ae4a4 start_thread (libpthread.so.0)
                                                  #6 0x00007f7a82aad13d __clone (libc.so.6)

                                                  Stack trace of thread 7122:
                                                  #0 0x00007f7a82aa8cf9 syscall (libc.so.6)
                                                  #1 0x00007f7a8168e87a g_cond_wait_until (libglib-2.0.so.0)
                                                  #2 0x00007f7a8161ea69 n/a (libglib-2.0.so.0)
                                                  #3 0x00007f7a8161f08b g_async_queue_timeout_pop (libglib-2.0.so.0)
                                                  #4 0x00007f7a8167116a n/a (libglib-2.0.so.0)
                                                  #5 0x00007f7a81670715 n/a (libglib-2.0.so.0)
                                                  #6 0x00007f7a827ae4a4 start_thread (libpthread.so.0)
                                                  #7 0x00007f7a82aad13d __clone (libc.so.6)

                                                  Stack trace of thread 7119:
                                                  #0 0x00007f7a82aa418d poll (libc.so.6)
                                                  #1 0x00007f7a81649fbc n/a (libglib-2.0.so.0)
                                                  #2 0x00007f7a8164a0cc g_main_context_iteration (libglib-2.0.so.0)
                                                  #3 0x00007f7a8164a109 n/a (libglib-2.0.so.0)
                                                  #4 0x00007f7a81670715 n/a (libglib-2.0.so.0)
                                                  #5 0x00007f7a827ae4a4 start_thread (libpthread.so.0)
                                                  #6 0x00007f7a82aad13d __clone (libc.so.6)

Revision history for this message
Vladimir Chebotarev (vladimir-chebotarev) wrote :

I solved my problem invoking it as "shutter -s -e", but crash still appears if a window or icon of shutter was invoked earlier.

Revision history for this message
Edgar Hipp (edi9999) wrote :

This bug is still present after more than 2 years...

I usually start commands from the terminal, but here this means that it needs to be run twice to get started.

Could you fix this ?

Revision history for this message
Michael Kogan (michael-kogan) wrote :

Do you refer to the crash of the second instance? If so, could you please give more details on your distro and its version of perl-gtk2-unique?

Revision history for this message
Edgar Hipp (edi9999) wrote :

Hello,

my distribution is fedora (Fedora release 27 (Twenty Seven))

I run with i3wm : i3 version 4.14.1 (2017-09-24)

I'm not sure how to know wich version of perl-gtk2-unique I am using,

If I run

rpm -qa | grep --color -E gtk

I get :

gtk-vnc2-0.7.1-3.fc27.x86_64
spice-gtk3-0.34-1.fc27.x86_64
gtk-xfce-engine-3.2.0-4.fc26.x86_64
webkitgtk4-2.18.6-1.fc27.x86_64
libreoffice-gtk2-5.4.6.2-3.fc27.x86_64
ibus-gtk3-1.5.17-6.fc27.x86_64
gtk-doc-1.27-1.fc27.x86_64
colord-gtk-0.1.26-6.fc27.x86_64
clutter-gtk-1.8.4-1.fc27.x86_64
ibus-gtk2-1.5.17-6.fc27.x86_64
gtk-update-icon-cache-3.22.26-2.fc27.x86_64
libreoffice-gtk3-5.4.6.2-3.fc27.x86_64
gtksourceview3-3.24.6-1.fc27.x86_64
libnm-gtk-1.8.4-1.fc27.x86_64
webkitgtk4-jsc-2.18.6-1.fc27.x86_64
compat-wxBase3-gtk2-3.0.2-32.fc27.x86_64
gtk3-devel-3.22.26-2.fc27.x86_64
PackageKit-gtk3-module-1.1.8-1.fc27.x86_64
lightdm-gtk-2.0.4-1.fc27.x86_64
usermode-gtk-1.112-1.fc27.x86_64
gtk-murrine-engine-0.98.2-13.fc27.x86_64
gtk2-2.24.32-1.fc27.x86_64
gtkspell3-3.0.9-4.fc27.x86_64
xdg-desktop-portal-gtk-0.9-1.fc27.x86_64
gtkmm24-2.24.5-4.fc27.x86_64
gtkmm30-3.22.2-1.fc27.x86_64
bluebird-gtk2-theme-1.2-6.fc27.noarch
pinentry-gtk-0.9.7-4.fc27.x86_64
pygtk2-libglade-2.24.0-18.fc27.x86_64
caribou-gtk3-module-0.4.21-5.fc27.x86_64
caribou-gtk2-module-0.4.21-5.fc27.x86_64
greybird-gtk2-theme-3.22.6-1.fc27.noarch
gtkimageview-1.6.4-16.fc27.x86_64
libcanberra-gtk3-0.30-15.fc27.x86_64
pygtk2-doc-2.24.0-18.fc27.noarch
avahi-ui-gtk3-0.7-3.fc27.x86_64
albatross-gtk3-theme-1.7.4-3.fc27.noarch
libdbusmenu-gtk2-16.04.0-4.fc27.x86_64
libchamplain-gtk-0.12.16-1.fc27.x86_64
pygtk2-2.24.0-18.fc27.x86_64
adwaita-gtk2-theme-3.22.3-5.fc27.x86_64
gtk2-engines-2.20.2-14.fc27.x86_64
libreport-gtk-2.9.3-2.fc27.x86_64
libcanberra-gtk2-0.30-15.fc27.x86_64
webkitgtk4-plugin-process-gtk2-2.18.6-1.fc27.x86_64
bluebird-gtk3-theme-1.2-6.fc27.noarch
pygtk2-codegen-2.24.0-18.fc27.x86_64
gtk2-devel-2.24.32-1.fc27.x86_64
gtkspell-2.0.16-14.fc27.x86_64
greybird-gtk3-theme-3.22.6-1.fc27.noarch
compat-wxGTK3-gtk2-3.0.2-32.fc27.x86_64
xdg-user-dirs-gtk-0.10-12.fc27.x86_64
albatross-gtk2-theme-1.7.4-3.fc27.noarch
pygtk2-devel-2.24.0-18.fc27.x86_64
gtk-unico-engine-1.0.3-0.10.20140109bzr152.fc27.x86_64
gtk3-3.22.26-2.fc27.x86_64
python3-matplotlib-gtk3-2.0.0-3.fc27.x86_64
gstreamer1-plugins-bad-free-gtk-1.12.4-1.fc27.x86_64
libpeas-gtk-1.22.0-1.fc27.x86_64

And I found the file /usr/lib64/perl5/vendor_perl/Gtk2/Unique.pm which is attached

Revision history for this message
Edgar Hipp (edi9999) wrote :

I think this is my shutter version :

Name : perl-Gtk2-Unique
Version : 0.05
Release : 21.fc27
Arch : x86_64
Size : 68 k
Source : perl-Gtk2-Unique-0.05-21.fc27.src.rpm

Revision history for this message
Michael Kogan (michael-kogan) wrote :

You didn't specify, if the crash only happens when calling Shutter while another Shutter instance is already running. If so, it is a bug in perl-Gtk2-Unique, please report it to the Fedora maintainers. The patch fixing it is available here: https://anonscm.debian.org/cgit/pkg-perl/packages/libgtk2-unique-perl.git/tree/debian/patches/fix_segfault_2nd_instance

Revision history for this message
Edgar Hipp (edi9999) wrote :

Thanks !!

I have opened a bug to the fedora maintainers : https://bugzilla.redhat.com/show_bug.cgi?id=1560182

This issue can be closed.

Revision history for this message
Michael Kogan (michael-kogan) wrote :

To make it more precise: The version in the Fedora repos is not outdated, it is the latest version available upstream. However, in this latest version the bug leading to crashes is present and a patch proposed upstream to fix it has not been applied for some years already. Therefore, Debian applies the patch to their package and I am trying right now to get it into Arch Linux' package as well.

Just in case Fedora maintainers tell that they have the most recent version already. ;)

Revision history for this message
Michael Kogan (michael-kogan) wrote :

@Vladimir Chebotarev: Is your issue fixed with a patched perl-Gtk2-Unique as well?

Changed in shutter:
status: New → Incomplete
Revision history for this message
Michael Kogan (michael-kogan) wrote :

It looks like the perl-gtk2-unique bug has been patched in Debian, Arch, will be fixed in the upcoming Ubuntu 18.04 and a report for Fedora 27 also exists. Therefore I think that the time has come to solemnly close it. Please open a new bug in case you are running a patched perl-gtk2-unique and still experience second instance crashes in Shutter.

Changed in shutter:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.