Bug 18952

Summary: Crashes if you cancel an incoming file transfer
Product: Telepathy Reporter: Will Thompson <will>
Component: salutAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED WORKSFORME QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Will Thompson 2008-12-08 07:52:14 UTC
When I'm in the middle of receiving a file and hit Stop in Empathy, salut crashes:

** (telepathy-salut:3715): DEBUG: salut_xmpp_connection_manager_reset_connection_timer: reset refcount timer of the connection with cass-lpt@cass-lpt
** (telepathy-salut:3715): DEBUG: salut_ft_manager_new_channel: Incoming channel received from handle 4
** (telepathy-salut:3715): DEBUG: salut_contact_manager_get_contact: Getting contact for: cass-lpt@cass-lpt
** (telepathy-salut:3715): DEBUG: salut_ft_manager_new_channel: Object path of file channel is /org/freedesktop/Telepathy/Connection/salut/local_xmpp/wjt/FileTransferChannel/4/0
** (telepathy-salut:3715): DEBUG: salut_xmpp_connection_manager_take_connection: connection ref count raised 1. Remove its timer
** (telepathy-salut:3715): DEBUG: salut_file_transfer_channel_received_file_offer: Received file offer with id 'gibber-file-transfer-1'
** (telepathy-salut:3715): DEBUG: salut_file_transfer_channel_accept_file: local socket /tmp/tp-ft-1452221829
** (telepathy-salut:3715): DEBUG: accept_local_socket_connection: Client connected to local socket
** (telepathy-salut:3715): DEBUG: gibber_xmpp_writer_write_stanza: Writing xml: <iq type="error" from="wjt@queeg-2" to="cass-lpt@cass-lpt" id="gibber-file-transfer-1"><query xmlns="jabber:iq:oob"><url>http://172.22.64.172:58030/gibber-file-transfer-1/02-Where%20Is%20My%20Mind%20%5BXFM%20Live%20Version%5D.mp3</url></query><error code="406" type="modify"><not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>.
** (telepathy-salut:3715): DEBUG: _writeout: Writing out 349 bytes
** (telepathy-salut:3715): DEBUG: salut_file_transfer_channel_do_close: Emitting closed signal for /org/freedesktop/Telepathy/Connection/salut/local_xmpp/wjt/FileTransferChannel/4/0
** (telepathy-salut:3715): DEBUG: file_channel_closed_cb: Removing channel with handle 4
*** glibc detected *** /usr/lib/telepathy/telepathy-salut: corrupted double-linked list: 0x00000000010aff40 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fb5ea71a948]
/lib/libc.so.6[0x7fb5ea71d699]
/lib/libc.so.6(__libc_malloc+0x98)[0x7fb5ea71ea78]
/lib/libc.so.6(vasprintf+0x3e)[0x7fb5ea713e6e]
/usr/lib/libglib-2.0.so.0(g_vasprintf+0x20)[0x7fb5eaf447d0]
/usr/lib/libglib-2.0.so.0(g_string_append_vprintf+0x2e)[0x7fb5eaf3208e]
/usr/lib/libglib-2.0.so.0(g_string_append_printf+0x88)[0x7fb5eaf321a8]
/usr/lib/libglib-2.0.so.0(g_log_default_handler+0x336)[0x7fb5eaf19546]
/usr/lib/libglib-2.0.so.0(g_logv+0x1d1)[0x7fb5eaf19791]
/usr/lib/libglib-2.0.so.0(g_log+0x83)[0x7fb5eaf19af3]
/usr/lib/libgobject-2.0.so.0(g_type_check_instance_cast+0xbf)[0x7fb5eb5d12ff]
/usr/lib/telepathy/telepathy-salut[0x45643c]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x16d)[0x7fb5eb5b30fd]
/usr/lib/libgobject-2.0.so.0[0x7fb5eb5c6ced]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7b8)[0x7fb5eb5c81b8]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7fb5eb5c86b3]
/usr/lib/libsoup-2.2.so.8(soup_session_abort+0x78)[0x7fb5ebfc2918]
/usr/lib/libsoup-2.2.so.8[0x7fb5ebfc45a5]
/usr/lib/libgobject-2.0.so.0(g_object_unref+0xc2)[0x7fb5eb5b5072]
/usr/lib/libsoup-2.2.so.8[0x7fb5ebfb6da6]
/usr/lib/libgobject-2.0.so.0(g_object_unref+0x138)[0x7fb5eb5b50e8]
/usr/lib/libsoup-2.2.so.8(soup_message_io_cleanup+0x50)[0x7fb5ebfbdf60]
/usr/lib/libsoup-2.2.so.8[0x7fb5ebfbe131]
/usr/lib/libsoup-2.2.so.8[0x7fb5ebfbe570]
/usr/lib/libsoup-2.2.so.8[0x7fb5ebfbe864]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x16d)[0x7fb5eb5b30fd]
/usr/lib/libgobject-2.0.so.0[0x7fb5eb5c6ced]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7b8)[0x7fb5eb5c81b8]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7fb5eb5c86b3]
/usr/lib/libsoup-2.2.so.8[0x7fb5ebfc85f2]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x23b)[0x7fb5eaf0faab]
/usr/lib/libglib-2.0.so.0[0x7fb5eaf1326d]
/usr/lib/libglib-2.0.so.0(g_main_loop_run+0x1cd)[0x7fb5eaf1379d]
/usr/lib/libtelepathy-glib.so.0(tp_run_connection_manager+0x106)[0x7fb5eac9a596]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fb5ea6c51a6]
/usr/lib/telepathy/telepathy-salut[0x40d959]
======= Memory map: ========
00400000-0047e000 r-xp 00000000 fe:01 295014                             /usr/lib/telepathy/telepathy-salut
0067d000-00682000 rw-p 0007d000 fe:01 295014                             /usr/lib/telepathy/telepathy-salut
0108e000-010fb000 rw-p 0108e000 00:00 0                                  [heap]
7fb5e4000000-7fb5e4021000 rw-p 7fb5e4000000 00:00 0 
7fb5e4021000-7fb5e8000000 ---p 7fb5e4021000 00:00 0 
7fb5e8643000-7fb5e8659000 r-xp 00000000 fe:01 1439040                    /lib/libgcc_s.so.1
7fb5e8659000-7fb5e8859000 ---p 00016000 fe:01 1439040                    /lib/libgcc_s.so.1
7fb5e8859000-7fb5e885a000 rw-p 00016000 fe:01 1439040                    /lib/libgcc_s.so.1
7fb5e885a000-7fb5e8864000 r-xp 00000000 fe:01 1440473                    /lib/libnss_files-2.7.so
7fb5e8864000-7fb5e8a64000 ---p 0000a000 fe:01 1440473                    /lib/libnss_files-2.7.so
7fb5e8a64000-7fb5e8a66000 rw-p 0000a000 fe:01 1440473                    /lib/libnss_files-2.7.so
7fb5e8a66000-7fb5e8a70000 r-xp 00000000 fe:01 1440462                    /lib/libnss_nis-2.7.so
7fb5e8a70000-7fb5e8c6f000 ---p 0000a000 fe:01 1440462                    /lib/libnss_nis-2.7.so
7fb5e8c6f000-7fb5e8c71000 rw-p 00009000 fe:01 1440462                    /lib/libnss_nis-2.7.so
7fb5e8c71000-7fb5e8c78000 r-xp 00000000 fe:01 1440468                    /lib/libnss_compat-2.7.so
7fb5e8c78000-7fb5e8e77000 ---p 00007000 fe:01 1440468                    /lib/libnss_compat-2.7.so
7fb5e8e77000-7fb5e8e79000 rw-p 00006000 fe:01 1440468                    /lib/libnss_compat-2.7.so
7fb5e8e79000-7fb5e8e89000 r-xp 00000000 fe:01 1801712                    /usr/lib/libtasn1.so.3.0.16
7fb5e8e89000-7fb5e9088000 ---p 00010000 fe:01 1801712                    /usr/lib/libtasn1.so.3.0.16
7fb5e9088000-7fb5e9089000 rw-p 0000f000 fe:01 1801712                    /usr/lib/libtasn1.so.3.0.16
7fb5e9089000-7fb5e90b8000 r-xp 00000000 fe:01 1800761                    /usr/lib/libpcre.so.3.12.1
7fb5e90b8000-7fb5e92b7000 ---p 0002f000 fe:01 1800761                    /usr/lib/libpcre.so.3.12.1
7fb5e92b7000-7fb5e92b8000 rw-p 0002e000 fe:01 1800761                    /usr/lib/libpcre.so.3.12.1
7fb5e92b8000-7fb5e92cd000 r-xp 00000000 fe:01 1440466                    /lib/libnsl-2.7.so
7fb5e92cd000-7fb5e94cc000 ---p 00015000 fe:01 1440466                    /lib/libnsl-2.7.so
7fb5e94cc000-7fb5e94ce000 rw-p 00014000 fe:01 1440466                    /lib/libnsl-2.7.so
7fb5e94ce000-7fb5e94d0000 rw-p 7fb5e94ce000 00:00 0 
7fb5e94d0000-7fb5e9552000 r-xp 00000000 fe:01 1440475                    /lib/libm-2.7.so
7fb5e9552000-7fb5e9751000 ---p 00082000 fe:01 1440475                    /lib/libm-2.7.so
7fb5e9751000-7fb5e9753000 rw-p 00081000 fe:01 1440475                    /lib/libm-2.7.so
7fb5e9753000-7fb5e9769000 r-xp 00000000 fe:01 1800966                    /usr/lib/libz.so.1.2.3.3
7fb5e9769000-7fb5e9969000 ---p 00016000 fe:01 1800966                    /usr/lib/libz.so.1.2.3.3
7fb5e9969000-7fb5e996a000 rw-p 00016000 fe:01 1800966                    /usr/lib/libz.so.1.2.3.3
7fb5e996a000-7fb5e996c000 r-xp 00000000 fe:01 1440480                    /lib/libdl-2.7.so
7fb5e996c000-7fb5e9b6c000 ---p 00002000 fe:01 1440480                    /lib/libdl-2.7.so
7fb5e9b6c000-7fb5e9b6e000 rw-p 00002000 fe:01 1440480                    /lib/libdl-2.7.so
7fb5e9b6e000-7fb5e9bd2000 r-xp 00000000 fe:01 1801066                    /usr/lib/libgcrypt.so.11.4.4
7fb5e9bd2000-7fb5e9dd2000 ---p 00064000 fe:01 1801066                    /usr/lib/libgcrypt.so.11.4.4
7fb5e9dd2000-7fb5e9dd5000 rw-p 00064000 fe:01 1801066                    /usr/lib/libgcrypt.so.11.4.4
7fb5e9dd5000-7fb5e9e7c000 r-xp 00000000 fe:01 1801082                    /usr/lib/libgnutls.so.26.4.6
7fb5e9e7c000-7fb5ea07c000 ---p 000a7000 fe:01 1801082                    /usr/lib/libgnutls.so.26.4.6
7fb5ea07c000-7fb5ea087000 rw-p 000a7000 fe:01 1801082                    /usr/lib/libgnutls.so.26.4.6
7fb5ea087000-7fb5ea08a000 r-xp 00000000 fe:01 1803249                    /usr/lib/libavahi-glib.so.1.0.1
7fb5ea08a
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fb5ec6e76e0 (LWP 3715)]
0x00007fb5ea6d8ed5 in raise () from /lib/libc.so.6
(gdb) bt full
#0  0x00007fb5ea6d8ed5 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x00007fb5ea6da3f3 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x00007fb5ea7153a8 in ?? () from /lib/libc.so.6
No symbol table info available.
#3  0x00007fb5ea71a948 in ?? () from /lib/libc.so.6
No symbol table info available.
#4  0x00007fb5ea71d699 in ?? () from /lib/libc.so.6
No symbol table info available.
#5  0x00007fb5ea71ea78 in malloc () from /lib/libc.so.6
No symbol table info available.
#6  0x00007fb5ea713e6e in vasprintf () from /lib/libc.so.6
No symbol table info available.
#7  0x00007fb5eaf447d0 in g_vasprintf () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#8  0x00007fb5eaf3208e in g_string_append_vprintf ()
   from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#9  0x00007fb5eaf321a8 in g_string_append_printf ()
   from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#10 0x00007fb5eaf19546 in g_log_default_handler ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#11 0x00007fb5eaf19791 in g_logv () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#12 0x00007fb5eaf19af3 in g_log () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#13 0x00007fb5eb5d12ff in g_type_check_instance_cast ()
   from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#14 0x000000000045643c in ?? ()
