[Bug 22629] New: Gabble crashes when I close Rhythmbox with my tp tube plugin

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 6 13:11:12 CEST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=22629

           Summary: Gabble crashes when I close Rhythmbox with my tp tube
                    plugin
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: telepathy-gabble
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: alban.crequy at collabora.co.uk


Version: telepathy-gabble 0.7.30-1

Reproductible 50% of the time with my test case.

Test case: I close my application (a Rhythmbox plugin) while the tube is still
open. The unix socket between the the Rhythmbox plugin and telepathy-gabble is
close, and telepathy-gabble receives some data in the tube from the remote
contact. The same application is handling both side of the tube (initiator and
recipient).

ERROR:gibber-transport.c:226:gibber_transport_send: assertion failed:
(transport->state == GIBBER_TRANSPORT_CONNECTED)

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fc76aaa17b0 (LWP 13281)]
0x00007fc7683e3d05 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x00007fc7683e3d05 in raise () from /lib/libc.so.6
#1  0x00007fc7683e6dc1 in abort () from /lib/libc.so.6
#2  0x00007fc768b810d0 in IA__g_assertion_message (domain=0x7fc768bbe6be "", 
    file=0x496905 "gibber-transport.c", line=<value optimized out>,
func=0x496a90 "gibber_transport_send", 
    message=<value optimized out>) at
/tmp/buildd/glib2.0-2.20.4/glib/gtestutils.c:1301
#3  0x00007fc768b81652 in IA__g_assertion_message_expr (domain=0x0,
file=0x496905 "gibber-transport.c", 
    line=226, func=0x496a90 "gibber_transport_send", expr=<value optimized
out>)
    at /tmp/buildd/glib2.0-2.20.4/glib/gtestutils.c:1312
#4  0x000000000045103e in gibber_transport_send (transport=<value optimized
out>, data=<value optimized out>, 
    size=<value optimized out>, error=<value optimized out>) at
gibber-transport.c:226
#5  0x000000000044a911 in data_received_cb (bytestream=0x1d55810, sender=<value
optimized out>, 
    data=0x1cffe40, user_data=<value optimized out>) at tube-stream.c:1779
#6  0x00007fc768ff50ad in IA__g_closure_invoke (closure=0x1d652c0,
return_value=0x0, n_param_values=3, 
    param_values=0x1d4e140, invocation_hint=0x7fff91a67450)
    at /tmp/buildd/glib2.0-2.20.4/gobject/gclosure.c:767
#7  0x00007fc76900885b in signal_emit_unlocked_R (node=0x1d4ef00, detail=0,
instance=0x1d55810, 
    emission_return=0x0, instance_and_params=0x1d4e140) at
/tmp/buildd/glib2.0-2.20.4/gobject/gsignal.c:3247
#8  0x00007fc769009c02 in IA__g_signal_emit_valist (instance=0x1d55810,
signal_id=<value optimized out>, 
    detail=0, var_args=0x7fff91a67660) at
/tmp/buildd/glib2.0-2.20.4/gobject/gsignal.c:2980
#9  0x00007fc769009f3a in IA__g_signal_emit_by_name (instance=0x1d55810, 
    detailed_signal=0x4933e6 "data-received") at
/tmp/buildd/glib2.0-2.20.4/gobject/gsignal.c:3074
#10 0x00007fc768ff50ad in IA__g_closure_invoke (closure=0x1a22390,
return_value=0x0, n_param_values=3, 
    param_values=0x1d39370, invocation_hint=0x7fff91a678b0)
    at /tmp/buildd/glib2.0-2.20.4/gobject/gclosure.c:767
#11 0x00007fc76900885b in signal_emit_unlocked_R (node=0x1d4ef00, detail=0,
instance=0x1d1f3f0, 
    emission_return=0x0, instance_and_params=0x1d39370) at
/tmp/buildd/glib2.0-2.20.4/gobject/gsignal.c:3247
#12 0x00007fc769009c02 in IA__g_signal_emit_valist (instance=0x1d1f3f0,
signal_id=<value optimized out>, 
    detail=0, var_args=0x7fff91a67ac0) at
/tmp/buildd/glib2.0-2.20.4/gobject/gsignal.c:2980
#13 0x00007fc769009f3a in IA__g_signal_emit_by_name (instance=0x1d1f3f0, 
    detailed_signal=0x4933e6 "data-received") at
/tmp/buildd/glib2.0-2.20.4/gobject/gsignal.c:3074
#14 0x000000000045de7b in transport_handler (transport=<value optimized out>,
data=<value optimized out>, 
    user_data=<value optimized out>) at bytestream-socks5.c:1146
#15 0x0000000000451175 in gibber_transport_received_data (transport=0x33e1,
data=<value optimized out>, 
    length=6) at gibber-transport.c:163
