GNU bug report logs - #33839
26.1.90; Emacs occasionally fails to receive asynchronous subprocess output in batch mode

Previous Next

Package: emacs;

Reported by: Philipp <p.stephani2 <at> gmail.com>

Date: Sun, 23 Dec 2018 02:30:03 UTC

Severity: normal

Fixed in version 26.1.90

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 33839 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Philipp <p.stephani2 <at> gmail.com>
Cc: 33839 <at> debbugs.gnu.org
Subject: Re: bug#33839: 26.1.90;
 Emacs occasionally fails to receive asynchronous subprocess output in
 batch mode
Date: Sun, 23 Dec 2018 17:21:58 +0200
> From: Philipp <p.stephani2 <at> gmail.com>
> Date: Sun, 23 Dec 2018 03:28:53 +0100
> 
> (with-temp-buffer
>   (let ((proc (make-process :name "test"
>                             :command '("bash" "-c" "echo stdout; echo stderr >&2")
>                             :buffer (current-buffer)
>                             :connection-type 'pipe
>                             :sentinel #'ignore
>                             :noquery t
>                             :coding '(utf-8-unix . utf-8-unix))))
>     (when (process-live-p proc)
>       (process-send-eof proc))
>     (while (process-live-p proc)
>       (accept-process-output proc))
>     (cl-assert (equal (buffer-string) "stdout\nstderr\n") :show-args)))
> 
> Then evaluate this form repeatedly.  Occasionally the buffer is empty
> and the assertion triggers.

Isn't there an inherent race condition here?




This bug report was last modified 6 years and 143 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.