Modify

#951 closed defect (obsolete)

bitlbee-plugin-skype segfaults

Reported by: openback@… Owned by: Miklos Vajna
Priority: normal Milestone:
Component: Skype Version: 3.0.5
Keywords: Skype Cc:
IRC client+version: Client-independent Operating System: Linux
OS version/distro: Debian 6.0

Description

I've installed Bitlbee and the Skype plugin via Bitlbee's repository. I can connect to Skype with it once, but if I close the IRC client and reopen it, it is unable to reconnect. The main problem, though, is that after a couple of tries, bitlbee segfaults.

Program received signal SIGSEGV, Segmentation fault.
skype_connected (data=0x80f4838, returncode=0, source=0x0, cond=B_EV_IO_READ)
    at /tmp/buildd/bitlbee-3.0.5+20120320+devel+900/protocols/skype/skype.c:1193
1193    /tmp/buildd/bitlbee-3.0.5+20120320+devel+900/protocols/skype/skype.c: No such file or directory.
        in /tmp/buildd/bitlbee-3.0.5+20120320+devel+900/protocols/skype/skype.c
(gdb) thread apply all backtrace

Thread 1 (Thread 0xb7beb6c0 (LWP 1608)):
#0  skype_connected (data=0x80f4838, returncode=0, source=0x0, cond=B_EV_IO_READ)
    at /tmp/buildd/bitlbee-3.0.5+20120320+devel+900/protocols/skype/skype.c:1193
#1  0x0807285b in ssl_handshake (data=0x80f46c0, source=16, cond=B_EV_IO_READ)
    at /tmp/buildd/bitlbee-3.0.5+20120320+devel+900/lib/ssl_gnutls.c:297
#2  0x0806bfe4 in b_event_passthrough (fd=16, event=2, data=0x80f51f0)
    at /tmp/buildd/bitlbee-3.0.5+20120320+devel+900/lib/events_libevent.c:147
#3  0xb7eeaee4 in event_base_loop () from /usr/lib/libevent-1.4.so.2
#4  0xb7eeb095 in event_base_dispatch () from /usr/lib/libevent-1.4.so.2
#5  0x0806c335 in b_main_run () at /tmp/buildd/bitlbee-3.0.5+20120320+devel+900/lib/events_libevent.c:86
#6  0x08069d05 in main (argc=2, argv=0xbffff834) at /tmp/buildd/bitlbee-3.0.5+20120320+devel+900/unix.c:18



(gdb) backtrace full
#0  skype_connected (data=0x80f4838, returncode=0, source=0x0, cond=B_EV_IO_READ)
    at /tmp/buildd/bitlbee-3.0.5+20120320+devel+900/protocols/skype/skype.c:1193
No locals.
#1  0x0807285b in ssl_handshake (data=0x80f46c0, source=16, cond=B_EV_IO_READ)
    at /tmp/buildd/bitlbee-3.0.5+20120320+devel+900/lib/ssl_gnutls.c:297
        st = <value optimized out>
        stver = 16
#2  0x0806bfe4 in b_event_passthrough (fd=16, event=2, data=0x80f51f0)
    at /tmp/buildd/bitlbee-3.0.5+20120320+devel+900/lib/events_libevent.c:147
        cond = <value optimized out>
        st = <value optimized out>
#3  0xb7eeaee4 in event_base_loop () from /usr/lib/libevent-1.4.so.2
No symbol table info available.
#4  0xb7eeb095 in event_base_dispatch () from /usr/lib/libevent-1.4.so.2
No symbol table info available.
#5  0x0806c335 in b_main_run () at /tmp/buildd/bitlbee-3.0.5+20120320+devel+900/lib/events_libevent.c:86
No locals.
#6  0x08069d05 in main (argc=2, argv=0xbffff834) at /tmp/buildd/bitlbee-3.0.5+20120320+devel+900/unix.c:183
        i = <value optimized out>
        old_cwd = 0x0
        sig = {__sigaction_handler = {sa_handler = 0x806a300 <sighandler>, sa_sigaction = 0x806a300 <sighandler>}, sa_mask = {
            __val = {0 <repeats 32 times>}}, sa_flags = -2147483648, sa_restorer = 0}
        old = {__sigaction_handler = {sa_handler = 0, sa_sigaction = 0}, sa_mask = {__val = {0, 0, 134550338, 3084571172,
              134530452, 1, 3087003636, 3221222768, 3087006384, 3221222724, 3086927090, 3221222708, 134530452, 3221222696,
              3087006292, 0, 3082902000, 1, 0, 1, 3087005944, 3084546036, 3221222612, 3221222632, 3221222648, 3221221552,
              1024, 1677721601, 0, 3221222768, 3221222696, 3221222708}}, sa_flags = 0, sa_restorer = 0xbf9981dc}

Attachments (1)

bug951.patch (351 bytes) - added by Miklos Vajna at 2012-05-01T11:59:27Z.

Download all attachments as: .zip

Change History (5)

comment:1 Changed at 2012-04-30T21:01:11Z by wilmer

Component: BitlBeeSkype
Owner: set to Miklos Vajna

comment:2 Changed at 2012-05-01T11:58:56Z by Miklos Vajna

Could you please test if the attached patch helps?

Thanks,

Miklos

Changed at 2012-05-01T11:59:27Z by Miklos Vajna

Attachment: bug951.patch added

comment:3 Changed at 2012-05-03T17:53:17Z by openback@…

I'm not sure what version you're working with, because I had to apply the patch manually. I did it for the latest bzr version and still a crash:

