bugWeeChat - Bugs: bug #35097, Hang on gnutls socket recv

 
 

bug #35097: Hang on gnutls socket recv

Submitted by:  Kyle Johnson <kabaka>
Submitted on:  Sat 17 Dec 2011 07:30:36 PM UTC  
Votes:  32  
 
Category: irc pluginSeverity: 3 - Normal
Item Group: irc protocolStatus: Fixed
Privacy: PublicAssigned to: Sebastien Helleu <flashcode>
Originator Name: Open/Closed: Closed
Release: 0.3.6IRC nick: Kabaka

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 09 Jun 2012 12:50:30 PM UTC, comment #2:

One more thing: if you still have freezes, please check that it's related to socket, by using gdb on running weechat-curses process.

More info in user guide: http://weechat.org/files/doc/devel/weechat_user.en.html#debug_running_weechat

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Sat 09 Jun 2012 09:46:18 AM UTC, comment #1:

I think the problem is fixed: the socket is now in non-blocking mode (for both SSL and non-SSL servers).

I am unable to reproduce the problem, so I need your help to test. Please tell me during long usage if the problem seems fixed or not.

After /upgrade, the SSL connections are lost and servers are reconnected, so the sockets will become non-blocking. For other servers (non-SSL), please try to /reconnect the server, then the socket will become non-blocking. Tests are welcome for non-SSL servers too, to check if there is no side effect with the fix.

Thank you for your tests!

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Sat 17 Dec 2011 07:30:36 PM UTC, original submission:

WeeChat was hung until killed when the server to which I was connected (via SSL) was null-routed. Backtrace is below (no symbols and such, but hopefully this is sufficient).

#0 0x00007f050d20916c in recv () from /lib/libc.so.6
#1 0x00007f050dbc2144 in ?? () from /usr/lib/libgnutls.so.28
#2 0x00007f050dbbd6b0 in ?? () from /usr/lib/libgnutls.so.28
#3 0x00007f050dbbe8cf in ?? () from /usr/lib/libgnutls.so.28
#4 0x00007fff053bfe70 in ?? ()
#5 0x00007fff053bfdf0 in ?? ()
#6 0x0000000002f40800 in ?? ()
#7 0x0000000000000050 in ?? ()
#8 0x00000000004221be in gui_main_loop ()
#9 0x000000000041a3ce in main ()

I am on Arch Linux x86_64 with GnuTLS version 3.0.9.

Kyle Johnson <kabaka>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by flashcode (Posted a comment)
  • -unavailable- added by fixato (Voted in favor of this item)
  • -unavailable- added by kabaka (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 32 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 20 Oct 2012 09:00:33 PM UTCflashcodeStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Sat 09 Jun 2012 09:46:18 AM UTCflashcodeStatusNone=>Ready For Test
      Assigned toNone=>flashcode
    Sun 05 Feb 2012 02:13:05 PM UTCfixatoCarbon-Copy-=>Added fixato

    Back to the top


    Powered by Savane 3.1-cleanup1