FS#37282 - [synapse] seg fault

Attached to Project: Community Packages
Opened by simon Claessens (gagalago) - Thursday, 10 October 2013, 21:17 GMT
Last edited by Balló György (City-busz) - Tuesday, 10 December 2013, 04:35 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When I launch synapse, I have a segmentation fault.

I have try to recompile the package but I have this error : error: `Timeout' is an ambiguous reference between `GLib.Timeout' and `Gtk.Timeout'


Additional info:
* package version of currently installed packages
synapse : 0.2.10-5
gtk3 : 3.10.0-2
glib2 : 2.38.0-1
glibc : 2.18-5


* See attachment for log of these two problems
This task depends upon

Closed by  Balló György (City-busz)
Tuesday, 10 December 2013, 04:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  glib2 2.38.2-1
Comment by James (JRMoore) - Monday, 14 October 2013, 22:32 GMT
I don't know about the segmentation fault, works fine here.

But if you want to build it yourself you the attached patch and PKGBUILD should allow you to.
Comment by Balló György (City-busz) - Tuesday, 15 October 2013, 01:06 GMT
I confirm the segfault. It happens after some seconds on every launch. I attached an incomplete backtrace.
Comment by Felix Yan (felixonmars) - Tuesday, 15 October 2013, 01:37 GMT
@City-busz
Did the patch attached by JRMoore works for you? I didn't get the segfault myself, either.
Comment by simon Claessens (gagalago) - Tuesday, 15 October 2013, 06:18 GMT
with the new pkgbuild, I can now compile synapse but I still have a segfault.
Comment by James (JRMoore) - Wednesday, 16 October 2013, 19:53 GMT
I've just installed another machine with Arch using stock packages, no segmentation faults there either (in my system I had several important packages recompiled).

What desktop environment are you using? Here both machines have Xfce. I attached a list of my currently installed packages and versions.
Comment by simon Claessens (gagalago) - Wednesday, 16 October 2013, 20:58 GMT
I use gnome. What kind of packages can give this kind of problem?
Comment by Alexander De Sousa (Aphanic) - Saturday, 19 October 2013, 17:19 GMT
Hi, the offending package seems to be gnome-weather. I was able to replicate the segmentation fault here in a virtual environment having your packages installed, all but the ones from outside official repos anyway. Works fine in a clean Gnome but stopped working after installing some extras (gnome-extra), so I pinned it down to that package.

After bisecting Synapse's sources and I think the problem may be within GIO itself in the way it parses .desktop files (either that or the desktop file of gnome-weather is malformed, but it doesn't look wrong to me). I wrote a small test program in C that leads to the same error, so I think I'll fill in a bug report in their bug tracker to notify the devs.

In the meantime you can either uninstall gnome-weather which should let you use Synapse as usual, or apply the patch I attach (plus the one from James or it won't compile) to exclude its desktop file from being accessed by Synapse.

EDIT: Upstream bug report: https://bugzilla.gnome.org/show_bug.cgi?id=710521
Comment by Alexander De Sousa (Aphanic) - Tuesday, 22 October 2013, 16:41 GMT
The bug report is already resolved and its fix was committed to the 2.38 branch of GLib a couple of hours ago, so it should be fixed in its next point release.

So another resolution to this bug report would be to apply [1] to the glib2 package and recompile it, or ask for it to be applied in the official package while the next release of GLib is not out.

[1]: https://bug709326.bugzilla-attachments.gnome.org/attachment.cgi?id=256390
Comment by Balló György (City-busz) - Tuesday, 10 December 2013, 04:35 GMT
The linked patch has been applied in glib2 version 2.38.2, which is in the [core] repository, so I'm closing this bug now.