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: Sat, 20 Oct 2018 11:34:40 +0300 Message-ID: <83efcluicf.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> <83woqgqvl2.fsf@gnu.org> <87zhvc2te8.fsf@tcd.ie> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1540024452 30106 195.159.176.226 (20 Oct 2018 08:34:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2018 08:34:12 +0000 (UTC) Cc: michael.albinus@gmx.de, 33018@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 20 10:34:08 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 1gDmhz-0007k3-O3 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2018 10:34:07 +0200 Original-Received: from localhost ([::1]:54234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDmk5-0007Ok-98 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2018 04:36:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDmjt-0007OH-6E for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2018 04:36:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDmjq-0004ks-2B for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2018 04:36:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55991) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDmjp-0004kj-Un for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2018 04:36:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gDmjp-0002lg-Qz for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2018 04:36: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: Sat, 20 Oct 2018 08:36: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.154002451010584 (code B ref 33018); Sat, 20 Oct 2018 08:36:01 +0000 Original-Received: (at 33018) by debbugs.gnu.org; 20 Oct 2018 08:35:10 +0000 Original-Received: from localhost ([127.0.0.1]:60249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDmiz-0002kc-L3 for submit@debbugs.gnu.org; Sat, 20 Oct 2018 04:35:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51581) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDmiy-0002kK-2Q for 33018@debbugs.gnu.org; Sat, 20 Oct 2018 04:35:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDmip-0003KF-KI for 33018@debbugs.gnu.org; Sat, 20 Oct 2018 04:35:02 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDmip-0003K6-Fe; Sat, 20 Oct 2018 04:34:59 -0400 Original-Received: from [176.228.60.248] (port=2670 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gDmip-0002SL-2T; Sat, 20 Oct 2018 04:34:59 -0400 In-reply-to: <87zhvc2te8.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:151456 Archived-At: > From: "Basil L. Contovounesios" > Cc: , <33018@debbugs.gnu.org> > Date: Wed, 17 Oct 2018 21:46:39 +0100 > > > I think the relevant code should be instrumented to show which thread > > waits for what process(es). > > Each thread launches a single wget process which it then waits for > before dying, and current-thread is always eq to that thread around > calls to accept-process-output. Or are you talking about some other > type of thread? I was talking about low-level details: we set up the file-descriptor mask passed to pselect, to tell it which descriptors to wait on. The call to accept-process-output is supposed to arrange for the descriptor where the corresponding process will write to be one of those on which the corresponding pselect will wait. I was thinking that perhaps we become confused and don't ask pselect called by a thread to wait on the process which was launched by that thread. > Either way, I'll report back when I've had a deeper look into what Emacs > is doing, unless someone beats me to it. Thanks. > I'm sorry I've been talking more than doing, but university and house > hunting will dominate my free time for the next few weeks. No need to be sorry, we all have our lives.