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
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
|
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
Saturday, 21 October 2017, 21:33 GMT
Reason for closing: Won't fix
Additional comments about closing: grip is no longer in repository
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
Did you upgrade to glib2-2.46.1-1-x86_64 before trying this?
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"));
^