From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22789: 25.1.50; In last master build https connections stop working Date: Mon, 07 Mar 2016 19:33:17 +0200 Message-ID: <83pov6tcpu.fsf@gnu.org> References: <864mcyo14y.fsf@Lenovo-PC.i-did-not-set--mail-host-address--so-tickle-me> <868u25p3m2.fsf@realize.ch> <83io18ahya.fsf@gnu.org> <86y4a3on6f.fsf@realize.ch> <87oaazg7fv.fsf@gnus.org> <86twkro0vr.fsf@realize.ch> <83d1rf8ifj.fsf@gnu.org> <86povfnm9r.fsf@realize.ch> <8337sa9865.fsf@gnu.org> <86bn6ynrbw.fsf@realize.ch> <83vb566v5b.fsf@gnu.org> <83d1razkmq.fsf@gnu.org> <86egbqkwsb.fsf@realize.ch> <86a8mekjrb.fsf@realize.ch> <83k2lhxria.fsf@gnu.org> <86egbo232a.fsf@realize.ch> <83si04wx18.fsf@gnu.org> <8660wz1azm.fsf@realize.ch> <861t7n1970.fsf@realize.ch> <86wppezn9f.fsf@realize.ch> <83lh5uuv6w.fsf@gnu.org> <86oaaqyzl7.fsf@realize.ch> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1457372064 21013 80.91.229.3 (7 Mar 2016 17:34:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2016 17:34:24 +0000 (UTC) Cc: larsi@gnus.org, j_l_domenech@yahoo.com, 22789@debbugs.gnu.org To: Alain Schneble Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 07 18:34:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1acz2r-0008Gb-7a for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Mar 2016 18:34:13 +0100 Original-Received: from localhost ([::1]:57360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acz2q-0002nf-Pg for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Mar 2016 12:34:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acz2k-0002mY-RD for bug-gnu-emacs@gnu.org; Mon, 07 Mar 2016 12:34:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acz2g-0002Cr-OM for bug-gnu-emacs@gnu.org; Mon, 07 Mar 2016 12:34:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acz2g-0002CX-Lf for bug-gnu-emacs@gnu.org; Mon, 07 Mar 2016 12:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1acz2g-0007K2-7P for bug-gnu-emacs@gnu.org; Mon, 07 Mar 2016 12:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Mar 2016 17:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22789 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22789-submit@debbugs.gnu.org id=B22789.145737201128107 (code B ref 22789); Mon, 07 Mar 2016 17:34:02 +0000 Original-Received: (at 22789) by debbugs.gnu.org; 7 Mar 2016 17:33:31 +0000 Original-Received: from localhost ([127.0.0.1]:38329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acz28-0007JE-6T for submit@debbugs.gnu.org; Mon, 07 Mar 2016 12:33:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55235) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acz23-0007Is-6e for 22789@debbugs.gnu.org; Mon, 07 Mar 2016 12:33:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acz1s-00025b-5d for 22789@debbugs.gnu.org; Mon, 07 Mar 2016 12:33:18 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acz1s-00025X-2G; Mon, 07 Mar 2016 12:33:12 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1434 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1acz1r-0003Lo-5k; Mon, 07 Mar 2016 12:33:11 -0500 In-reply-to: <86oaaqyzl7.fsf@realize.ch> (message from Alain Schneble on Mon, 7 Mar 2016 18:20:20 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114549 Archived-At: > From: Alain Schneble > CC: , , <22789@debbugs.gnu.org> > Date: Mon, 7 Mar 2016 18:20:20 +0100 > > >> Could it be a multi-threading issue then? Multiple threads > >> accessing the same socket... > > > > Not sure I follow -- are you trying to explain why ioctlsocket doesn't > > fail as expected, or are you trying to explain some other phenomenon? > > Both. 1) I expected it to (sometime) fail but didn't see it. 2) The > arbitrary gnutls_handshake failures I observed seem like the socket's > state is getting corrupted. I cannot argue with facts. I'm not sure the ioctlsocket calls are what causes the failures, but since you say the failures disappear when we don't, it's a fact that we should accept. > Do you agree that WSAEventSelect is called from the reader thread and > the ioctlsocket is called from the main thread? Yes, of course. > And AFAIK, these functions are not thread safe... I don't think this is true. AFAIK, the WSA* functions are all thread-safe. > So I suspect that we ran into a multi-threading issue here, which > corrupted the socket. And may have lead to the above mentioned > issues. It's possible. But if you see the problems solved after the change, I see no reason to continue arguing. Thanks.