FS#46895 - [grip] segfaults after upgrading glib2

Attached to Project: Arch Linux
Opened by David Baylis (castroUK) - Wednesday, 28 October 2015, 09:08 GMT
Last edited by Jan de Groot (JGC) - Saturday, 21 October 2017, 21:33 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
Grip segfaults after upgrading glib2-2.44.1-1-x86_64 to glib2-2.46.0-2-x86_64
or glib2-2.46.1-1-x86_64


Additional info
grip Version 3.3.1-10


Steps to reproduce:
run grip with glib2-2.46*
Downgrading to glib2-2.44.1-1-x86_64 fixes the problem.
This task depends upon

Closed by  Jan de Groot (JGC)
Saturday, 21 October 2017, 21:33 GMT
Reason for closing:  Won't fix
Additional comments about closing:  grip is no longer in repository
Comment by Sergio (zeno979) - Wednesday, 28 October 2015, 10:54 GMT
I can confirm this issue, gdb output:

Starting program: /usr/bin/grip
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe4a19700 (LWP 18608)]
[New Thread 0x7fffdffff700 (LWP 18609)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6ddae2d in g_type_check_instance ()
from /usr/lib/libgobject-2.0.so.0
Comment by Sergio (zeno979) - Wednesday, 28 October 2015, 11:33 GMT
Adding grip version (3.3.1) to configfile (~/.grip) seems to fix the issue. This workaround is working for me
   grip (1.5 KiB)
Comment by David Baylis (castroUK) - Wednesday, 28 October 2015, 11:59 GMT
it doesn't work for me.
Comment by Sergio (zeno979) - Wednesday, 28 October 2015, 12:16 GMT
Is seems that first time is executed grip does not write out config file, then for some reason the segfault happens when the tray icon is created. The attached patch worked for me
Comment by David Baylis (castroUK) - Wednesday, 28 October 2015, 12:50 GMT
I have applied the patch but it still segfaults.
Did you upgrade to glib2-2.46.1-1-x86_64 before trying this?
Comment by Sergio (zeno979) - Wednesday, 28 October 2015, 13:23 GMT
Sure, try to delete ~/.grip
Comment by David Baylis (castroUK) - Wednesday, 28 October 2015, 13:35 GMT
I did.
Comment by David Baylis (castroUK) - Thursday, 29 October 2015, 10:21 GMT
Unfortunately downgrading to glib2-2.44.1-1-x86_64 breaks libreoffice.
Comment by james morris (jwm-art) - Monday, 22 February 2016, 23:22 GMT
Just installed grip and it segfaulted. Seems to be a lack of ~/.grip* causing the issue. Sergio's patch fixes the problem for me. X86_64, intel.
Comment by Andrew Munkres (amunkres) - Friday, 26 February 2016, 11:59 GMT
One patch that fixed a segfault at startup time for me was the user-submitted "fix a bunch of warnings from GCC 4.4" patch from upstream's patch tracker:
https://sourceforge.net/p/grip/patches/149/

Specifically, tray.c failed to include the "common.h" header, causing the BuildMenuItemXpm to be declared implicitly with the wrong return type, which in turn caused a bunch of "cast to pointer from integer of different size" problems, like this:

tray.c:183:45: warning: implicit declaration of function ‘BuildMenuItemXpm’ [-Wimplicit-function-declaration]
uinfo->tray_menu_play = (GtkWidget*)BuildMenuItemXpm(img, _("Play"));
^
tray.c:183:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
uinfo->tray_menu_play = (GtkWidget*)BuildMenuItemXpm(img, _("Play"));
^
Comment by David Baylis (castroUK) - Friday, 26 February 2016, 12:29 GMT
The grip-3.3.1_warnings.patch worked fine, thank you very much.
Comment by Christos Nouskas (nous) - Friday, 28 October 2016, 12:11 GMT
It also fixed segfaults on my side, thanks.

Loading...