unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: Philipp Stephani <phst@google.com>,
	Emacs developers <emacs-devel@gnu.org>
Subject: Re: master 64f2c96 2/2: Make a process test faster.
Date: Sat, 9 Jan 2021 19:12:13 +0100	[thread overview]
Message-ID: <CAArVCkRaZ+DiVnfZOG8hcHbPf2xEHOE25EZs1tt=niBSf6MP4Q@mail.gmail.com> (raw)
In-Reply-To: <iz35zcgqc2.fsf@fencepost.gnu.org>

Am Fr., 8. Jan. 2021 um 02:38 Uhr schrieb Glenn Morris <rgm@gnu.org>:
>
>
> It is now unstable, ie mostly passes but sometimes fails.
>
> Ref eg
> https://hydra.nixos.org/build/134561612
> https://hydra.nixos.org/build/134556213

Interesting. I can't see why it would deadlock. There are only 4 possible cases:
1. vfork and exec both succeed. Then the code will immediately close
stdin for cat, causing it to terminate, and accept-process-output
should return immediately after one or two iterations.
2. vfork and exec both fail due to running out of file descriptors.
Then the process object doesn't exist in the first place, and we don't
try to read from it.
3. Some unexpected error (out of memory, executable suddenly vanishes,
...). That should result in a test failure, but no deadlock.
4. vfork succeeds, child setup before exec fails. That's the
interesting case, which I think is happening here: the child tries to
reopen the TTY file, but that fails because of too many open files. In
this case, since make-process waits for exec/exit, the process object
exists, but isn't alive any more. However, in that case
accept-process-output should also return immediately.



  parent reply	other threads:[~2021-01-09 18:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210102125533.3832.43853@vcs0.savannah.gnu.org>
     [not found] ` <20210102125536.C3FED2094D@vcs0.savannah.gnu.org>
2021-01-03 17:41   ` master 64f2c96 2/2: Make a process test faster Glenn Morris
2021-01-04 21:24     ` Philipp Stephani
2021-01-05 14:27       ` Philipp Stephani
2021-01-08  1:38         ` Glenn Morris
2021-01-08  9:01           ` Michael Albinus
2021-01-09 18:12           ` Philipp Stephani [this message]
2021-01-09 21:00             ` Philipp Stephani
2021-01-10 16:39               ` Eli Zaretskii
2021-01-10 17:17                 ` Philipp Stephani
2021-01-16 19:19                   ` Philipp Stephani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAArVCkRaZ+DiVnfZOG8hcHbPf2xEHOE25EZs1tt=niBSf6MP4Q@mail.gmail.com' \
    --to=p.stephani2@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=phst@google.com \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).