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


bug #35097: Hang on gnutls socket recv

Submitter:  Kyle Johnson <kabaka>
Submitted:  Sat 17 Dec 2011 07:30:36 PM UTC
Votes: 32
Category:  irc plugin Severity:  3 - Normal
Item Group:  irc protocol Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  Open/Closed:  Closed
Release:  * 0.3.6 IRC nick:  Kabaka
* Mandatory Fields

Add a New Comment Rich Markup

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>
Group administrator
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>
Group administrator
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 Files:

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 fixato (Voted in favor of this item)
  • -email is unavailable- added by kabaka (Submitted the item)

    There are 32 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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-10-20 flashcode StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2012-06-09 flashcode StatusNone Ready For Test
        Assigned toNone flashcode
    2012-02-05 fixato Carbon-Copy- Added fixato

    Back to the top

    Powered by Savane 3.12