No symbol table info available.
#15 0x00007fb5eb5b30fd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#16 0x00007fb5eb5c6ced in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#17 0x00007fb5eb5c81b8 in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#18 0x00007fb5eb5c86b3 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#19 0x00007fb5ebfc2918 in soup_session_abort () from /usr/lib/libsoup-2.2.so.8
No symbol table info available.
#20 0x00007fb5ebfc45a5 in ?? () from /usr/lib/libsoup-2.2.so.8
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#21 0x00007fb5eb5b5072 in g_object_unref () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#22 0x00007fb5ebfb6da6 in ?? () from /usr/lib/libsoup-2.2.so.8
No symbol table info available.
#23 0x00007fb5eb5b50e8 in g_object_unref () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#24 0x00007fb5ebfbdf60 in soup_message_io_cleanup ()
   from /usr/lib/libsoup-2.2.so.8
No symbol table info available.
#25 0x00007fb5ebfbe131 in ?? () from /usr/lib/libsoup-2.2.so.8
No symbol table info available.
#26 0x00007fb5ebfbe570 in ?? () from /usr/lib/libsoup-2.2.so.8
No symbol table info available.
#27 0x00007fb5ebfbe864 in ?? () from /usr/lib/libsoup-2.2.so.8
No symbol table info available.
#28 0x00007fb5eb5b30fd in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#29 0x00007fb5eb5c6ced in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#30 0x00007fb5eb5c81b8 in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#31 0x00007fb5eb5c86b3 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#32 0x00007fb5ebfc85f2 in ?? () from /usr/lib/libsoup-2.2.so.8
No symbol table info available.
#33 0x00007fb5eaf0faab in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#34 0x00007fb5eaf1326d in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#35 0x00007fb5eaf1379d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#36 0x00007fb5eac9a596 in tp_run_connection_manager (
    prog_name=0x45b324 "telepathy-salut", version=0x45b350 "0.3.6", 
    construct_cm=0x40daa0 <tp_svc_channel_type_tubes_implement_offer_stream_tube@plt+384>, argc=<value optimized out>, argv=<value optimized out>) at run.c:261
	fatal_mask = <value optimized out>
	connection = <value optimized out>
#37 0x00007fb5ea6c51a6 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#38 0x000000000040d959 in ?? ()
No symbol table info available.
#39 0x00007ffff4810cf8 in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#40 0x000000000000001c in ?? ()
No symbol table info available.
#41 0x0000000000000001 in ?? ()
No symbol table info available.
#42 0x00007ffff48127e9 in ?? ()
No symbol table info available.
#43 0x0000000000000000 in ?? ()
Comment 1 Will Thompson 2008-12-10 03:48:42 UTC
Seems to work in salut master, which has been ported to newer, tastier libsoup with extra meaty chunks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.