From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#24201: 25.1.50; TLS connections sometimes hang Date: Mon, 19 Feb 2018 19:37:00 +0100 Message-ID: <87606seshf.fsf@linux-m68k.org> References: <83mvicebin.fsf@gnu.org> <83d1j8e9c0.fsf@gnu.org> <83shg5z32d.fsf@gnu.org> <87efrp2qw0.fsf@mouse> <83tw0lxjt3.fsf@gnu.org> <6e9f3b6c-43df-bf95-d346-56c93c61b4d7@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1519065389 19354 195.159.176.226 (19 Feb 2018 18:36:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Feb 2018 18:36:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) Cc: 24201@debbugs.gnu.org, Paul Eggert To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 19 19:36:24 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enqIM-0003sB-9M for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Feb 2018 19:36:10 +0100 Original-Received: from localhost ([::1]:51811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enqKO-000202-LP for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Feb 2018 13:38:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enqKF-0001ze-A2 for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 13:38:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enqKB-0005Sx-5U for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 13:38:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43712) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1enqKB-0005Sh-1T for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 13:38:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1enqKA-0006yq-IW for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 13:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Feb 2018 18:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24201 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24201-submit@debbugs.gnu.org id=B24201.151906543626774 (code B ref 24201); Mon, 19 Feb 2018 18:38:02 +0000 Original-Received: (at 24201) by debbugs.gnu.org; 19 Feb 2018 18:37:16 +0000 Original-Received: from localhost ([127.0.0.1]:51609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enqJM-0006xj-IL for submit@debbugs.gnu.org; Mon, 19 Feb 2018 13:37:16 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:52780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enqJH-0006xV-3r for 24201@debbugs.gnu.org; Mon, 19 Feb 2018 13:37:10 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zlXXd2N20z1qx92; Mon, 19 Feb 2018 19:37:05 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zlXXd28jlz1qrVX; Mon, 19 Feb 2018 19:37:05 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id dMCuTQNLtuhK; Mon, 19 Feb 2018 19:37:01 +0100 (CET) X-Auth-Info: cWZXpgiBrYETWLen3xeMIpAk6f8joSo7RUrZCEE83AIwOY2gYUUz9p8QT4iN84rr Original-Received: from localhost (ppp-188-174-146-66.dynamic.mnet-online.de [188.174.146.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 19 Feb 2018 19:37:01 +0100 (CET) Original-Received: by localhost (Postfix, from userid 1000) id E70BD2C10DA; Mon, 19 Feb 2018 19:37:00 +0100 (CET) X-Yow: .. the MYSTERIANS are in here with my CORDUROY SOAP DISH!! In-Reply-To: (Lars Ingebrigtsen's message of "Mon, 19 Feb 2018 19:16:50 +0100") 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" Xref: news.gmane.org gmane.emacs.bugs:143470 Archived-At: On Feb 19 2018, Lars Ingebrigtsen wrote: > Paul Eggert writes: > >> Lars Ingebrigtsen wrote: >>> #0 pthread_sigmask (how=0, newmask=, oldmask=0x7fffffff8a60) >>> at ../sysdeps/unix/sysv/linux/pthread_sigmask.c:50 >> >> When you say that Emacs "hangs" surely you don't mean that the call to >> pthread_sigmask is hanging. So, can we assume that Emacs is >> busy-waiting for something? Is the CPU pegged? What does the busy-wait >> loop look like? > > It's using 100% CPU, so it's busy-waiting, but every time I stop it, > it's in that pthread_sigmask, as far as I'm able to tell... Since it's making a syscall the loop is likely spending a significant part of the time there. That doesn't mean it's reponsible for the busy wait. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."