From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#33018: 26.1.50; thread starvation with async processes and accept-process-output Date: Fri, 12 Oct 2018 11:07:21 +0300 Message-ID: <83o9bzwpty.fsf@gnu.org> References: <87r2gwbmma.fsf@tcd.ie> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1539331577 10299 195.159.176.226 (12 Oct 2018 08:06:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2018 08:06:17 +0000 (UTC) Cc: 33018@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 12 10:06:12 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 1gAsSZ-0002ZT-Qr for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2018 10:06:11 +0200 Original-Received: from localhost ([::1]:38859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAsUg-0005bp-A5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2018 04:08:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAsUX-0005aF-6r for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2018 04:08:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAsUR-0003LH-3q for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2018 04:08:13 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41632) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAsUM-0003Js-L2 for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2018 04:08:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gAsUM-0005oc-Cm for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2018 04:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Oct 2018 08:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33018 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33018-submit@debbugs.gnu.org id=B33018.153933166622327 (code B ref 33018); Fri, 12 Oct 2018 08:08:02 +0000 Original-Received: (at 33018) by debbugs.gnu.org; 12 Oct 2018 08:07:46 +0000 Original-Received: from localhost ([127.0.0.1]:45890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAsU5-0005o3-Pl for submit@debbugs.gnu.org; Fri, 12 Oct 2018 04:07:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAsU4-0005nm-H3 for 33018@debbugs.gnu.org; Fri, 12 Oct 2018 04:07:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAsTt-00034N-75 for 33018@debbugs.gnu.org; Fri, 12 Oct 2018 04:07:37 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAsTn-00031Z-62; Fri, 12 Oct 2018 04:07:30 -0400 Original-Received: from [176.228.60.248] (port=4335 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gAsTf-000718-8x; Fri, 12 Oct 2018 04:07:22 -0400 In-reply-to: <87r2gwbmma.fsf@tcd.ie> (contovob@tcd.ie) 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" Xref: news.gmane.org gmane.emacs.bugs:151157 Archived-At: > From: "Basil L. Contovounesios" > Date: Thu, 11 Oct 2018 15:57:50 +0100 > > I attach a sample program test.el whose central function, test-slave, > invokes wget asynchronously before waiting for the process to exit. > > The issue I'm facing is that running test-slave twice in succession, > each time in a new thread, causes accept-process-output to hang with no > output (unless a timeout argument is given, in which case the function > returns nil) the second time around. When the hang happens, is there any wget process still alive, or did they all exit? Please use OS tools to find that out, don't rely on what Emacs thinks. > I could very well be doing or assuming something incorrectly, but what > baffles me is that the "hang" does not occur either when Emacs is run > non-interactively, or when "https://en.wikipedia.org/wiki/Emacs" is > replaced with "https://www.gnu.org/software/emacs/" Could be different properties of the servers related to async connections, like TLS handshake or even async getaddrinfo.