synapse segfaults on 12.04

Bug #965564 reported by Roland (Rolandixor) Taylor
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Synapse
Fix Released
Undecided
Unassigned
synapse (Ubuntu)
Fix Released
Undecided
Julien Lavergne
Precise
Fix Released
Undecided
Unassigned

Bug Description

SRU explanation :
[Impact] This bug cause a crash on start, when some weird desktop files are installed.

[Development Fix] Patch from upstream, already uploaded on quantal, modified to apply cleanly.

[Stable Fix] debdiff will be attached to the bug report.

[Test Case] Unable to provide a test case, the exact combination of the desktop files which trigger the bug is unknown. However, people affected by the bug may confirm that the patch fix the problem.

[Regression Potential] I can't see any regression, since the patch just add an exception to avoid the segfault.

packages available for testing : https://launchpad.net/~gilir/+archive/updates

Original bug report :
I'm not sure what is causing this, but here's what output I could collect:

[18:24:57.215163 Info] Starting up...
Gtk-Message: Failed to load module "rgba"
[18:24:57.365732 Info] [UILauncher] Binding activation to <Control>space
[18:24:57.365804 GtkHotkey-Debug] Listener Type: GtkHotkeyX11Listener
[18:24:57.413240 Info] [GuiViewDefault] Screen is composited.
[18:24:57.413512 Info] [GuiViewDefault] Using ibus input method.
[18:24:57.640634 Warning] [DesktopFileInfo] Not Application-type desktop entry
[18:24:57.676518 Warning] [DesktopFileInfo] Not Application-type desktop entry
[18:24:57.734811 Warning] [DesktopFileInfo] Key file does not have key 'Type'
[18:24:57.738896 Warning] [DesktopFileInfo] Key file does not have key 'Type'
[18:24:57.762538 Warning] desktop-file-service.vala:95: Pantheon is not understood
[18:24:57.768000 Warning] [DesktopFileInfo] Not Application-type desktop entry
[18:24:57.914608 Warning] [DesktopFileInfo] Key file contains key 'Terminal' which has a value that cannot be interpreted.
[18:24:57.955590 Warning] [DesktopFileInfo] Key file contains key 'Hidden' which has a value that cannot be interpreted.
[18:24:58.110656 GLib-Critical] g_regex_replace_eval: assertion `string != NULL' failed
[18:24:58.110704 Critical] string_strip: assertion `self != NULL' failed
Segmentation fault (core dumped)

Revision history for this message
Peng (pengwg) wrote :

I have the same error message in Oneiric once I updated to the 0.2.10 version using the synapse-core ppa.

Revision history for this message
Michal Hruby (mhr3) wrote :

Could you please install synapse-dbg package, run `gdb -batch -ex run -ex bt synapse` in terminal and paste its output here?

Changed in synapse-project:
status: New → Incomplete
Revision history for this message
Magnus Vilhelm Persson (magnusp-snm) wrote :

+1 one on Oneric, after update.

$ gdb -batch -ex run -ex bt synapse
[Thread debugging using libthread_db enabled]
[09:31:03.982883 Info] Starting up...
[New Thread 0xb6926b70 (LWP 3563)]
[New Thread 0xb5fffb70 (LWP 3564)]
[New Thread 0xb578fb70 (LWP 3565)]
[09:31:04.221358 Info] [UILauncher] Binding activation to <Control>space
[09:31:04.221446 GtkHotkey-Debug] Listener Type: GtkHotkeyX11Listener
[09:31:04.261306 Info] [GuiViewVirgilio] Screen is composited.
[09:31:04.261531 Info] [GuiViewVirgilio] Using ibus input method.
[09:31:04.460942 Warning] [DesktopFileInfo] Key file does not have key 'Type'
[09:31:04.463971 Warning] [DesktopFileInfo] Key file contains key 'Terminal' which has value that cannot be interpreted.
[09:31:04.553249 Warning] [DesktopFileInfo] Key file contains key 'Terminal' which has value that cannot be interpreted.
[09:31:04.556797 GLib-Critical] g_regex_replace_eval: assertion `string != NULL' failed
[09:31:04.556822 Critical] string_strip: assertion `self != NULL' failed

