bugWeeChat - Bugs: bug #36655, weechat freezes when relay client...

 
 

bug #36655: weechat freezes when relay client loses connection

Submitter:  R1cochet <r1cochet>
Submitted:  Thu 14 Jun 2012 11:40:31 AM UTC
   
 
Category:  relay plugin Severity:  3 - Normal
Item Group:  other Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  Open/Closed:  Closed
Release:  * 0.3.8 IRC nick:  R1cochet
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 14 Jul 2012 08:43:45 PM UTC, comment #1: 

Sockets in relay plugin are not non-blocking. I think this should fix the problem.
But since I'm not able to reproduce myself, please test the fix and tell me if the freeze has gone.

Sebastien Helleu <flashcode>
Group administrator
Thu 14 Jun 2012 11:40:31 AM UTC, original submission:  

When weechat relay client loses connection, weechat freezes indefinitely.
Using weechat 0.3.9-dev and the android weechat client written by ubergeek42.

Steps to reproduce:
Connect weechat relay client to weechat-curses.
After connecting to weechat-curses, turn off wifi connection.
About 30-60 seconds later weechat freezes.

I am unable to change buffers or type in the current buffer in weechat-curses.

To unfreeze:
Turn on wifi in android device.
Reconnect relay client to weechat-curses

gdb trace report during freeze:
(gdb) bt full
#0  0x00007f82608cb20d in send () from /lib/libc.so.6
No symbol table info available.
#1  0x00007f825cd2720d in relay_weechat_msg_send () from /usr/lib/weechat/plugins/relay.so
No symbol table info available.
#2  0x00007f825cd27839 in relay_weechat_protocol_nicklist_map_cb () from /usr/lib/weechat/plugins/relay.so
No symbol table info available.
#3  0x0000000000468e34 in hashtable_map ()
No symbol table info available.
#4  0x00007f825cd28f33 in relay_weechat_protocol_timer_nicklist_cb () from /usr/lib/weechat/plugins/relay.so
No symbol table info available.
#5  0x000000000046e6c1 in hook_timer_exec ()
No symbol table info available.
#6  0x0000000000423b77 in gui_main_loop ()
No symbol table info available.
#7  0x000000000041b8ee in main ()
No symbol table info available.
(gdb) q
A debugging session is active.

Inferior 1 [process 957] will be detached.

Quit anyway? (y or n) y
Detaching from program: /usr/bin/weechat-curses, process 957

R1cochet <r1cochet>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by r1cochet (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-29 flashcode Open/ClosedOpen Closed
    2012-07-17 flashcode StatusReady For Test Fixed
    2012-07-14 flashcode CategoryNone relay plugin
        Item GroupNone other
        StatusNone Ready For Test
        Assigned toNone flashcode
        Release3.3-dev 0.3.8

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code