From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#24201: 25.1.50; TLS connections sometimes hang Date: Fri, 28 Jun 2019 10:25:41 +0200 Message-ID: References: <87efrp2qw0.fsf@mouse> <83tw0lxjt3.fsf@gnu.org> <6e9f3b6c-43df-bf95-d346-56c93c61b4d7@cs.ucla.edu> <83o9kk96ez.fsf@gnu.org> <83h8qc92hc.fsf@gnu.org> <834l4en63b.fsf@gnu.org> <83h88cjoiv.fsf@gnu.org> <831rzfjh3i.fsf@gnu.org> <83lfxmi653.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="68679"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 24201@debbugs.gnu.org, eggert@cs.ucla.edu To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 28 10:26:27 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgmDB-000Hie-Qd for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jun 2019 10:26:25 +0200 Original-Received: from localhost ([::1]:57636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgmDA-00053x-F2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jun 2019 04:26:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59933) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgmCw-00053S-J3 for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 04:26:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgmCo-0003Bh-PI for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 04:26:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55030) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgmCo-0003BN-C1 for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 04:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hgmCo-00065D-7E for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 04:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Jun 2019 08:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24201 X-GNU-PR-Package: emacs Original-Received: via spool by 24201-submit@debbugs.gnu.org id=B24201.156171034923363 (code B ref 24201); Fri, 28 Jun 2019 08:26:02 +0000 Original-Received: (at 24201) by debbugs.gnu.org; 28 Jun 2019 08:25:49 +0000 Original-Received: from localhost ([127.0.0.1]:40341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgmCb-00064l-9I for submit@debbugs.gnu.org; Fri, 28 Jun 2019 04:25:49 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:57948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgmCZ-00064b-Le for 24201@debbugs.gnu.org; Fri, 28 Jun 2019 04:25:48 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hg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") 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: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:161697 Archived-At: Eli Zaretskii writes: >> I'm not sure -- I haven't been able to debug that at all. Since C-g >> doesn't work (and it happens so rarely and I have to catch it before the >> peer hangs up), it makes it awkward... > > You could try using debug-on-event in conjunction with SIGUSR1/SIGUSR2 > to enter the debugger when you need. Oh, that seems very useful; yes. I'll set that up and try that the next time it happens. >> > Is inhibit-quit in fact nil or not inside this loop? >> >> Looking at the code, I can't see any signs of it being inhibited here, >> but I'm waiting for the next time it happens so that I can inspect with >> gdb... > > You could also add a call to 'message' in that loop to print the value > of the flag. `inhibit-quit' is not set normally when that function is called (I just checked), but perhaps... Oh, I just thought something -- this function (when it hangs) is always called from a timer. Does the timer machinery set `inhibit-quit'? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no