Program received signal SIGSEGV, Segmentation fault.
0xb7fdc7c9 in skype_read_callback (data=0x8103428, fd=13, cond=B_EV_IO_READ) at protocols/skype/skype.c:1122
1122            if (!sd || sd->fd == -1)
(gdb) bt full
#0  0xb7fdc7c9 in skype_read_callback (data=0x8103428, fd=13, cond=B_EV_IO_READ) at protocols/skype/skype.c:1122
        ic = 0x8103428
        sd = 0x6f6f6265
        buf = "\200\362\021\b\364\337۷\240\363۷|\360\006\b\020\000\000\000,\247η\270\223\025\b\240\363۷\320\337\022\b\030\360\377\277\315\342\005\b\200\312\023\b\200\362\021\b\026vη\214\255η\000\315\037\b\\\260\f\b\320\337\022\b\b\000\000\000\005\000\000\000\250\257\f\bH\360\377\277z\341\005\b\000\241\022\b\200\312\023\b\200\362\021\b(B\374\267\030\242\024\b\000\000\000\000\026vη\252\376\363\267\240\363۷\364\337۷\240\363۷|\360\006\bh\360\377\277\275\254η\200\362\021\bu\246\a\b(B\374\267\000\225\025\b\026vηV\374\363\267\000\225\025\b\030\242\024\b1\000\000\000\200\362\021\b\240\363۷\364\337۷\240\363۷|\360\006\b\250\360\377\277\275\254η\026vη\000\211\025\b(B\374\267\070\061\023\b1\000\000\000V\374\363\267\240\363۷\364\337۷\240\363۷|\360\006\b\330\360\377\277\275\254η\370\360\377\277\224\200\a\b(B\374\267\240/\023\b)\000\000\000V\374\363\267\240\363۷\364\337۷\240\363۷|\360\006\b\b\361\377\277\275\254η(\361\377\277\224\200\a\b(B\374\267\250\222\025\b(\361\377\277V\374󷨒\025\b\000\000\000\000\001\000\000\000\000\000\000\000\270I\b\b\030\242\024\bX\361\377\277\224\200\a\b\250\222\025\bH\210\025\b\000Z\022\b\000Z\022"...
        st = 8
        i = -1073744920
        lines = 0x0
        lineptr = 0xbffff418
        line = 0xb7f3793a "\201\303\356\310\b"
        parsers = {{k = 0xb7fde527 "USERS ", v = 0xb7fd9e97 <skype_parse_users>}, {k = 0xb7fdeb27 "USER ",
            v = 0xb7fd9f10 <skype_parse_user>}, {k = 0xb7fdeb2d "CHATMESSAGE ", v = 0xb7fdae49 <skype_parse_chatmessage>}, {
            k = 0xb7fdeb3a "CALL ", v = 0xb7fdb3b5 <skype_parse_call>}, {k = 0xb7fdeb40 "FILETRANSFER ",
            v = 0xb7fdb8c1 <skype_parse_filetransfer>}, {k = 0xb7fdeb4e "CHAT ", v = 0xb7fdbf39 <skype_parse_chat>}, {
            k = 0xb7fdeb54 "GROUP ", v = 0xb7fdbbdb <skype_parse_group>}, {k = 0xb7fdeb5b "PASSWORD ",
            v = 0xb7fdc46b <skype_parse_password>}, {k = 0xb7fdeb65 "PROFILE PSTN_BALANCE ",
            v = 0xb7fdc4dc <skype_parse_profile>}, {k = 0xb7fdeb7b "PING", v = 0xb7fdc513 <skype_parse_ping>}, {
            k = 0xb7fdeb80 "CHATS ", v = 0xb7fdc540 <skype_parse_chats>}, {k = 0xb7fdeb87 "GROUPS ",
            v = 0xb7fdc5d7 <skype_parse_groups>}, {k = 0xb7fdeb8f "ALTER GROUP ", v = 0xb7fdc66e <skype_parse_alter_group>}}
#1  0x0806f0e3 in gaim_io_invoke (source=0x810a760, condition=G_IO_IN, data=0x80e7888) at events_glib.c:88
        closure = 0x80e7888
        gaim_cond = B_EV_IO_READ
        st = -1208204760
#2  0xb7f7b6db in ?? () from /lib/libglib-2.0.so.0
No symbol table info available.
#3  0xb7f37305 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
No symbol table info available.
#4  0xb7f3afe8 in ?? () from /lib/libglib-2.0.so.0
No symbol table info available.
#5  0xb7f3b527 in g_main_loop_run () from /lib/libglib-2.0.so.0
No symbol table info available.
#6  0x0806f065 in b_main_run () at events_glib.c:64
No locals.
#7  0x0806cdcb in main (argc=4, argv=0xbffff7c4) at unix.c:183
        i = 0
        old_cwd = 0x0
        sig = {__sigaction_handler = {sa_handler = 0x806d1a3 <sighandler>, sa_sigaction = 0x806d1a3 <sighandler>}, sa_mask = {
            __val = {0 <repeats 32 times>}}, sa_flags = -2147483648, sa_restorer = 0}
        old = {__sigaction_handler = {sa_handler = 0, sa_sigaction = 0}, sa_mask = {__val = {0, 0, 134550577, 3084669476,
              134530540, 1, 3087003636, 3221222800, 3087006384, 3221222756, 3086927090, 3221222740, 134530540, 3221222728,
              3087006292, 0, 3082941504, 1, 0, 1, 3087005944, 3084640244, 3221222644, 3221222664, 3221222680, 3221221584,
              1024, 1677721601, 0, 3221222800, 3221222728, 3221222740}}, sa_flags = 0, sa_restorer = 0xbf8d0f4c}

comment:4 Changed at 2018-04-29T23:50:02Z by dx

Resolution: obsolete
Status: newclosed

Closing all skype tickets (plugin removed in a949b43ed657154d4ff8492bbdb16202a1a9f22d)

Modify Ticket

Action
as closed The owner will remain Miklos Vajna.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.