Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518174 - empathy and gnome-contacts crash immediately after startup with folks[zeitgeist]
Summary: empathy and gnome-contacts crash immediately after startup with folks[zeitgeist]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2014-07-26 14:08 UTC by Mehmet Giritli
Modified: 2015-03-03 23:51 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
0001-Fix-unit-tests.patch (0001-Fix-unit-tests.patch,1.96 KB, patch)
2014-11-02 10:49 UTC, Peter Volkov (RETIRED)
Details | Diff
0001-WhereClause-Fix-array-length-to-work-with-string.joi.patch (0001-WhereClause-Fix-array-length-to-work-with-string.joi.patch,962 bytes, patch)
2014-11-02 10:49 UTC, Peter Volkov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mehmet Giritli 2014-07-26 14:08:41 UTC
Running from terinal in both cases I see the same error message:

$ empathy
**
bluez:ERROR:bluez-persona-store.c:2645:_folks_backends_blue_z_persona_store_perform_obex_transfer_co: code should not be reached


Reproducible: Always




Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.3, glibc-2.17, 3.15.6-gentoo-mordor.giritli.eu x86_64)
=================================================================
System uname: Linux-3.15.6-gentoo-mordor.giritli.eu-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.2
KiB Mem:     8167124 total,    389760 free
KiB Swap:    3711008 total,   3710892 free
Timestamp of tree: Fri, 25 Jul 2014 06:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.4, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo Mehmet-s-Repo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 googleearth AdobeFlash-10 AdobeFlash-10.1 AdobeFlash-10.3 Oracle-BCLA-JavaSE google-talkplugin skype-4.0.0.7-copyright Google-TOS AdobeFlash-11.x MakeMKV-EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=amdfam10"
DISTDIR="/mnt/media/Documents/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="3dnow 3dnowext 64bit X a52 aac acl acpi alsa amd64 apng applet aspell bash-completion beagle berkdb bluetooth bluray branding brasero bzip2 cairo ccache cdda cddb cdr cdrom cdrtools cli colord cpufreq cracklib crypt css cups cxx dbus dconf deskbar device-mapper dga disk-partition dri dtmf dts dvd dvdnav dvdr dvi dvipdfm eds emboss encode exif extra faac faad fam fbcon fbcondecor ffmpeg firefox flac flickr g3dvl galago gcj gdbm gdu geoclue gif gnome gnome-keyring gnome-online-accounts gnutls gpm gps graphics grilo gstreamer gtk gtk3 h323 hddtemp html iconv imap inotify introspection jabber java java6 javascript jingle jpeg jpeg2k kms kpathsea laptop lcms libmpeg2 libnotify libsamplerate libsecret mad mmx mmxext mng modules mp3 mp4 mpeg multilib musicbrainz nautilus ncurses networkmanager nls nptl nsplugin offensive ogg opengl openmp pam pango pcre pdf png policykit ppds pstricks pulseaudio python qt3support qt4 readline rtmp samba science sdl sendto session smp sms socialweb speex spell sqlite sse sse2 sse4a ssl startup-notification svg systemd tcpd telepathy theora threads tiff totem tracker transcode truetype udev udisks unicode upnp upnp-av upower usb v4l v4l2 vaapi vdpau vim-syntax vorbis wav wavpack wext wifi wmf wps wxwidgets x264 xcb xml xv xvid zemberek zeroconf zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="tr en en_GB en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Pacho Ramos gentoo-dev 2014-07-26 19:05:32 UTC
You will need to provide a backtrace:
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces

And also "emerge -pv gnome-contacts empathy folks bluez" output
Comment 2 Mehmet Giritli 2014-07-27 09:09:55 UTC
[ebuild   R    ] net-wireless/bluez-5.21-r1:0/3  USE="cups obex readline systemd udev -debug (-selinux) {-test}" ABI_X86="(64) (-32) (-x32)" 0 kB
[ebuild   R    ] dev-libs/folks-0.9.7.1:0/25  USE="bluetooth eds socialweb telepathy tracker -debug {-test} -utils -zeitgeist" 0 kB
[ebuild   R    ] gnome-extra/gnome-contacts-3.12.0  USE="v4l" 0 kB
[ebuild   R    ] net-im/empathy-3.12.4  USE="geoloc gnome gnome-online-accounts map spell v4l -debug {-test}" 0 kB
Comment 3 Mehmet Giritli 2014-07-27 14:20:32 UTC
gdb empathy
GNU gdb (Gentoo 7.6.2 p1) 7.6.2
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/empathy...Reading symbols from /usr/lib64/debug/usr/bin/empathy.debug...done.
done.
(gdb) run
Starting program: /usr/bin/empathy 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffde554700 (LWP 14399)]
[New Thread 0x7fffdd72f700 (LWP 14402)]
[New Thread 0x7fffdcf2e700 (LWP 14403)]
[New Thread 0x7fffcadad700 (LWP 14408)]
[New Thread 0x7fffca5ac700 (LWP 14409)]
[New Thread 0x7fffc9dab700 (LWP 14410)]
[New Thread 0x7fffc95aa700 (LWP 14411)]
[New Thread 0x7fffbb7c8700 (LWP 14425)]
[New Thread 0x7fffbafc7700 (LWP 14426)]
[Thread 0x7fffc95aa700 (LWP 14411) exited]
[Thread 0x7fffcadad700 (LWP 14408) exited]
[New Thread 0x7fffcadad700 (LWP 14460)]
[New Thread 0x7fffc95aa700 (LWP 14461)]
[New Thread 0x7fffba7c6700 (LWP 14463)]
[New Thread 0x7fffb9fc5700 (LWP 14464)]
[New Thread 0x7fffb97c4700 (LWP 14465)]
[New Thread 0x7fffb8fc3700 (LWP 14466)]
[New Thread 0x7fff9ffff700 (LWP 14467)]
[New Thread 0x7fff9f7fe700 (LWP 14469)]
**
bluez:ERROR:bluez-persona-store.c:2645:_folks_backends_blue_z_persona_store_perform_obex_transfer_co: code should not be reached