#16 0x00000000004834ac in gibber_fd_transport_read (transport=0x1d13840,
channel=<value optimized out>, 
    error=<value optimized out>) at gibber-fd-transport.c:403
#17 0x00000000004838aa in _channel_io_in (source=<value optimized out>,
condition=<value optimized out>, 
    data=0x1d13840) at gibber-fd-transport.c:282
#18 0x00007fc768b5b7aa in IA__g_main_context_dispatch (context=0x16bfde0)
    at /tmp/buildd/glib2.0-2.20.4/glib/gmain.c:1824
#19 0x00007fc768b5edf8 in g_main_context_iterate (context=0x16bfde0, block=1,
dispatch=1, 
    self=<value optimized out>) at /tmp/buildd/glib2.0-2.20.4/glib/gmain.c:2455
#20 0x00007fc768b5f2cd in IA__g_main_loop_run (loop=0x16bfec0) at
/tmp/buildd/glib2.0-2.20.4/glib/gmain.c:2663
#21 0x00007fc769797f28 in tp_run_connection_manager () from
/usr/lib/libtelepathy-glib.so.0
#22 0x00007fc7683d05a6 in __libc_start_main () from /lib/libc.so.6
#23 0x0000000000412ff9 in _start () at ../sysdeps/x86_64/elf/start.S:113
(gdb) f 4
#4  0x000000000045103e in gibber_transport_send (transport=<value optimized
out>, data=<value optimized out>, 
    size=<value optimized out>, error=<value optimized out>) at
gibber-transport.c:226
226     gibber-transport.c: No such file or directory.
        in gibber-transport.c
(gdb) p transport->state
Cannot access memory at address 0x18
(gdb) p transport
$1 = <value optimized out>
(gdb) 


The last debug messages are:


(telepathy-gabble:13797): gabble-DEBUG: socks5_connect: Trying streamhost
192.168.73.192 on port 34353
(telepathy-gabble:13797): gabble-DEBUG: new_connection_cb: New connection...
(telepathy-gabble:13797): gabble-DEBUG: transport_connected_cb: transport is
connected. Sending auth request
(telepathy-gabble:13797): gabble-DEBUG: transport_handler: got 3 bytes from
sock5 transport
(telepathy-gabble:13797): gabble-DEBUG: socks5_handle_received_data: Received
auth request. Sending auth reply
(telepathy-gabble:13797): gabble-DEBUG: transport_handler: got 2 bytes from
sock5 transport
(telepathy-gabble:13797): gabble-DEBUG: socks5_handle_received_data: Received
auth reply. Sending CONNECT command
(telepathy-gabble:13797): gabble-DEBUG: transport_handler: got 47 bytes from
sock5 transport
(telepathy-gabble:13797): gabble-DEBUG: socks5_handle_received_data: Received
CONNECT cmd. Sending CONNECT reply
(telepathy-gabble:13797): gabble-DEBUG: socks5_handle_received_data: sock5
stream connected. Stop to listen for connections
(telepathy-gabble:13797): gabble-DEBUG: transport_handler: got 47 bytes from
sock5 transport
(telepathy-gabble:13797): gabble-DEBUG: target_got_connect_reply: Received
CONNECT reply. Socks5 stream connected. Bytestream is now open
(telepathy-gabble:13797): gabble-DEBUG: extra_bytestream_state_changed_cb:
Called.
(telepathy-gabble:13797): gabble-DEBUG: extra_bytestream_state_changed_cb:
extra bytestream open
(telepathy-gabble:13797): gabble-DEBUG: socks5_init_reply_cb: Target is
connected to us
(telepathy-gabble:13797): gabble-DEBUG: socks5_init_reply_cb: Socks5 stream
initiated using stream: bernard_test at localhost/Telepathy.f5dc1c10
(telepathy-gabble:13797): gabble-DEBUG: extra_bytestream_state_changed_cb:
Called.
(telepathy-gabble:13797): gabble-DEBUG: extra_bytestream_state_changed_cb:
extra bytestream open
(telepathy-gabble:13797): gabble-DEBUG: transport_handler: read 239 bytes from
socket
(telepathy-gabble:13797): gabble-DEBUG: gabble_bytestream_socks5_send: send 239
bytes through bytestream
(telepathy-gabble:13797): gabble-DEBUG: transport_handler: got 239 bytes from
sock5 transport
(telepathy-gabble:13797): gabble-DEBUG: data_received_cb: received 239 bytes
from bytestream
**
ERROR:gibber-transport.c:226:gibber_transport_send: assertion failed:
(transport->state == GIBBER_TRANSPORT_CONNECTED)

Program received signal SIGABRT, Aborted.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the telepathy-bugs mailing list