[Bug 30182] New: Crash in gabble_server_tls_channel_constructed(), apparently NULL connection
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Sep 14 16:08:52 CEST 2010
https://bugs.freedesktop.org/show_bug.cgi?id=30182
Summary: Crash in gabble_server_tls_channel_constructed(),
apparently NULL connection
Product: Telepathy
Version: git master
Platform: Other
URL: http://git.collabora.co.uk/?p=user/wjt/telepathy-gabbl
e-wjt.git;a=commitdiff;h=refs/heads/tls-channel-crash-
after-disconnected
OS/Version: All
Status: NEW
Keywords: patch
Severity: normal
Priority: medium
Component: gabble
AssignedTo: telepathy-bugs at lists.freedesktop.org
ReportedBy: will.thompson at collabora.co.uk
QAContact: telepathy-bugs at lists.freedesktop.org
>From my commit that I think fixes this bug:
I received a report of a segfault with the following (trimmed) backtrace:
0 tp_base_channel_constructed () at base-channel.c:604
1 gabble_server_tls_channel_constructed (object=0x1619f8) at
server-tls-channel.c:181
[ g_object_new crap ]
5 gabble_server_tls_manager_verify_async ([...]) at
server-tls-manager.c:218
6 wocky_tls_handler_verify_async ([...]) at wocky-tls-handler.c:261
7 session_handshake_cb () at wocky-tls-connector.c:302
Line 604 of base-channel.c dereferences the channel's connection for the
first time. I infer that this is caused by the connection being invalid,
which from reading the code in Gabble was probably caused by the
TLSManager's connection being NULL, due to being cleared in
connection_status_changed_cb() on DISCONNECTED to break a reference
cycle.
I don't have a test case for this patch (see bug 23302 and bug 29799) but I
have reproduced this crash, and verified that this patch fixes it.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the telepathy-bugs
mailing list