Program received signal SIGSEGV, Segmentation fault.
0xb766a99a in g_str_hash () from /lib/i386-linux-gnu/libglib-2.0.so.0
#0 0xb766a99a in g_str_hash () from /lib/i386-linux-gnu/libglib-2.0.so.0
#1 0xb7f956c7 in ?? () from /usr/lib/libgee.so.2
#2 0xb7f959d3 in ?? () from /usr/lib/libgee.so.2
#3 0xb7f88237 in gee_abstract_map_get () from /usr/lib/libgee.so.2
#4 0xb7f9d24b in gee_map_get () from /usr/lib/libgee.so.2
#5 0x0809d72f in synapse_desktop_file_service_create_indices (self=0x824c998) at desktop-file-service.c:2802
#6 synapse_desktop_file_service_load_all_desktop_files_co (_data_=<optimized out>) at desktop-file-service.c:2288
#7 0xb77e6aef in g_simple_async_result_complete () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#8 0x08099d35 in synapse_desktop_file_service_load_mime_parents_from_file_co (_data_=0x823f4f0) at desktop-file-service.c:3110
#9 0xb77e6aef in g_simple_async_result_complete () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#10 0xb77b21a5 in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#11 0xb77b2423 in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#12 0xb77a8fab in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#13 0xb77e6aef in g_simple_async_result_complete () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#14 0xb77a9387 in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#15 0xb77d5651 in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#16 0xb77e6aef in g_simple_async_result_complete () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#17 0xb77e6b73 in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#18 0xb7645110 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#19 0xb764925f in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#20 0xb7649990 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#21 0xb7649f9b in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0
#22 0xb7c04fcf in gtk_main () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#23 0x08057be8 in synapse_ui_launcher_main (argv=0xbfffe8a4, argv_length1=1) at synapse-main.c:1035
#24 0x080565c0 in main (argc=1, argv=0xbfffe8a4) at synapse-main.c:1069

Revision history for this message
Dept.Técnico (Extreme Micro S.L.) (tecnicos-extreme-micro) wrote :
Download full text (3.4 KiB)

+1 on oneiric
$ gdb -batch -ex run -ex bt synapse

[Depuración de hilo usando libthread_db enabled]
[18:20:29.965057 Info] Starting up...
/home/lab1/.gtkrc-2.0:1: No se ha podido encontrar el archivo «include»: «.gtkrc-2.0-gnome-color-chooser»
[Nuevo Thread 0x7fffec656700 (LWP 3976)]
[Nuevo Thread 0x7fffebe55700 (LWP 3977)]
[Nuevo Thread 0x7fffeb229700 (LWP 3978)]
[18:20:30.180711 Info] [UILauncher] Binding activation to <Super>space
[18:20:30.180783 GtkHotkey-Debug] Listener Type: GtkHotkeyX11Listener
[18:20:30.219448 Info] [GuiViewDefault] Screen is composited.
[18:20:30.219751 Info] [GuiViewDefault] Using ibus input method.
[18:20:30.464466 Warning] [DesktopFileInfo] El archivo de claves no tiene la clave «Type»
[18:20:30.492630 Warning] [DesktopFileInfo] El archivo de claves contiene la clave «Terminal» que tiene un valor que no puede interpretarse.
[18:20:30.645127 Warning] [DesktopFileInfo] Unable to create AppInfo
[18:20:30.663973 Warning] [DesktopFileInfo] Unable to create AppInfo
[18:20:30.689658 Warning] desktop-file-service.vala:448: El archivo de claves no empieza por un grupo
[18:20:30.690849 Warning] [DesktopFileInfo] Unable to create AppInfo
[18:20:30.692565 GLib-Critical] g_regex_replace_eval: assertion `string != NULL' failed
[18:20:30.692596 Critical] string_strip: assertion `self != NULL' failed

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff52c5b30 in g_str_hash () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#0 0x00007ffff52c5b30 in g_str_hash () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007ffff79981ff in ?? () from /usr/lib/libgee.so.2
#2 0x00007ffff7998539 in ?? () from /usr/lib/libgee.so.2
#3 0x0000000000453e0e in synapse_desktop_file_service_create_indices (self=0x8fe730) at desktop-file-service.c:2802
#4 synapse_desktop_file_service_load_all_desktop_files_co (_data_=0x76a860) at desktop-file-service.c:2288
#5 0x00007ffff5a2dc17 in g_simple_async_result_complete () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#6 0x000000000045086d in synapse_desktop_file_service_load_mime_parents_from_file_co (_data_=0x772000) at desktop-file-service.c:3110
#7 0x00007ffff5a2dc17 in g_simple_async_result_complete () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#8 0x00007ffff59fc82a in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#9 0x00007ffff59fca42 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#10 0x00007ffff59f4341 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#11 0x00007ffff5a2dc17 in g_simple_async_result_complete () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#12 0x00007ffff59f468d in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#13 0x00007ffff5a1db89 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#14 0x00007ffff5a2dc17 in g_simple_async_result_complete () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#15 0x00007ffff5a2dca8 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#16 0x00007ffff52a5a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007ffff52a6258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff52a6792 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x...

