After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 678807 - empathy-chat crashed with SIGSEGV in _tp_base_client_handle_channels()
empathy-chat crashed with SIGSEGV in _tp_base_client_handle_channels()
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Chat
3.5.x
Other Linux
: Normal critical
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2012-06-25 17:53 UTC by Bilal Shahid
Modified: 2012-06-27 15:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
stacktrace (7.19 KB, text/plain)
2012-06-25 17:53 UTC, Bilal Shahid
Details

Description Bilal Shahid 2012-06-25 17:53:42 UTC
Created attachment 217230 [details]
stacktrace

Crashed when opening chat window

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: empathy 3.5.1-0ubuntu3
ProcVersionSignature: Ubuntu 3.5.0-1.1-generic 3.5.0-rc3
Uname: Linux 3.5.0-1-generic x86_64
ApportVersion: 2.2.5-0ubuntu1
Architecture: amd64
Date: Mon Jun 25 14:16:14 2012
ExecutablePath: /usr/lib/empathy/empathy-chat
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110705.1)
ProcCmdline: /usr/lib/empathy/empathy-chat
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANGUAGE=nl:en_AU:en
 LANG=nl_BE.UTF-8
SegvAnalysis:
 Segfault happened at: 0x7f36a4bae0d8:	mov    0x8(%rax),%r8
 PC (0x7f36a4bae0d8) ok
 source "0x8(%rax)" (0x00000008) not located in a known VMA region (needed readable region)!
 destination "%r8" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: empathy
StacktraceTop:
 ?? () from /usr/lib/x86_64-linux-gnu/libtelepathy-glib.so.0
 ffi_call_unix64 () from /usr/lib/x86_64-linux-gnu/libffi.so.6
 ffi_call () from /usr/lib/x86_64-linux-gnu/libffi.so.6
 g_cclosure_marshal_generic () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
 ?? () from /usr/lib/x86_64-linux-gnu/libdbus-glib-1.so.2
Title: empathy-chat crashed with SIGSEGV in ffi_call_unix64()
UpgradeStatus: Upgraded to quantal on 2012-06-19 (5 days ago)
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare
XsessionErrors:
 (gnome-shell-calendar-server:2299): GLib-GIO-ERROR **: Settings schema 'org.gnome.evolution.calendar' is not installed
 (remmina:20717): Gtk-WARNING **: drawing failure for widget `GtkDrawingArea': invalid matrix (not invertible)
Comment 1 André Klapper 2012-06-25 20:00:29 UTC
Comment on attachment 217230 [details]
stacktrace

[Please attach text files as text files. Thanks!]
Comment 2 Guillaume Desmottes 2012-06-26 09:13:23 UTC
Is this reproducible? Which version of telepathy-glib has been used to produce this trace?
Comment 3 Xavier Claessens 2012-06-26 12:50:53 UTC
I can confirm this bug, it happens to me on ubuntu precise (empathy 3.4.2.1) but with telepathy-glib from master (~0.19.1). Since it does not seems to happen with proper ubuntu precise, I guess this is a regression in tp-glib 0.19.x.

  • #0 _tp_base_client_handle_channels
    at base-client.c line 2338
  • #1 ffi_call_unix64
    from /usr/lib/x86_64-linux-gnu/libffi.so.6
  • #2 ffi_call
    from /usr/lib/x86_64-linux-gnu/libffi.so.6
  • #3 g_cclosure_marshal_generic
    at /build/buildd/glib2.0-2.32.3/./gobject/gclosure.c line 1454
  • #4 invoke_object_method
    at dbus-gobject.c line 1889
  • #5 object_registration_message
    at dbus-gobject.c line 2151
  • #6 ??
    from /lib/x86_64-linux-gnu/libdbus-1.so.3
  • #7 dbus_connection_dispatch
    from /lib/x86_64-linux-gnu/libdbus-1.so.3
  • #8 message_queue_dispatch
    at dbus-gmain.c line 90
  • #9 g_main_dispatch
  • #10 g_main_context_dispatch
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c line 3075
  • #11 g_main_context_iterate
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c line 3146
  • #12 g_main_context_iterate
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c line 3083
  • #13 g_main_context_iteration
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c line 3207
  • #14 g_application_run
    at /build/buildd/glib2.0-2.32.3/./gio/gapplication.c line 1507
  • #15 main


The line is:
DEBUG ("Failed to create TpChannel: %s", error->message);

So I assume ensure_channel() returns a NULL channel and a NULL error. That must not happen.
Comment 4 Xavier Claessens 2012-06-26 12:53:34 UTC
Reported against tp-glib: https://bugs.freedesktop.org/show_bug.cgi?id=51444
Comment 5 Guillaume Desmottes 2012-06-27 09:25:57 UTC
That's indeed a race in tp-glib but I cooked a simple workaround in Empathy to fix the crash in 3.4.
Comment 6 Guillaume Desmottes 2012-06-27 09:42:34 UTC
Fixed in master and 3.4. I'll do a 3.4 release soon.
Comment 7 Bilal Shahid 2012-06-27 15:04:04 UTC
thanks