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: Wed, 17 Oct 2018 21:25:29 +0300 Message-ID: <83woqgqvl2.fsf@gnu.org> References: <87r2gwbmma.fsf@tcd.ie> <875zy7cqzd.fsf@gmx.de> <878t30h823.fsf@tcd.ie> <87sh177i36.fsf@gmx.de> <877eiipu8g.fsf@tcd.ie> <83k1mirl9n.fsf@gnu.org> <874ldkjwzn.fsf@tcd.ie> <83zhvcqwxc.fsf@gnu.org> <87o9bswirc.fsf@tcd.ie> <83y3awqvtl.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1539800685 16321 195.159.176.226 (17 Oct 2018 18:24:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2018 18:24:45 +0000 (UTC) Cc: michael.albinus@gmx.de, 33018@debbugs.gnu.org To: contovob@tcd.ie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 17 20:24:40 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 1gCqUq-000435-8h for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 20:24:40 +0200 Original-Received: from localhost ([::1]:38524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCqWr-0003YD-DF for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 14:26:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCqWB-00038G-5C for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 14:26:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCqWA-0001w4-63 for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 14:26:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51352) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCqW9-0001vM-W4 for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 14:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gCqW9-0001DV-Ou for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 14:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Oct 2018 18:26:01 +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.15398007564665 (code B ref 33018); Wed, 17 Oct 2018 18:26:01 +0000 Original-Received: (at 33018) by debbugs.gnu.org; 17 Oct 2018 18:25:56 +0000 Original-Received: from localhost ([127.0.0.1]:55610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCqW4-0001DB-D0 for submit@debbugs.gnu.org; Wed, 17 Oct 2018 14:25:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCqW2-0001Cu-Oz for 33018@debbugs.gnu.org; Wed, 17 Oct 2018 14:25:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCqVt-0001PI-5b for 33018@debbugs.gnu.org; Wed, 17 Oct 2018 14:25:49 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCqVs-0001Og-Vs; Wed, 17 Oct 2018 14:25:45 -0400 Original-Received: from [176.228.60.248] (port=1716 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gCqVs-0003w1-0w; Wed, 17 Oct 2018 14:25:44 -0400 In-reply-to: <83y3awqvtl.fsf@gnu.org> (message from Eli Zaretskii on Wed, 17 Oct 2018 21:20:22 +0300) 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:151354 Archived-At: > Date: Wed, 17 Oct 2018 21:20:22 +0300 > From: Eli Zaretskii > Cc: michael.albinus@gmx.de, 33018@debbugs.gnu.org > > > From: "Basil L. Contovounesios" > > Cc: , <33018@debbugs.gnu.org> > > Date: Wed, 17 Oct 2018 19:05:59 +0100 > > > > > Looks like the buffer of the pipe through which Emacs reads the stuff > > > is full, and wget waits for some space there? > > > > Would that imply that different threads/processes are (re)using the same > > buffer/pipe? > > Could be, but it's more likely that Emacs simply doesn't read the > output from wget. I think the relevant code should be instrumented to show which thread waits for what process(es). Btw, are you sure this is not a bug in your program? Michael caused your program to work twice by simple changes, AFAIU, no?