Read more...

Revision history for this message
Michal Hruby (mhr3) wrote :

Should be fixed in ppa:synapse-core/testing

Changed in synapse-project:
status: Incomplete → Fix Committed
Revision history for this message
Sebastián García Rojas (sebagr) wrote :

It's been almost a month since the fix was committed, but I see no activity here. This bug is preventing me from using Synapse on Ubuntu 11.10. I'm afraid I'll have to go back to Gnome-do until this fix is released :(

Julien Lavergne (gilir)
Changed in synapse (Ubuntu):
status: New → In Progress
assignee: nobody → Julien Lavergne (gilir)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package synapse - 0.2.10-2ubuntu1

---------------
synapse (0.2.10-2ubuntu1) quantal; urgency=low

  * Merge from Debian unstable (LP: #965564).
  * Ubuntu remaining changes:
  * debian/control:
   - Build-depends on libappindicator-dev.

synapse (0.2.10-2) unstable; urgency=low

  * debian/patches:
   - 91_check_null_exec.patch: From upstream, don't crash on empty Exec field
     (Closes: #668972)

synapse (0.2.10-1) unstable; urgency=low

  * New upstream release.
  * debian/patches:
   - 90_check_xdg_current_desktop.patch: From upstream, detect XFCE system
     applications (Closes: #659316)
  * debian/control:
   - Update build-depends on vala 0.14 (Closes: #663322)
   - Update to Standards-Version 3.9.3 (no change needed).
  * debian/watch:
   - Update launchpad link.
  * debian/copyright:
   - Update to copyright-format 1.0.
 -- Julien Lavergne <email address hidden> Fri, 25 May 2012 23:16:49 +0200

Changed in synapse (Ubuntu):
status: In Progress → Fix Released
Julien Lavergne (gilir)
description: updated
Julien Lavergne (gilir)
description: updated
Revision history for this message
Julien Lavergne (gilir) wrote :
Julien Lavergne (gilir)
description: updated
Revision history for this message
Clint Byrum (clint-fewbar) wrote : Please test proposed package

Hello Roland, or anyone else affected,

Accepted synapse into precise-proposed. The package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in synapse (Ubuntu Precise):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Steve Langasek (vorlon) wrote :

A package that includes this fix has now been awaiting verification in precise-proposed for over a month. If you're able to reproduce this bug, please test the package in precise-proposed and let us know whether it fixes the problem for you, so that we can publish the fix for all users.

Revision history for this message
Stéphane Graber (stgraber) wrote :

Quickly tested here, looks good, no obvious regression.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package synapse - 0.2.8.2-1ubuntu1.1

---------------
synapse (0.2.8.2-1ubuntu1.1) precise-proposed; urgency=low

  * debian/patches:
   - 91_check_null_exec.patch: From upstream, don't crash on empty Exec field
     (LP: #965564)
 -- Julien Lavergne <email address hidden> Mon, 28 May 2012 17:10:15 +0200

Changed in synapse (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
gabriel smith (gabriel-smith01) wrote :

Still experiencing this issue in Synapse 0.2.10

Revision history for this message
gabriel smith (gabriel-smith01) wrote :

The above comment (#13) was using Synapse (0.2.10) from ppa core. I downgraded to the distro release 0.2.8 and am no longer having this issue

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

Other bug subscribers

Remote bug watches

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