Program received signal SIGABRT, Aborted.
0x00007ffff5012955 in raise () from /lib64/libc.so.6
Comment 4 Mehmet Giritli 2014-07-27 14:22:06 UTC
(gdb) bt
#0  0x00007ffff5012955 in raise () from /lib64/libc.so.6
#1  0x00007ffff5013dc7 in abort () from /lib64/libc.so.6
#2  0x00007ffff5615845 in g_assertion_message () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ffff5615eca in g_assertion_message_expr () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fffcc6cc96b in _folks_backends_blue_z_persona_store_perform_obex_transfer_co () from /usr/lib64/folks/42/backends/bluez/bluez.so
#5  0x00007ffff6091067 in g_simple_async_result_complete () from /usr/lib64/libgio-2.0.so.0
#6  0x00007ffff6091149 in complete_in_idle_cb () from /usr/lib64/libgio-2.0.so.0
#7  0x00007ffff55f2c2b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#8  0x00007ffff55f2f84 in g_main_context_iterate.isra.23 () from /usr/lib64/libglib-2.0.so.0
#9  0x00007ffff55f304c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#10 0x00007ffff60c44e4 in g_application_run () from /usr/lib64/libgio-2.0.so.0
#11 0x00000000004195f9 in main (argc=1, argv=0x7fffffffda68) at empathy.c:842
Comment 5 Pacho Ramos gentoo-dev 2014-07-27 17:01:00 UTC
Are you able to reproduce on a new created user account with a fresh home directory?
Comment 6 Mehmet Giritli 2014-07-28 09:47:48 UTC
(In reply to Pacho Ramos from comment #5)
> Are you able to reproduce on a new created user account with a fresh home
> directory?

PAcho, I havent yet tried that but I found out that if I turn off bluetooth of my phone, everything works ok. I think folks have this backend which retrieves the phone contacts and the problem is bluetooth infrastructure related?

Can you test this by pairing your phone to your computer and see if the bt backend of folks works?
Comment 7 Pacho Ramos gentoo-dev 2014-07-28 13:45:52 UTC
I am unsure, I guess bluez is failing for some reason in your case, but haven't found any similar backtrace un upstream. I would report to bugzilla.gnome.org (component: folks) providing tha backtrace as a comment there. Maybe they will know what is occurring :/
Comment 8 Hans de Graaff gentoo-dev Security 2014-07-30 07:23:18 UTC
I'm seeing this also:

$ empathy

(empathy:19219): GLib-CRITICAL **: g_variant_ref: assertion 'value->ref_count > 0' failed

(empathy:19219): GLib-CRITICAL **: g_variant_unref: assertion 'value->ref_count > 0' failed

(empathy:19219): GLib-CRITICAL **: g_variant_unref: assertion 'value->ref_count > 0' failed

(empathy:19219): GLib-GIO-CRITICAL **: Error while sending AddMatch() message: The connection is closed

(empathy:19219): GLib-GIO-CRITICAL **: Error while sending AddMatch() message: The connection is closed

(empathy:19219): GLib-GIO-CRITICAL **: Error while sending AddMatch() message: The connection is closed
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
Terminated


And in /var/log/messages:

Jul 30 09:16:53 localhost dbus[2424]: [system] Activating service name='org.freedesktop.GeoClue2' (using servicehelper)
Jul 30 09:16:53 localhost dbus[2424]: [system] Successfully activated service 'org.freedesktop.GeoClue2'
Jul 30 09:16:53 localhost dbus[2424]: [system] Activating service name='org.bluez' (using servicehelper)
Jul 30 09:16:53 localhost dbus[2424]: [system] Activated service 'org.bluez' failed: Launch helper exited with unknown return code 1
Jul 30 09:16:57 localhost dbus[2424]: [system] Activating service name='org.bluez' (using servicehelper)
Jul 30 09:16:57 localhost dbus[2424]: [system] Activated service 'org.bluez' failed: Launch helper exited with unknown return code 1
Jul 30 09:16:57 localhost kernel: [ 3300.255505] empathy-chat[19254]: segfault at 7fff595e3ff8 ip 00007f3b76eeae13 sp 00007fff595e4000 error 6 in libgio-2.0.so.0.4000.0[7f3b76e13000+16a000]
Comment 9 Mehmet Giritli 2014-07-30 08:57:20 UTC
Hans, do you have zeitgeist use flag for folks? If so try turning it off and recompile folks. If this fixes your problem, then it is a separate bug, which again I opened a while back. It is an upstream bug which is reported here:

https://bugzilla.gnome.org/show_bug.cgi?id=726248
Comment 10 Hans de Graaff gentoo-dev Security 2014-08-01 12:04:49 UTC
(In reply to Mehmet Giritli from comment #9)
> Hans, do you have zeitgeist use flag for folks? If so try turning it off and
> recompile folks. If this fixes your problem, then it is a separate bug,
> which again I opened a while back. It is an upstream bug which is reported
> here:
> 
> https://bugzilla.gnome.org/show_bug.cgi?id=726248

Thanks! Recompiling folks without zeitgeist fixed my crash.
Comment 11 Pacho Ramos gentoo-dev 2014-09-02 10:17:42 UTC
(In reply to Mehmet Giritli from comment #9)
> Hans, do you have zeitgeist use flag for folks? If so try turning it off and
> recompile folks. If this fixes your problem, then it is a separate bug,
> which again I opened a while back. It is an upstream bug which is reported
> here:
> 
> https://bugzilla.gnome.org/show_bug.cgi?id=726248

It should be reported to folks upstream I think:
https://bugzilla.gnome.org/enter_bug.cgi?product=folks

(I don't have permissions to reassign the already reported bug to proper component and maintainers :( )
Comment 12 Peter Volkov (RETIRED) gentoo-dev 2014-11-02 10:49:10 UTC
Similar bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752482
It mentions upstream patch, but for some reason upstream git is inaccessible at the moment, so I loosely stole fix from debian. Following two patches fix an issue for me. Please, apply or give me ok to commit :)
Comment 13 Peter Volkov (RETIRED) gentoo-dev 2014-11-02 10:49:38 UTC
Created attachment 388324 [details, diff]
0001-Fix-unit-tests.patch
Comment 14 Peter Volkov (RETIRED) gentoo-dev 2014-11-02 10:49:59 UTC
Created attachment 388326 [details, diff]
0001-WhereClause-Fix-array-length-to-work-with-string.joi.patch
Comment 15 Pacho Ramos gentoo-dev 2014-11-02 11:31:42 UTC
(In reply to Peter Volkov from comment #14)
> Created attachment 388326 [details, diff] [details, diff]
> 0001-WhereClause-Fix-array-length-to-work-with-string.joi.patch

I am a bit unsure about this check for 0.24... wouldn't be better to check for older versions instead? (assuming the way it's handled in 0.24 is the way that will be needed for newer versions too)
Comment 16 Pacho Ramos gentoo-dev 2014-11-02 11:32:31 UTC
(In reply to Pacho Ramos from comment #15)
> (In reply to Peter Volkov from comment #14)
> > Created attachment 388326 [details, diff] [details, diff] [details, diff]
> > 0001-WhereClause-Fix-array-length-to-work-with-string.joi.patch
> 
> I am a bit unsure about this check for 0.24... wouldn't be better to check
> for older versions instead? (assuming the way it's handled in 0.24 is the
> way that will be needed for newer versions too)

CCing zeitgeist maintainers to check them as they will know better than me for sure :)
Comment 17 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-11-03 23:42:46 UTC
Maybe related is totem crashing and being mostly unusable with USE=zeitgeist enabled as well. I will have a try at this patch asap.
Comment 18 Rodolphe Rocca 2014-12-28 17:01:08 UTC
zeitgeist-0.9.15 should fix the issue.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752482#12
Comment 19 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-12-31 00:22:51 UTC
I was looking up the source tarball and it seems that the launchpad project is dead, so it got partly moved to freedesktop infrastructure but there is no release tarball there. The only tar I could find, that is being used by everyone it seems, is the one generated by github on release tags :-/

I'll work on reporting the problem upstream and generating a proper tarball for us asap.
Comment 20 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-01-01 23:59:40 UTC
So this packages appears to have multiple autoconf/automake issues. Current ebuild tries to do and out-of-tree build but it does seem actually supported. I forked the github repository and will try to fix the situation there before bumping.
Comment 21 Justin Lecher (RETIRED) gentoo-dev 2015-01-05 10:28:39 UTC
(In reply to Gilles Dartiguelongue from comment #20)
> So this packages appears to have multiple autoconf/automake issues. Current
> ebuild tries to do and out-of-tree build but it does seem actually
> supported. I forked the github repository and will try to fix the situation
> there before bumping.

Are you taking care of it?
Comment 22 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-03-03 23:48:48 UTC
+*zeitgeist-0.9.15 (03 Mar 2015)
+
+  03 Mar 2015; Gilles Dartiguelongue <eva@gentoo.org> +zeitgeist-0.9.15.ebuild,
+  +files/zeitgeist-0.9.15-fix-array-length-string-join.patch,
+  +files/zeitgeist-0.9.15-python-detection.patch:
+  Version bump, fix bug #518174. Move vala_src_prepare call after potential
+  eautoreconf, fix configure to properly detect/use python, make unittest run
+  within a dbus session, do not install docs in multiple paths.
+

I haven't included fixes to make it compatible with python3 as I feel this needs review from upstream but things should be a lot cleaner now.
Comment 23 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-03-03 23:51:12 UTC
For some reason the patch for vala 0.24 makes the tests work for both vala 0.24 and 0.26. All tests are passing now so I guess we are good now.