From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 05:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 22344@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.145249094713155 (code B ref -1); Mon, 11 Jan 2016 05:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jan 2016 05:42:27 +0000 Received: from localhost ([127.0.0.1]:45927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIVFK-0003Q7-Kg for submit@debbugs.gnu.org; Mon, 11 Jan 2016 00:42:26 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47871) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIVFI-0003Ps-Ia for submit@debbugs.gnu.org; Mon, 11 Jan 2016 00:42:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIVFB-0001t9-Vs for submit@debbugs.gnu.org; Mon, 11 Jan 2016 00:42:19 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIVFB-0001t5-T2 for submit@debbugs.gnu.org; Mon, 11 Jan 2016 00:42:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIVFA-0002Et-29 for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 00:42:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIVF5-0001rd-8S for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 00:42:14 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:55357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIVF4-0001rZ-V9 for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 00:42:11 -0500 Received: from [18.189.87.242] ([18.189.87.242]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0LlWdD-1ZjizO2Xrz-00bGkd for ; Mon, 11 Jan 2016 06:42:09 +0100 From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel X-Enigmail-Draft-Status: N1110 Message-ID: <569340A9.3010904@gmail.com> Date: Mon, 11 Jan 2016 00:42:01 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LhClVkI83IijskXhoW51VuJ5VsSTNrbpB" X-Provags-ID: V03:K0:FBZZaYbIoT4h9AVg/vomRbHuVDXJojNXPOeD3dqyt5j3TG8OE71 kQfEKW4qkubO1qYFnlO/XZGxF+KHCFkzCQvQd8tqKC0ZppQusSpuwQKrcV08Np826d/LuDm YC7LlHymIpTRB2N3ItElrEO79tiW9tsY6XSq/5qK4m1Ka4NSDUbywEbmMdWULExYPXPQg67 4tONvsZVYxAvta812ZkEg== X-UI-Out-Filterresults: notjunk:1;V01:K0:IJnyB9LitBI=:jr73BKjbgMKrNreh2JYRO8 GO0fPlYqFxy2/BqYeEDpQerd8naUmRWnl6iaMA+DK8xevGcTpWH9DgVaRK+Zdrwi08azegChI Zenex8Jjh4KeEWqNKbqoxqubyGeQaXq0NzQom/iEXIV1N9AHSmoEmhO9AF4qyBJXzte63Klvb 0u4sm9rhwlLO3FtnbeYlm2i3uRRVZPeCkU+/pycu271m6izdjy4dG5U3RwJViBY7SOR3egevP dzLUOMi4z4TK6WOuxnsFC5QMPfArAcKZcUbii2dRVPe2XpVqWPnULzHCA9mnsgbP+fq946uZX aYoLdK1O7LSw0zY4E9FzhmJZ1K5oDLdbCaxsFRxensJ9gwD1D2yATUy03zOu/e0qlIPp2w16W H0O2ilvXTAJlJ4cN+fmxwSB11jL9g5dICYjE9nlZe0yDg7MSLB6MJuNXnw6boYNbmRRteaq7n JgY5whXbs+5UM5hree1HeRl8CiK16dAGktztSFIOKx8zVx9E5+wU5NlZuT2eskA8tkWQmr6LW DQnyLipd9IUlwqRMmK8d988rwgwft32JYH4mdhgJ0pzCnViEsjJeEiW37wnhoOScFV1nd3kzf xagYaZoV4qNty5KGAtylFHRCEAj9lUFa196dh2pAiGC17wwG3BQvdb/Q6UZ9O9O9j38b/YfZA aZoZqLRTQsTyLV6lU2AgChF9GQiEY4l+qpIaL5USSkh0IKy/hMQPDgzjVNadhxP/Dry8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --LhClVkI83IijskXhoW51VuJ5VsSTNrbpB Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all, On Windows, sending more that 4096 bytes at once to a subprocess will cau= se Emacs to hang (freeze) indefinitely. Killing the subprocess by externa= l means restores functionality. This happens in Emacs 25, 24.5.1, and 24.= 4 on Windows 8 and 10; I did not try in earlier versions. Here is how to reproduce the issue: 1. Create a loop.cmd file in C:\. Put the following in it: :loop goto loop 2. Run the following snippet in emacs -Q: (process-send-string (start-process "bug" nil "c:/loop.cmd") (make-string 4097 ?a)) 3. Emacs hangs. Kill cmd.exe from the task manager to make it responsive = again. At this point Emacs will display the following: Debugger entered--Lisp error: (file-error "Writing to process" "Invali= d argument" #) process-send-string(# "(...)") eval-region(192 277 t #[257 "\300\242b\210\301\207" [(277) (process-= send-string (start-process "bug" nil "c:/loop.cmd") (make-string 4097 97)= )] 2 "\n\n(fn IGNORE)"]) ; Reading at buffer position 277 elisp--eval-defun() eval-defun(nil) funcall-interactively(eval-defun nil) call-interactively(eval-defun nil nil) command-execute(eval-defun) Note that the following snippet, on the other hand, runs without issues: (process-send-string (start-process "bug" nil "c:/loop.cmd") (make-string 4096 ?a)) I have read sections 7.1 and 7.2 of https://www.gnu.org/software/emacs/ma= nual/html_mono/efaq-w32.html , but I do not believe that the bug is cover= ed by these sections. Indeed, sending the same input in smaller batches w= orks fine. That is, sending 4097 bytes in batches of 50 bytes works fine:= Emacs does not hang, and the subprocess properly receives the input. Here is some context: we've had many users of Flycheck (an alternative to= Flymake) on Windows complaining that Flycheck caused Emacs to hang; this= happened since we transitioned from passing file names to linters to fee= ding them source code directly on their stdin. It turns out that this hap= pens when the files in question are more than 4096 characters long. The p= roblem was confirmed with jshint, eshint, and phpcs. I do not know if tha= t means that other linters work fine, or if we didn't get reports from ot= her users. Investigating the bug led me to the minified test case above. As I mentionned before, sending input in smaller batches works fine. In t= he case of Flycheck, this means changing this: (process-send-region (point-min) (point-max)) to this: (goto-char (point-mint)) (while (not (eobp)) (let ((from (point))) (forward-char (min 50 (- (point-max) (point)))) (process-send-region process from (point)))) fixes the issue entirely. I do not use Windows often, but I'll be happy to provide more information= , if I can help. I did not compile my own Emacs; I used the one provided = at https://sourceforge.net/projects/emacsbinw64/ . The original bug repor= t about Flycheck, which did not identify process-send-string or process-s= end-region as the culprit, is here: https://github.com/flycheck/flycheck/= issues/794 . I have included debug output below. Thanks, Cl=C3=A9ment. In GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-11-10 Repository revision: 9145e79dc2042fb477959ddda59c3e2ff5fa3914 Windowing system distributor 'Microsoft Corp.', version 6.3.9600 Configured using: 'configure --prefix=3D/z/emacs --host=3Dx86_64-w64-mingw32 --target=3Dx86_64-w64-mingw32 --build=3Dx86_64-w64-mingw32 --with-wide-i= nt --with-jpeg --with-xpm --with-png --with-tiff --with-rsvg --with-xml2 --with-gnutls --with-sound=3Dyes --with-file-notification=3Dyes --without-dbus --without-imagemagick 'CFLAGS=3D-O3 -fomit-frame-pointer -g0 -pipe' 'LDFLAGS=3D-static-libgcc -static-libstdc++ -static -s -Wl,-s'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu cl-loaddefs pcase cl-lib debug time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 84225 4487) (symbols 56 19038 0) (miscs 48 64 168) (strings 32 14204 4737) (string-bytes 1 410641) (vectors 16 10727) (vector-slots 8 405995 4577) (floats 8 130 34) (intervals 56 274 32) (buffers 976 12)) --LhClVkI83IijskXhoW51VuJ5VsSTNrbpB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWk0CwAAoJEPqg+cTm90wjPQAP/jYn1I16NT9OZbUqvIx+rc8L BymP2i7MR9Ckueyn1YQ7biMRwz3bx9mo38IsCPlzRWxrSJW2Q+zupvmqRotjuFRF JjS6K3awXNV9vaXLG8lwPDTs95xTYxhAVVIEhPpiDfpHdDUP4hh26Hxl2gLdvn3s SJgHw+8leoW9lck828g3Wr1Aa1IiKoRxXQSpl66SGcFk9R733vlLxiWccB7Pni1U Bzv9K6+o9FQSpgmu+MfzBULuTQsSFwOyr7ioM0OZvL1mSrKKRiQl6E1ibrO/m9B3 JWbOEkelhoHiGhQNJyR8Sj8BcQb+OM6YjytQvqrCj2CCUeuRGwek9Y+f9YNdaCvN Nr+lzEB004QiUJfsRzjTFAM/NFkOWyxORr73IXB6Ksw40M6sjDtEO36ZLmzTxg9w 9BKyuPho+Ufby24Yy0iBOEPLs+KFPIvoNN+HH7abG60IZzchhhBaHRKi0Km1Sojw wFSV8/M1pjLG7ed5mehrT0SirNo9pdsrzc95bbGFjXa3R20eLVZwAQUtUEnnz7xX pOFN5tEiqifRYjhdprf5UpTNf61Lzjoa4R++lybcbIStHUmsSALgrKP3DzD6i+pn qu1cI5R+MrHWqWkrNHrGaC0oTDBK6IMAFBWNxhJHS9oZKyePBCU29qEVN5uQy+1Y wC1iNO9n3i4t2EPk3moy =FZug -----END PGP SIGNATURE----- --LhClVkI83IijskXhoW51VuJ5VsSTNrbpB-- From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 15:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Cc: 22344@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.14525266499915 (code B ref 22344); Mon, 11 Jan 2016 15:38:01 +0000 Received: (at 22344) by debbugs.gnu.org; 11 Jan 2016 15:37:29 +0000 Received: from localhost ([127.0.0.1]:46588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIeXA-0002Zr-R5 for submit@debbugs.gnu.org; Mon, 11 Jan 2016 10:37:29 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58549) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIeX8-0002Zd-QA for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 10:37:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIeX0-0007DR-K5 for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 10:37:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIeX0-0007DN-Gv; Mon, 11 Jan 2016 10:37:18 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1956 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aIeWx-0001kw-RO; Mon, 11 Jan 2016 10:37:18 -0500 Date: Mon, 11 Jan 2016 17:37:22 +0200 Message-Id: <83si24ktzh.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <569340A9.3010904@gmail.com> (message from =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel on Mon, 11 Jan 2016 00:42:01 -0500) References: <569340A9.3010904@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Clément Pit--Claudel > Date: Mon, 11 Jan 2016 00:42:01 -0500 > > On Windows, sending more that 4096 bytes at once to a subprocess will cause > Emacs to hang (freeze) indefinitely. That's not true, at least not when phrased in such a general form. See below. > 1. Create a loop.cmd file in C:\. Put the following in it: > > :loop > goto loop > > 2. Run the following snippet in emacs -Q: > > (process-send-string > (start-process "bug" nil "c:/loop.cmd") > (make-string 4097 ?a)) > > 3. Emacs hangs. That's expected, when your subprocess doesn't read its stdin. Emacs on MS-Windows uses pipes to communicate with subprocesses; a pipe on Windows has a 4K buffer. So as soon as Emacs writes more than 4096 bytes to the pipe, the pipe becomes full, and Emacs then waits for the subprocess to read its end of the pipe, at which time Emacs will write the rest of the stuff. Since your batch file doesn't read its stdin, Emacs waits forever. If I modify your loop.cmd to have the following trivial command: @cat > foobar then Emacs doesn't hang, it happily writes those 4097 bytes, and after that, I see all of them in the 'foobar' file. Moreover, I tried the same test with 100 times as many bytes (i.e. 409700), and it still worked as expected, with all of the bytes ending up in the file. I also tried a more elaborate batch file that reads stdin in small chunks, sleeping 1 sec between chunks. That, too, didn't cause Emacs to hang, although it took some time to run to completion, due to the 1-sec waits. So the issue is more complicated than what you describe above, since I believe the real-life use cases involved programs that do read their stdin. > I do not use Windows often, but I'll be happy to provide more information, if I > can help. I did not compile my own Emacs; I used the one provided at > https://sourceforge.net/projects/emacsbinw64/ . The original bug report about > Flycheck, which did not identify process-send-string or process-send-region as > the culprit, is here: https://github.com/flycheck/flycheck/issues/794 . I have > included debug output below. There could be some flaw in the logic that handles the overflowing pipe, which your use cases somehow trigger. But it's not a silly bug like what your description suggests: large writes to subprocesses do work, this was tested extensively back in Sep 2014 when bug#18420 was fixed by making the pipes to subprocesses non-blocking. Or maybe some other factor is at work in the real-life use cases. So someone with access to the programs in question will have to step with a debugger through the code involved in this (I can point to the relevant parts of the Emacs C code), and find out what goes wrong there, and why. Alternatively, if a reproducible test case can be posted with a simple program which reads its stdin and causes the hang, I will try debugging it myself. (By "simple program" I meant something that won't involve installing lots of other packages, ideally something as simple as a batch file calling 'cat' or a similar program.) Thanks. From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 16:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 22344@debbugs.gnu.org Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.145252871912968 (code B ref 22344); Mon, 11 Jan 2016 16:12:02 +0000 Received: (at 22344) by debbugs.gnu.org; 11 Jan 2016 16:11:59 +0000 Received: from localhost ([127.0.0.1]:46623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIf4Y-0003N5-2p for submit@debbugs.gnu.org; Mon, 11 Jan 2016 11:11:58 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:57783) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIf4X-0003Me-13 for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 11:11:57 -0500 Received: from [18.189.87.242] ([18.189.87.242]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0M1GfI-1a34621lCi-00tEbD; Mon, 11 Jan 2016 17:11:50 +0100 References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Message-ID: <5693D43E.4000804@gmail.com> Date: Mon, 11 Jan 2016 11:11:42 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <83si24ktzh.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kwCJPKIAisJ2suIF1KJonj1LCQ4LsneUt" X-Provags-ID: V03:K0:WSvKRTSfv7if06HQ5Szwwhof9coBIskZQAJ9YQQUDbmQQrPcn3s FjGBSqLvUzk7AXlHld1+hpoR5HmdUdVsyNpfFtF6C4sORBZDf0fqC1RDpG33sheHMWys/Xx OHPmut8+3fuA9x5/3C6yHimjZz/9Z+fRqiOFXt45iuWW1Lpp0GkBQnYwIRrYRj81AqFsZdn IVoPnPlWyRZ9fCpAuNvNg== X-UI-Out-Filterresults: notjunk:1;V01:K0:/0OmYID5cMc=:xBWKOg1co4vnr6j2HWQeaR fWxMM7F01yFqbTOWujKs1G8FjIE/FNJ/0XEPFLleubZpmy8TqrLkanHINdcCKu93N1P0lyAOW UZVZrNwsalkGZFIZP6rB2tOt/jL2+E78G9rT2kZLdgItcbIqQmWWLsAhw72tirlAQlpZCrMpd /0XYUHU257AlbU6d1QhvuxDrFC5kgjR7l/eKQDCPtF6xbn27jXDJ8l1k8pJ7Y/1hqWlkyDxAz hW+Iwho01qJ1b5Qu63zRk3+jaZZsosM04yLLNeqzjX6Iufu2rhbZIT4cjVXrtsU0dXf88Yh6i K50djjskMusMrjpIzuoUi0XxqMPC1coeagqwVIdnewlhNTrmsbi0jTu7fq6lcFfuzvuk6o69n eagRdo5Yyl7z+o+k0xBO5cYbxJ5f+TMA6tmbA9yvkXsQohgu3KbbF3hHf44WKt7LNIWYUjQdK 4i91gb9RB9dwmN5GfcWZ95MU3c6TwiGbWZ6WMx/mDOmjf5B/Z0JJfbLBsEbocPjLTPhBFA59B Ix1nPAh4K1zQsPOjT/FsoFSNzGpDLakiu5wqzhbIcvPw5hVq8ZSWGLEqFbfBFMA5tYEB8S5wO 3zK1Ubrx+3L/yttEszL2EJdpqpiAevtJFp3+tmTv8Ti2q0P8A/xAnLsjzOljDCl2uE3ZD2Nnq LMNiJq32sNxv2EtfCSvvpDXf9OYS0T6LwWKk6RBiS+h/9gsMzazrZrY6eZ9BIzXYBLb0= X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --kwCJPKIAisJ2suIF1KJonj1LCQ4LsneUt Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/11/2016 10:37 AM, Eli Zaretskii wrote: > So someone with access to the programs in question will have to step > with a debugger through the code involved in this (I can point to the > relevant parts of the Emacs C code), and find out what goes wrong > there, and why. Alternatively, if a reproducible test case can be > posted with a simple program which reads its stdin and causes the > hang, I will try debugging it myself. (By "simple program" I meant > something that won't involve installing lots of other packages, > ideally something as simple as a batch file calling 'cat' or a similar > program.) Hi Eli, Thanks for looking into this. Would a recipe requiring node.js and jshint= be too much? Node.js has a windows installer and jshint can be installed= with npm install --global jshint. Cl=C3=A9ment. --kwCJPKIAisJ2suIF1KJonj1LCQ4LsneUt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWk9REAAoJEPqg+cTm90wjUzIP/1eFqxwqFb+Fy8Q/bvZ5ljqW Xu30WvWmu8wnEKoMrA44y7BIISb5t3kQlKe9S8KyIBMjG+fyl3UZ0gh65B1/kG4C sV6BMO5ZX7evQ0cyqohfY1gcKFCKxCJoJMpVvj0/fA5+rvThMCFt2rCSMhHNTLAx KzYlzAT9Rhjyr4zRK2SG8YgyafQUiFDg850MHgYo9566xay/m5ZgMCuOTfP5QqLi 0+uw5zkHPI9jooS2wks3mS2ECBQguFPZL3EANFUaJlAwpkXxpsz6uhvKrKeH5JGg 8wPGAZDR+aTK6uGtV1GjALGA63xk8Ihp+vomVrPzyAN0T635qWC15SXQ4S4fhf3F w12dTDCPFE7nNz5n/RvQO2FZ0ZUtvm8R/O0PCQHVRfL04JrwUatR6wv/xNdcm94B j07LXeXnbvGB4kGTSBuag7ruJjHyApocJB9Sdi1Cu0Qb9BPQh9hAzscc6UJfGCNO HoRCEoBtq2hRAzHi2L/7EC3GJcGEE6G0kxCXYl0CsYnbDbXd0Bqkrqk0VYmM+ziN 7ETEvhaLjG+wbjjZOwPamZQqrf+/B6odeCYsVmEwuiwHmd9K+7Np3yGDKwHfuoXW 9Sf9Nzgxl3rngRFrfddvAUXKiDDi0/zrs+B5HojQoay4O7dlg/28ZgpTLr6tcnxx KLOem+o5eJ2sv4qdnDJs =cM+Q -----END PGP SIGNATURE----- --kwCJPKIAisJ2suIF1KJonj1LCQ4LsneUt-- From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 16:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Cc: 22344@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.145252990514820 (code B ref 22344); Mon, 11 Jan 2016 16:32:01 +0000 Received: (at 22344) by debbugs.gnu.org; 11 Jan 2016 16:31:45 +0000 Received: from localhost ([127.0.0.1]:46633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIfNg-0003qy-NH for submit@debbugs.gnu.org; Mon, 11 Jan 2016 11:31:44 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47353) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIfNe-0003qk-QQ for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 11:31:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIfNW-0005cF-Eq for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 11:31:37 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIfNW-0005cB-Bl; Mon, 11 Jan 2016 11:31:34 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2015 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aIfNV-0004gg-OS; Mon, 11 Jan 2016 11:31:34 -0500 Date: Mon, 11 Jan 2016 18:31:40 +0200 Message-Id: <83lh7wkrgz.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <5693D43E.4000804@gmail.com> (message from =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel on Mon, 11 Jan 2016 11:11:42 -0500) References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> <5693D43E.4000804@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 22344@debbugs.gnu.org > From: Clément Pit--Claudel > Date: Mon, 11 Jan 2016 11:11:42 -0500 > > Thanks for looking into this. Would a recipe requiring node.js and jshint be too much? Node.js has a windows installer and jshint can be installed with npm install --global jshint. I'd prefer a program that doesn't need to be installed, and ideally in a language I could hack, if the problem is on the other side. What's so special about these programs that they behave differently from 'cat' etc.? What language are they written in? Thanks. From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 22344@debbugs.gnu.org Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.145253042815674 (code B ref 22344); Mon, 11 Jan 2016 16:41:02 +0000 Received: (at 22344) by debbugs.gnu.org; 11 Jan 2016 16:40:28 +0000 Received: from localhost ([127.0.0.1]:46653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIfW8-00044j-FG for submit@debbugs.gnu.org; Mon, 11 Jan 2016 11:40:28 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:50910) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIfW6-00044S-IS for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 11:40:26 -0500 Received: from [18.189.87.242] ([18.189.87.242]) by mrelayeu.kundenserver.de (mreue005) with ESMTPSA (Nemesis) id 0MOETY-1aFM7q1ZMy-005Zzi; Mon, 11 Jan 2016 17:40:18 +0100 References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel X-Enigmail-Draft-Status: N1110 Message-ID: <5693DAEB.9060602@gmail.com> Date: Mon, 11 Jan 2016 11:40:11 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <83si24ktzh.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PJcjDpIni6UoJvin21qd4PvSjwKpGBfJ7" X-Provags-ID: V03:K0:Y4qzDz2IqlbifqWAv00dAxLnRfBnSCMGHf6ByJQt2hHgP4sJuUD rPhhjJ3a++ZP42iuK1UvNd7HmayYeNiNPyoYymykQs+CpYoJUv7lGjL0JNCwjviLsJ/fEOf ZBNKA11k7CT7QnuXx/zRW2Wj0U1gxsq71X5YYLC1zew4sbeXaM7hhBOHnXGC/5/wZvpGXRG Sk9KSKNimtzZoiNL0fZ8A== X-UI-Out-Filterresults: notjunk:1;V01:K0:mNlAma94QDk=:1CTQyM21Ph9REW89DOjGHk wq/747gSvHopWJyur8yBcgNSC9Gp4wlfODZfPXFt7wtl2jTzRCMTKAeBRUT3zoplcJyvGyRX9 B9GKrBJzgdulZe1XUCptdbKt6YgaSBYFyl26y+p+UExvdV84ZWlCdsUy+x2oS4qctScAJ7YkJ qohfPU3SXJyF/ThsaTawt7BOzggPHS4FQMH+6wqv+TL5/7aMeiXzMrA+vFxuZOdGeFgYlr0mz jWMcthBYegbY1cW1+aSfbGlhBWFMn3Bx78MutRNttlU1uUmaoD0G8Q8Qq0VfgcxOpSGD90YgH XEp9pdBKDKiX6jzsku8i9YCEUwGBPJ1pF2KUM78hmdWOAQ5aePQjaOpU7iA77f8zYyg0twb5N ZWw7gXSmQQP9qKpqH+5M79x2HpgcjjZWjVh2TE/PJv2AHpAsTbzzm3hscRpPaIBeDZthzX00x tqd5UWrjYc5RM5ni4FoAw5Vb7SwcuGQRghvLGyS2zARNBbjrCyuzu0F6LKj8RupE4bAGhlfvc SVUBGz+0eQfahLVeRYuWnWTmoYaJh1nZYKhApgPgtX9Gww8nVJBUO04CkBw2q8pAV4EtM/OwJ 9uxfx8UnbFIgKwJcdFifIzklyHJ/4vU1pb+qvzdaq7oQ0PxJTbTY1Btx64GoDxkwPAFgSuhq+ zScsRx2ZeLwdNmffjXKdFwM/0/9cw1Atd1Ou2uMNdo5EwzPHWYqYNikksuTAGLPUWQu0= X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --PJcjDpIni6UoJvin21qd4PvSjwKpGBfJ7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/11/2016 10:37 AM, Eli Zaretskii wrote: > If I modify your loop.cmd to have the following trivial command: >=20 > @cat > foobar > > then Emacs doesn't hang, it happily writes those 4097 bytes, and after > that, I see all of them in the 'foobar' file. Moreover, I tried the > same test with 100 times as many bytes (i.e. 409700), and it still > worked as expected, with all of the bytes ending up in the file. My Windows doesn't have cat; maybe you installed it through cygwin? However I tried with Python, and indeed it didn't hang. It seems I oversi= mplified the example. > So someone with access to the programs in question will have to step > with a debugger through the code involved in this (I can point to the > relevant parts of the Emacs C code), and find out what goes wrong > there, and why.=20 I don't think my Emacs experience on Windows is quite sufficient for that= , but I would be happy ot help if you can guide me. Bear in mind that at = the moment I don't even have a build chain set up for Emacs on Windows. > Alternatively, if a reproducible test case can be > posted with a simple program which reads its stdin and causes the > hang, I will try debugging it myself. (By "simple program" I meant > something that won't involve installing lots of other packages, > ideally something as simple as a batch file calling 'cat' or a similar > program.) Thanks for offering your help Eli. This is the simplest that I can get fo= r now: Assuming node.exe (installed using https://nodejs.org/dist/v4.2.4/node-v4= =2E2.4-x64.msi) and jshint (installed using npm install --global jshint),= here is a new recipe: * This hangs: (let ((process (start-process "bug" nil "node" "c:/Users/cpitclaudel/App= Data/Roaming/npm/node_modules/jshint/bin/jshint" "-"))) (process-send-string process (make-string 4097 ?a))) * This does not hang: (let ((process (start-process "bug" nil "node" "c:/Users/cpitclaudel/App= Data/Roaming/npm/node_modules/jshint/bin/jshint" "-"))) (dotimes (_ 25) (process-send-string process (make-string 4096 ?a)))) Cheers, Cl=C3=A9ment. --PJcjDpIni6UoJvin21qd4PvSjwKpGBfJ7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWk9rxAAoJEPqg+cTm90wjd/0P/08NURozj71B2mY5wRP7t4hi WvzkNUCqSDMH0e4NPZi9J/FCf97oCUv6tR0rV6QXSAJ9dockUopcdURPwErK4PkZ 5Po60lByBd/M9iexLJSrVfDUVkyZcdu96aK4ZZ7elO72YEj0qm6+CJl4hLBQbt2E jJYm90nMKYm+RR99IVl+Nar0bMaxr2vZgH+zqNRShO9hXusQwjbUFMGiAC2KBTYy XWBxrpNfMyAnxUBSJWM48PGCtdb1czlpawvSTeL5FgPtEoi/BHlXO2RkUhwYe60C FgcXIYnHa4VA/7Ihqxnee+m0ytsZCEc/fR/1f3raeR9replkscWNBNvLA9/nGthD 6EsGLxm3q0uUn5K8MGPXLfmViB0tFtHSiquOERneKKhvZ/9omyIiQ/uhtyP2kI59 Est5Ay0BWR/AxwOJyvNQdM/TN6n6hJ/vYjXmCjVgjVIGKsktb0UiiSX/ZTOkdCea ocpb7RqKuf8US7N4Ku+PMYV9xijYfUX5tlQdA1vHP1olKd6FjG9qGA/tgqtB5w4A OWQywNeD/rRfBwDuOfmlI+vqafjMWRhUW2HaQcuT+h9gB/l9RsBMJzcegQydsrOm nyIYOv0bProW06hFEypw9+K80MliyOtqVtZPYkVPiy5RSC5VQO06MeEKkp9qV98Y 76ONVcx1WHC2bRwA2eDF =JwQN -----END PGP SIGNATURE----- --PJcjDpIni6UoJvin21qd4PvSjwKpGBfJ7-- From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 16:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 22344@debbugs.gnu.org Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.145253114524145 (code B ref 22344); Mon, 11 Jan 2016 16:53:02 +0000 Received: (at 22344) by debbugs.gnu.org; 11 Jan 2016 16:52:25 +0000 Received: from localhost ([127.0.0.1]:46675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIfhh-0006HN-2g for submit@debbugs.gnu.org; Mon, 11 Jan 2016 11:52:25 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:62928) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIfhf-0006H9-1K for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 11:52:23 -0500 Received: from [18.189.87.242] ([18.189.87.242]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MKr32-1aIfhZ0exM-000197; Mon, 11 Jan 2016 17:52:17 +0100 References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> <5693D43E.4000804@gmail.com> <83lh7wkrgz.fsf@gnu.org> From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Message-ID: <5693DDBF.3010802@gmail.com> Date: Mon, 11 Jan 2016 11:52:15 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <83lh7wkrgz.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GDnfbgKxjw9CxK9uubHAHEMNmRVs6efDR" X-Provags-ID: V03:K0:quz94Q1B/waYeMm2sxR5ZeEHNJq7XRrr+YUYeoYEFzySz+Z6joq PySJaeLDvSiCoJzGT3fBb3Ft2yTbfGmuZgABqrwpB6+/gFNsg2XaCNtGA8D1O2rdOJzo3vF WGbotgas4pFPfXJI+JfejGjpZWW7fCazzeD8sxJ1iJ1heuoh8M8bC5s4grS0yh48Md9P/cb YDaT7xDdJZQpNP7CdWqIw== X-UI-Out-Filterresults: notjunk:1;V01:K0:G2KL27Aq0wo=:oFwkynJyrHoyJ6Xc7bJ43g Uq9TVY5Og3sy+SB6tw1b69J5giImlxGQ1SZWIvIAMLks4/umGdjUS4NrXPULbWFyr7ZxrxEDB PALs6hk9LfeIs49lgKMa04859PKLRfKVefppd5JRCYwlzzdA0x8LT2eqqQZGHdXHrSgTDsl8w Pz+YKiuRZJytAFEuc2DpBigHKMWv2x2AOmo8ZqascgTdR/b5Dg/2spVVWWmHOVAZWcuMkMkSm +7bATLZlOy5zd1veA0L9sxR3mC0GJ7CcZt2aoHkRU6KNCakOCL3+ySP1TOLGjS96zSpbPnMgH sgybZaM/6QG3+MTdojtqFk7DviBvqtpEtf6lej0KrsFbvvHZqZYQ/oZ3Cocdq1wO8bs0d8bCl xtKG6E39V08JOg38G2brhJoxpM/J7891CdnI1aJuMnyqfFL9H6wIIevu6emRiwSPujh6/TMyK 9vrtagGUM/lq2sjHjN3bxoYcMOVohIV97eFl4HOIcNlaIHFwVVn7RZ9Aa62eVhQLtffUa/n5j igQ18rhhYLgG+9T8TDkKGH/qMgyrpbhfq0VYrpo+PYHKOMTCJ0MAMsjYBkCF3jDlyC+HeGLMR crfywx7MyeYcOGW4JRjTeRkaE0TRYijGiOKuhgcWDjrNawPHY0PO7DhNQPBjLMTNiwgRo7Mjo d/oXG2zK7UCf5tIjbSf3QjertAMm8BsUhO6aExhdTvmUkffjx3amWKmVhzLvMGvEbmbY= X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --GDnfbgKxjw9CxK9uubHAHEMNmRVs6efDR Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/11/2016 11:31 AM, Eli Zaretskii wrote: >> Cc: 22344@debbugs.gnu.org >> From: Cl=C3=A9ment Pit--Claudel >> Date: Mon, 11 Jan 2016 11:11:42 -0500 >> >> Thanks for looking into this. Would a recipe requiring node.js and jsh= int be too much? Node.js has a windows installer and jshint can be instal= led with npm install --global jshint. >=20 > I'd prefer a program that doesn't need to be installed, and ideally > in a language I could hack, if the problem is on the other side. >=20 > What's so special about these programs that they behave differently > from 'cat' etc.? What language are they written in? I have no idea: I don't write Javascript, I don't use node, and I don't r= un Windows :/ node.js seems to be written in C. I will try to remove the jshint dependency, at least. Cheers, Cl=C3=A9ment. --GDnfbgKxjw9CxK9uubHAHEMNmRVs6efDR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWk92/AAoJEPqg+cTm90wjIuMP/2qI7tWDS4g8BNAvqXlbUOy1 8uHaUw+HEJ7SyHxNqXsxPlsc2dIi15CqaT1aByJgmSMapK+3Iqnzm0pUhTThQCxF BZwSnCcGG8VXzKBvClu2UJdrrDje1IpBa5MXX47qQf+YluN30ylDcGEcW676gU8G NNQpvz2epjyNpUyHc2nxQ5HyLRClW9IDTiuqK16cLYH74Cfdam2juyo64qtzt/rb pofoxOpGoSUGEvF032UU91rA+nPOlgAaEl8PChiTE9fCUg/E8AdPsJbmnSmlOnCC acLeel7nJGrhWIYKslqBBx7VDO2Cm/crSFl0HECfE8AEWYSyuuT0unj67PCnbmha 493HBReJOWz6lXEfTICZJhVSeVhSJcc2nhTxucJZZZ5NCk2nVNiHja5Xsp73Ap4O f7rNZdMb0b0rx/OMpUQcsvBYEDfigIJrB3+UCNo4Lhmgnq1YuzmtFLFV37qyxprE wU3qqK74I/tGaZNChuNCHuA0cmUL+NCg8QAkEZM58uacOsWBDQjXsO4VxN/Yvcmx LjWKBJpx0R5Z4tDisC/oE5XeGEhiCdYNsxYcJh7nTGmdXbvsv56sa6QKlbFySWd0 ni3ymu8FJVG6OOtGiB8KZgXXORMxNvTf03BO6/8+yQSTYytwKo3ZQoWluWD59Naj x3eTaKnD70jmRuoE+/4h =OvUl -----END PGP SIGNATURE----- --GDnfbgKxjw9CxK9uubHAHEMNmRVs6efDR-- From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 17:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 22344@debbugs.gnu.org Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.1452532723422 (code B ref 22344); Mon, 11 Jan 2016 17:19:01 +0000 Received: (at 22344) by debbugs.gnu.org; 11 Jan 2016 17:18:43 +0000 Received: from localhost ([127.0.0.1]:46702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIg79-00006k-Fq for submit@debbugs.gnu.org; Mon, 11 Jan 2016 12:18:43 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:61923) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIg77-00006U-MG for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 12:18:42 -0500 Received: from [18.189.87.242] ([18.189.87.242]) by mrelayeu.kundenserver.de (mreue002) with ESMTPSA (Nemesis) id 0LbDic-1ZtlPV2CMs-00kvK7; Mon, 11 Jan 2016 18:18:35 +0100 References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> <5693D43E.4000804@gmail.com> <83lh7wkrgz.fsf@gnu.org> <5693DDBF.3010802@gmail.com> From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Message-ID: <5693E3E3.7020304@gmail.com> Date: Mon, 11 Jan 2016 12:18:27 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <5693DDBF.3010802@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uGOEF2C7CwE6rpHmh5dsLMMt5JdesN8Q7" X-Provags-ID: V03:K0:/24HZb77yJmyk8AUqWViHabHOBYz9giMw+cDS41u3f370yo78Yu /qLYQJlM8/XVEQkDrL0qP3Fw1n7Pb/j/4Tnbsn4eGPnow1/FWNobcmctqELfmqU0bbCyiy+ y2AvnC63RjIQLdFhNl7tZRf6NIeie3AJEePKqkVHFYlForkOP7/U5+mpzHjRs4B9bVJLr90 Az42gTXdtHFw9/e0S4Umg== X-UI-Out-Filterresults: notjunk:1;V01:K0:6ke7zRT/Lk4=:mvO7+hpA+T6lDAB9FGV5d0 IEIpgxMGwNRlwRs+G5IB9zk3FbKHiD+YoVrV4Paj3TiHJcYSKeWfZZKUjmQ6bNDYIHr7r8qsa C1lShHtPZ1taO1J7fzoYnqv3soI+1yg3+ib4GJGlybwNL0uaWptW5quCwbiSfCmq8jPbcJvOp J0yu7oQneMtGKqTUYwTA95sDs4Borh3Yb6/3x475RxYau8yt6VL0/fXzNGk5UKj7fZ8cKK1dK Ae4fFGNfNs8EAOW8/+dBpFZQekjS1kTaRRn7Mn64tWHQzzBMsD3DxiFmLWs90Twj1LU0WD0Mu FlKNAIeBneSAezDYHawA++zOjgYDLtRfy31KylGUFUJh/GZ7PWkX8KB8/u8FvCV5MH9vYe2d/ R8ruQt60nD5DatM2p0SXtpIMO8T42K9euQ5ngwIYpUCoUFRbqrKRcsm1ATF81tX+lS4cY6ElU moAI86XyDvCQ5OxLBA+Mqp5Txdrie4cvwRcqKvnJZDIRDYGzrnJ29YVLytfMXizvfYPbMg0My LasymkT+q6tsqvBGfXp4cqIz+4vtfIUEyat585RQ79fO/BM1QPP9PF+rQTFtC6wO9W4eNEhJt bNtHbojt3OQBfQaiojPiQiEyhbSfwFi3d65hYWZgcrlZVr+sgws8l4iEKQ36PEJfLiKSLUgAV mwHbgvpktdwlP0rP4KZ2mBAydw8ZsI/TSF3ee3lqx99+D3brDqpuc0pewxPqTCH0Siwk= X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --uGOEF2C7CwE6rpHmh5dsLMMt5JdesN8Q7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/11/2016 11:52 AM, Cl=C3=A9ment Pit--Claudel wrote: > On 01/11/2016 11:31 AM, Eli Zaretskii wrote: >>> Cc: 22344@debbugs.gnu.org >>> From: Cl=C3=A9ment Pit--Claudel >>> Date: Mon, 11 Jan 2016 11:11:42 -0500 >>> >>> Thanks for looking into this. Would a recipe requiring node.js and js= hint be too much? Node.js has a windows installer and jshint can be insta= lled with npm install --global jshint. >> >> I'd prefer a program that doesn't need to be installed, and ideally >> in a language I could hack, if the problem is on the other side. >> >> What's so special about these programs that they behave differently >> from 'cat' etc.? What language are they written in? >=20 > I have no idea: I don't write Javascript, I don't use node, and I don't= run Windows :/ node.js seems to be written in C. > I will try to remove the jshint dependency, at least. Hi Eli, Here is a simplified test case, which only assumes node.js: * In a file C:\blackhole.js function blackhole() { var stream =3D process.openStdin(); stream.setEncoding("utf-8"); stream.on('data', function (chunk) { process.stdout.write(chunk); });= } blackhole(); * Then from Emacs: ;; This hangs on Windows (works fine on Linux) (let ((process (start-process "bug" nil "node" "C:/blackhole.js"))) (process-send-string process (make-string 4097 ?a))) ;; This works fine on both platforms: (let ((process (start-process "bug" nil "node" "C:/blackhole.js"))) (dotimes (_ 25) (process-send-string process (make-string 4096 ?a)))) Do you think you could run this example? Thanks again for your help. --uGOEF2C7CwE6rpHmh5dsLMMt5JdesN8Q7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWk+PpAAoJEPqg+cTm90wjU18QAJzyAga+imKryUrpgjTBykRc ssABdYC6YcaVrT4iUTj/g5mMuwHDADIY0PpUkEYhG2Jbj0Sfg2+n+NZYEx6b9XTk UGtegrnj+g1i6TGBnjjof5JD55AOF73wTBmHT+KfcsQ8CjEsHJzeQt2/gbn6PlHE GnB+diQt1yhcR3sLt/3KG5V57/G9VBnKtcx+zIDlC23sAOVCd6Z2aXGwwoPWHQ6a aKjLIluz6uaJECer7vEkVW8uTekXOsOd/dgK4VILdx3pRsvHFNETQbsCL5iroA8x e4wPRk23c4TnhONxvdMxuCEbyd5+xkOJtEx1qHvs7mePtMlSRZKAliMxDqzky7nX iLdhORWNpfVmsN1y8TRJcWCG4lYKW9mXi7M8wLBvPF7HjxZ+ex35zgkJA781k1ui pEJ93537IBAQNJDveWbeAvBsPxOHnsuhGNVq+yonAnJqqgeOiSv/egObprdhORAj /nn/dEQK2T8qsULWlRhlLdO47ZtXu8lQSFNBBd0kGNlFLY/m1PiJNtkvd2lRUwlR /HYv/DtwMsSZ09RF7Yb6K6Bm16paXHcyd9yT3GRI5LF9dNrSa4AH82VWH2Eb3YNj WndMnfieQ92064qCy1/u0rcY3pYSRZ/LnwZecvHYkqYCjJ+74WmVv4cL60kqDRs5 N5aFkyGIX/64bQKY+i4b =iJYj -----END PGP SIGNATURE----- --uGOEF2C7CwE6rpHmh5dsLMMt5JdesN8Q7-- From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 17:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Cc: 22344@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.14525339792352 (code B ref 22344); Mon, 11 Jan 2016 17:40:02 +0000 Received: (at 22344) by debbugs.gnu.org; 11 Jan 2016 17:39:39 +0000 Received: from localhost ([127.0.0.1]:46714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIgRP-0000bs-K2 for submit@debbugs.gnu.org; Mon, 11 Jan 2016 12:39:39 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40590) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIgRO-0000bd-5p for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 12:39:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIgRF-0007JR-36 for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 12:39:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIgRF-0007JL-04; Mon, 11 Jan 2016 12:39:29 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2045 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aIgRD-0008Nt-6l; Mon, 11 Jan 2016 12:39:28 -0500 Date: Mon, 11 Jan 2016 19:39:32 +0200 Message-Id: <83io30kobv.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <5693DAEB.9060602@gmail.com> (message from =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel on Mon, 11 Jan 2016 11:40:11 -0500) References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> <5693DAEB.9060602@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 22344@debbugs.gnu.org > From: Clément Pit--Claudel > Date: Mon, 11 Jan 2016 11:40:11 -0500 > > > If I modify your loop.cmd to have the following trivial command: > > > > @cat > foobar > > > > then Emacs doesn't hang, it happily writes those 4097 bytes, and after > > that, I see all of them in the 'foobar' file. Moreover, I tried the > > same test with 100 times as many bytes (i.e. 409700), and it still > > worked as expected, with all of the bytes ending up in the file. > > My Windows doesn't have cat; maybe you installed it through cygwin? No, it's a native Windows port of 'cat' from GNU Coreutils. > However I tried with Python, and indeed it didn't hang. It seems I oversimplified the example. So what do the offending programs do differently? Can you describe what "jshint", whatever it is, does, it how it reads its stdin? Does it also write its stdout, btw? > > So someone with access to the programs in question will have to step > > with a debugger through the code involved in this (I can point to the > > relevant parts of the Emacs C code), and find out what goes wrong > > there, and why. > > I don't think my Emacs experience on Windows is quite sufficient for that, but I would be happy ot help if you can guide me. Bear in mind that at the moment I don't even have a build chain set up for Emacs on Windows. Do you have experience with GDB? Also, was the Emacs you have compiled with debugging symbols? if so, I can tell you where to look. > * This hangs: > > (let ((process (start-process "bug" nil "node" "c:/Users/cpitclaudel/AppData/Roaming/npm/node_modules/jshint/bin/jshint" "-"))) > (process-send-string process (make-string 4097 ?a))) What does jshint do with the stuff it reads from stdin? Does it read single bytes or larger chunks? From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 17:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Cc: 22344@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.14525346743506 (code B ref 22344); Mon, 11 Jan 2016 17:52:01 +0000 Received: (at 22344) by debbugs.gnu.org; 11 Jan 2016 17:51:14 +0000 Received: from localhost ([127.0.0.1]:46732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIgcc-0000uU-CM for submit@debbugs.gnu.org; Mon, 11 Jan 2016 12:51:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44976) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIgca-0000uH-Te for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 12:51:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIgcS-00029w-Mr for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 12:51:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIgcS-00029s-Jh; Mon, 11 Jan 2016 12:51:04 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2204 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aIgcR-0001Dz-Uf; Mon, 11 Jan 2016 12:51:04 -0500 Date: Mon, 11 Jan 2016 19:51:11 +0200 Message-Id: <83h9ikknsg.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <5693E3E3.7020304@gmail.com> (message from =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel on Mon, 11 Jan 2016 12:18:27 -0500) References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> <5693D43E.4000804@gmail.com> <83lh7wkrgz.fsf@gnu.org> <5693DDBF.3010802@gmail.com> <5693E3E3.7020304@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 22344@debbugs.gnu.org > From: Clément Pit--Claudel > Date: Mon, 11 Jan 2016 12:18:27 -0500 > > Here is a simplified test case, which only assumes node.js: > > * In a file C:\blackhole.js > > function blackhole() { > var stream = process.openStdin(); > stream.setEncoding("utf-8"); > stream.on('data', function (chunk) { process.stdout.write(chunk); }); > } > blackhole(); Thanks. Are all the affected programs written in JavaScript? Do they all set stdin encoding to UTF-8? If so, does the problem go away if you remove the line that sets the encoding? > Do you think you could run this example? It doesn't run on this machine, I guess I never bothered to set up JavaScript on it. From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 17:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 22344@debbugs.gnu.org Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.14525348153715 (code B ref 22344); Mon, 11 Jan 2016 17:54:01 +0000 Received: (at 22344) by debbugs.gnu.org; 11 Jan 2016 17:53:35 +0000 Received: from localhost ([127.0.0.1]:46736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIges-0000xr-PU for submit@debbugs.gnu.org; Mon, 11 Jan 2016 12:53:34 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:54229) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIgeq-0000xb-Cu for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 12:53:32 -0500 Received: from [18.189.87.242] ([18.189.87.242]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0MJYNz-1aK3ZP2rDX-00364L; Mon, 11 Jan 2016 18:53:24 +0100 References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> <5693DAEB.9060602@gmail.com> <83io30kobv.fsf@gnu.org> From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel X-Enigmail-Draft-Status: N1110 Message-ID: <5693EC13.8050003@gmail.com> Date: Mon, 11 Jan 2016 12:53:23 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <83io30kobv.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CAnprwgI3EFojhtJ1nQ8Wa3llj3lCxq1S" X-Provags-ID: V03:K0:llGT3+ozUtdaB5INw/USyrQxRsRggQIEmYQPfjmRTQC3pAN1pYc Y5tMHx4QyyIB3SLX294PdyCBoZNs/AOWoB5UdxVuj+Y7pzWiCmPAaPBOXnVjlKdUSkJ3OnJ Haf1phGasF3gGh9bYmEFsebkJ48hdhvfCxaIl2lnBMhevtg7F+0K8jczkoe8XG7i6vlADfu on97V+IhUdmNuB+VQvzrQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:G9qrIABEkZA=:nhqCOl+kYMnuJSnoCcQehv oTeSe4gj6KyUYCGBn61/hFpOztC/bjBvreB5GhAPo47YOVLObVl8SBUPkJOpS2SU/JH1XK8dU 7e85EUdSArTZyo4PvqPNS4ODb/n4KgwGRfRnutp/GwlmGT+hYEjWo6J8TRKR62J28rWYlJRbA 1b7dMfN/9Oq8CHKBTH5sUGQ7X5qWC35fJMDJnpcxd0JeymDDKcfWT7zg9eyUxSz45GWaJkl6S NhshRFsCk4V8RbqNQabm/SrVC8dBWhOtLNAZukPrhVDGFfqlHsXk8FDzOZOMsA+XQwelbqNYX ICUX+DmYA83Nky6HmCawtjKZIhNwRqvhoKkzysV+SfIMMLsPnKn1fRkIAZjqf7+4WN7uC4B9a 4RXJ2RlXn3S2xZ7XqbSI7aQcZezUjYt7Z6LQ54j93//fJzGPunOS5eLSGhjlYu/ID8iTOVMv/ d9fDsFxhtWBqP90m8/wBbuRWzbv3gmDFVaU80hf3QzqrlCtdW3RTyOJAObc4y3kj9325OYrQ5 sU1ZXS5sex5ovLSQl2+5q0nlxWrw47xeW1nBZ5ElSwr5EX6vvQjYrY9tWOgoSX134wihoKxS7 eNbltNesgtID5ADErHwXDJPNX3CSKZh9ofq1JTXCRCAWP56C9qcfauiR0RYGkjVoIScwohIrN 9ewliG1n22P03cVOMpY39qRIx0RGJDq2fgiChemSxh/hHZMc+s3YQSm4oR97EC0K8+cE= X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --CAnprwgI3EFojhtJ1nQ8Wa3llj3lCxq1S Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/11/2016 12:39 PM, Eli Zaretskii wrote: >> Cc: 22344@debbugs.gnu.org >> From: Cl=C3=A9ment Pit--Claudel >> Date: Mon, 11 Jan 2016 11:40:11 -0500 >> >>> If I modify your loop.cmd to have the following trivial command: >>> >>> @cat > foobar >>> >>> then Emacs doesn't hang, it happily writes those 4097 bytes, and afte= r >>> that, I see all of them in the 'foobar' file. Moreover, I tried the >>> same test with 100 times as many bytes (i.e. 409700), and it still >>> worked as expected, with all of the bytes ending up in the file. >> >> My Windows doesn't have cat; maybe you installed it through cygwin? >=20 > No, it's a native Windows port of 'cat' from GNU Coreutils. >=20 >> However I tried with Python, and indeed it didn't hang. It seems I ove= rsimplified the example. >=20 > So what do the offending programs do differently? Can you describe > what "jshint", whatever it is, does, it how it reads its stdin? Does > it also write its stdout, btw? >=20 >>> So someone with access to the programs in question will have to step >>> with a debugger through the code involved in this (I can point to the= >>> relevant parts of the Emacs C code), and find out what goes wrong >>> there, and why.=20 >> >> I don't think my Emacs experience on Windows is quite sufficient for t= hat, but I would be happy ot help if you can guide me. Bear in mind that = at the moment I don't even have a build chain set up for Emacs on Windows= =2E >=20 > Do you have experience with GDB? No; but I could learn. > Also, was the Emacs you have > compiled with debugging symbols? if so, I can tell you where to look. I would guess not. >=20 >> * This hangs: >> >> (let ((process (start-process "bug" nil "node" "c:/Users/cpitclaudel/= AppData/Roaming/npm/node_modules/jshint/bin/jshint" "-"))) >> (process-send-string process (make-string 4097 ?a))) >=20 > What does jshint do with the stuff it reads from stdin? Does it read > single bytes or larger chunks? I've created a simple example without JsHint (in my other response). It s= eems to read from stdin asynchronously. --CAnprwgI3EFojhtJ1nQ8Wa3llj3lCxq1S Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWk+wTAAoJEPqg+cTm90wj3FkQAKs6zg3zyYk99N/CHlg3ksdy VAeYZJ9RsS3RBIcbd3S5JZJJ/Nu0gg1KWCckIjOCotZalmHk/D1ph4RAF8Ub2v7G 3SdOUeDb6TeyndKXw3WnaylI+SxpvS7dgnQs8XoYRlQjtkc+0rT0LUfFIvSM/l+a 9/JE1CYVrnOErm6O3Z8hSHelcE0oRLIa1us051QiRUCu2qkCq+910KfWBVEvLOr6 ngpey2Gfih+yr6hXRkizeABb3cuJ9IJLkiOFgkSGfe+Kz886qUenpojIehXRqHZ2 J5bXAL6+NCW75VWuEnhvhLI5Cks4QB/j3/GXJRJRdypeZlmZcnLtktwgy96aYruW v091LXDil+E0DjSRRXJ1yfE5jJ2z06KfCHLdOhV5wR5nn5lBDeJtArE5gul9WE5N PmWSXkotK5s6oGoKf9jORpEtFrv96ni8F8DI7Pd0Kz8nr/U+n2Wc4+8+xWreZPUX F1zn5668KomGySmxgLkZnToh8XqlhKgcOHphx/OH4/UWBNtONxDhbHS8yqGqby3h ou952aKjzBbxuSyjlSxFcZso/NhjBFxLUUbB79M3nvrXFHutFlxLW0G5YLBDcUOm ASYIdUbClMJKecnGU+6IdknwAis1osLYJUQbYJpsF653sesPeFt2uglZddJsHIOM MfCmJvKs4vBR3fOMuXJ1 =j37J -----END PGP SIGNATURE----- --CAnprwgI3EFojhtJ1nQ8Wa3llj3lCxq1S-- From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 17:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 22344@debbugs.gnu.org Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.14525349313924 (code B ref 22344); Mon, 11 Jan 2016 17:56:01 +0000 Received: (at 22344) by debbugs.gnu.org; 11 Jan 2016 17:55:31 +0000 Received: from localhost ([127.0.0.1]:46740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIggl-00011E-63 for submit@debbugs.gnu.org; Mon, 11 Jan 2016 12:55:31 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:51592) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIggj-00010x-L7 for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 12:55:30 -0500 Received: from [18.189.87.242] ([18.189.87.242]) by mrelayeu.kundenserver.de (mreue002) with ESMTPSA (Nemesis) id 0MD2RP-1aQdBI1pYZ-009flq; Mon, 11 Jan 2016 18:55:23 +0100 References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> <5693D43E.4000804@gmail.com> <83lh7wkrgz.fsf@gnu.org> <5693DDBF.3010802@gmail.com> <5693E3E3.7020304@gmail.com> <83h9ikknsg.fsf@gnu.org> From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Message-ID: <5693EC89.3080505@gmail.com> Date: Mon, 11 Jan 2016 12:55:21 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <83h9ikknsg.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tx70cggFvsuRrGUfgR5QNoVv9BOfo28jB" X-Provags-ID: V03:K0:eLzrYtOucKrrOcV7j+SYRFdAdh5ydd9miYrqtPaOmxnPIBDOVba ZF8P2yx2NZ7pOkFHTkCow2USQJSGj6qHIFpp3JFWZHhiDB6087zgmcIdW7xr4pNJoiRyari JyNTN6EyMpfVu45E5TRkTKShQRm518gE35dSrhauy1ZXzTvxyyTwtwm9N4g75NnDJrgpR+L bhMiNc82HNXCSnCTcc1/A== X-UI-Out-Filterresults: notjunk:1;V01:K0:bWOik+rR19o=:CijuuA4SAqSlA8lefBcrI+ 1gYGmyDj5F1EPdzaI+s0TiVF4i/oEdxc8IvMWEPg1phsQX5u9hF0i67QS3ea7Zyuq0yGISeMu 4gc7umbAR0nwVqDirtdbY+nfnmOycpFxSdQxkwNq/vN5NDRd09Jk4l0cEZbritfS7YBCwbTwv MugiMHguVKMzo26Ij9SM6FA61rrdCzroncu5j4h1CJg7u09YVKIQOzN3zQ+7tzABeX0ViarAR STGqU7TjxZaXV3oIDYIlKLhGjLgJ6yJiiOcya4NIXwEHpwUeY0FE6UiaABkrFJDWY5URp4wdz DAQJlhecF6XxY2/KcBaRQSfphvu0H9NEXOWjfZxDKUgzlG6/iGbEdnsHjY5Qgmqq1clBHKsE1 hZFRJIauU4I1Q5M5CxypiFisOn8Ao9COvbN8yzVI9Xekr0kF7Zc+WxomPV5MH5ng0mz4noxv2 T7WJ/USO1V2ll/VXUQQzO7/C4rJbZ97Y9XYaROx+GZXhziq/nXI6GoAxqrg2+DAE4DUhzS4ax FAdLwITBHwCUX1SzbWUkux1hqfyAevR66jqbHM5CCCr/PM4gUJFnAbYqB1kqHK0pw2OKhJdL0 7b5mKEmEpVsunXNft/Q3fSG5OBJ6awMsKIE3Ol/DJ41S38Gih+ETGytSawUsOnWCZgqcPbLYc K28vsFMMINgK0NkFU7AIlO0RSH9IItjwBz9BFryf6V+HMwep5DpDGB0UCyRe8SkR5i/A= X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tx70cggFvsuRrGUfgR5QNoVv9BOfo28jB Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/11/2016 12:51 PM, Eli Zaretskii wrote: >> Cc: 22344@debbugs.gnu.org >> From: Cl=C3=A9ment Pit--Claudel >> Date: Mon, 11 Jan 2016 12:18:27 -0500 >> >> Here is a simplified test case, which only assumes node.js: >> >> * In a file C:\blackhole.js >> >> function blackhole() { >> var stream =3D process.openStdin(); >> stream.setEncoding("utf-8"); >> stream.on('data', function (chunk) { process.stdout.write(chunk); = }); >> } >> blackhole(); >=20 > Thanks. Are all the affected programs written in JavaScript?=20 Quite possibly. > Do they > all set stdin encoding to UTF-8? I don't know. > If so, does the problem go away if > you remove the line that sets the encoding? I'll check this immediately (I need to reboot). >> Do you think you could run this example? >=20 > It doesn't run on this machine, I guess I never bothered to set up > JavaScript on it. Normally, installing node.js from https://nodejs.org/dist/v4.2.4/node-v4.= 2.4-x64.msi should be enough. Thanks again! Cl=C3=A9ment. --tx70cggFvsuRrGUfgR5QNoVv9BOfo28jB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWk+yJAAoJEPqg+cTm90wjJ1MQAKDhpnBeAXcrbfckuDVbdjnN Lr9qjksEanRR3FQuTxda9QsPwv3zSX9Pj+CzlauZRslzPOBj5D7HkhtduMWLEOjD kyDzIA2KyfA5G8rNAoJinwUdj8xqkDdVSAS4DPMP13RJl4sfIuou/pDsNHjUGmsZ 9eH0RE9ZT0RAz87wn9CP7DGICBc3DWBY7mIHkxNgyBokweW6US9PhS3f6ZgNcGS4 zRSParlWKr8FG3Mva9O5bGOOxvhnMONSl5FoqjlHGEjeAxCF4IGQ8g/eJuI1zliO U2ZMp9vNbXj0oO9ywyKTx6yJsOkJEk3fk/WzHzW3G6D86PGxkPeJxp1hUoz9Rx1A kqZ35jd/tB1cEP/ZTV5XGkKaAbvxtfjFGiCPGjTSjySKVIXxHvPVH4X9Wp6xwAuN f2Uq+neSzsjizcXIf+379AmLHmH3trJqIfwck2cITO81zTrMmdJT/YVSw2vdjDUp 2kCuzQLGU4QGoZy1lq33ECnCrEyhKfxA413Zr/mkYBhQWiTQd4jij+t/YvzG5wPn 2aP9f+8wkM4T8oQ/FGHaW42recVz7tqMM2rPD7MzG+tyUX0JZhPKjfqiEEQTRbEP pr2sS+TJeUOoybEKr6t3a8lzTmpHLT7BJdYwBoZtjo9WP5ozM85fXRHdFveyUAqX wOxs+jWtYycJxfLRakvF =Ff3g -----END PGP SIGNATURE----- --tx70cggFvsuRrGUfgR5QNoVv9BOfo28jB-- From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 18:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 22344@debbugs.gnu.org Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.14525353844710 (code B ref 22344); Mon, 11 Jan 2016 18:04:01 +0000 Received: (at 22344) by debbugs.gnu.org; 11 Jan 2016 18:03:04 +0000 Received: from localhost ([127.0.0.1]:46744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIgo4-0001Dt-C1 for submit@debbugs.gnu.org; Mon, 11 Jan 2016 13:03:04 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:52162) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIgo2-0001DO-N4 for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 13:03:03 -0500 Received: from [18.189.87.242] ([18.189.87.242]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0M1ygd-1a2FXw3vfH-00u2aq; Mon, 11 Jan 2016 19:02:56 +0100 References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> <5693D43E.4000804@gmail.com> <83lh7wkrgz.fsf@gnu.org> <5693DDBF.3010802@gmail.com> <5693E3E3.7020304@gmail.com> <83h9ikknsg.fsf@gnu.org> From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Message-ID: <5693EE47.9010209@gmail.com> Date: Mon, 11 Jan 2016 13:02:47 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <83h9ikknsg.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kF9GCBqaAhVwMEmp6lFi8jxeGqNRmcuBi" X-Provags-ID: V03:K0:jW2lUEwkGn6Odgb5TnaYOGc/gkCV0Z2kOEe/eVZWLQkplDCLxsO nRx5LWRZl4Do2NEzriJFfoq5kuI+XZOjzCOCK1vj6GMUnauuoQZosoA8aFqKk4wMEbS7fj9 Niaup2W+HiLnd72LSSsM12gcJDfwT8gFVWJjKkwtJ9URWOk+t0plNv3a/5+tG3Qt+tnvxwI N/IW9QYf3CvJ1r6jb5gyg== X-UI-Out-Filterresults: notjunk:1;V01:K0:hQzA4AfFv9k=:TjXUtBZvyD2yS2To5uGJ6/ CqlWVQ+DJgZTjAA8xpqtpl6jFHyMQCRQcFPB+yIjmFZGLvfmELZxVtdC8yFzjSDNQzX7POgM9 HWc9nb++HtuEX4kMUCQ4VdbslN/PyYEWqVE3hXNUi1gw+AdHU6lnjO3bOyLRsFAKwOcY96k1H YtZlJrMKvo00dVECvoCUO5BZa/mIcGwIPV2rYUkflKS+uohG34KLRQDIpKR2re6S+2h2anNh9 nTxqcaO+CXZ+x7jff7sC/R7bZpwyW2mZ2vYjp+f9Cc9Oj5YYvqCks5lgVkaOHW9ib0wHYSnC9 7Dsk8SUFcXPh5wvcobGUqF8bBWTo+6OOc7/nyC4gP4lEz0uikvh2daXH+sQkq/02PcMgPzBW8 mqFuJqV1gdIrvMydGfkr50utAPBvSUoQmUnOBe/cCES8fftk9w5Ahamzpm2dDVHDeZJpzytdw swgnVgku2AbPV4W7w73SJayKev+s3UvB6oS0Xk071IshLli7afcXXOS2npl88Gdx3LrfAmTZQ lEXAtXwyoCxe6fbGgmQZhRzMVBLos7r8gN1TqSgyMzZhqRpSkkY93W7bbJUhnRIgj930C6UxJ 3ln0XuxSELNQUDNnlYlZR4U4hQt1rN7WJrsXYmhtBQm7rhHb4PmvhOLb1ISchqPeDpRqtoxpu dZaluSNUdIIEcQv/d+19wUHfE7BBxh/wWSnUXlnZs2qg7OfIboRqxxuFmqPi7KXyr+/s= X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --kF9GCBqaAhVwMEmp6lFi8jxeGqNRmcuBi Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/11/2016 12:51 PM, Eli Zaretskii wrote: >> Cc: 22344@debbugs.gnu.org >> From: Cl=C3=A9ment Pit--Claudel >> Date: Mon, 11 Jan 2016 12:18:27 -0500 >> >> Here is a simplified test case, which only assumes node.js: >> >> * In a file C:\blackhole.js >> >> function blackhole() { >> var stream =3D process.openStdin(); >> stream.setEncoding("utf-8"); >> stream.on('data', function (chunk) { process.stdout.write(chunk); = }); >> } >> blackhole(); >=20 > Thanks. Are all the affected programs written in JavaScript? Do they > all set stdin encoding to UTF-8? If so, does the problem go away if > you remove the line that sets the encoding? No, the following javascript implementation of cat also reproduces the is= sue: function blackhole() { process.stdin.resume(); process.stdin.setEncoding("ascii"); process.stdin.on('data', function (chunk) { process.stdout.write(chun= k); }); } blackhole(); --kF9GCBqaAhVwMEmp6lFi8jxeGqNRmcuBi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWk+5NAAoJEPqg+cTm90wjFKsP/045bHggF2Px80UhuoOVr4Oi tUL6K9aavLYD5h7sEHSsRJev+zWWBPqvMGL90l/OD9Zkq3HCgkKlLzb5YPEPrfFz 9UpwBrP/gJ9HWU777boKmApXn/NvMW8YO4RrUvKzwTZU+DX/89oZE3gXjf7OUGf1 dKM8DuUAWMAOI966MwLfJovnrptCFEKlitY57iFgqTjxNGgHyqGmMnpR3uqmRXVB V+tHPFsmE7nxv5qM/jBeFQlb3SrL/5mKSFs42L3rlWOfDmNTj5xdfyj+owMAzovU gNDbzlGfTzO68OCa9qmLaBZq317BMCXzmtPWnx5ZqxPZpBy6bbhM84nCyLu9C38J FF55Iik13YhDyvHK68qoTm55AcUyJOD4zpAqnu3dWBHrdRkJ5uuZURcsk/bxOoYx QhnwvO/Zu0cBvfu5e/0fCrQF9tNVuEqjBUOHyCpKZQufURyHo5dC8j5++gB8g/T/ Sabr7QW+9E66sVqf7DGkXNiqEBYZaWI5AECg0yMlqJFJ6rDDbpz/emaaHIiXnoeY u1Gin6R9ldnuLbf1aqrJjqT7ZG4rNcrE6oy1pfIMR7uJKBsY0iVJRJktT1KDJWny e7Jt39PPkbmLC57xzt5RVMpcQG3pwEYjnEtha/4ViVL/OiR47++2VmH3aGMDXm4g C2iYDhhTG9QfGVqFersO =JoLr -----END PGP SIGNATURE----- --kF9GCBqaAhVwMEmp6lFi8jxeGqNRmcuBi-- From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 19:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Cc: 22344@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.145254084212921 (code B ref 22344); Mon, 11 Jan 2016 19:35:02 +0000 Received: (at 22344) by debbugs.gnu.org; 11 Jan 2016 19:34:02 +0000 Received: from localhost ([127.0.0.1]:46785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIiE5-0003ML-Pq for submit@debbugs.gnu.org; Mon, 11 Jan 2016 14:34:01 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47399) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIiE3-0003Lo-H0 for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 14:33:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIiDt-0004dp-KJ for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 14:33:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIiDt-0004dk-H6; Mon, 11 Jan 2016 14:33:49 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2902 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aIiDs-0005I9-Go; Mon, 11 Jan 2016 14:33:49 -0500 Date: Mon, 11 Jan 2016 21:33:55 +0200 Message-Id: <83y4bvkj18.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <5693EE47.9010209@gmail.com> (message from =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel on Mon, 11 Jan 2016 13:02:47 -0500) References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> <5693D43E.4000804@gmail.com> <83lh7wkrgz.fsf@gnu.org> <5693DDBF.3010802@gmail.com> <5693E3E3.7020304@gmail.com> <83h9ikknsg.fsf@gnu.org> <5693EE47.9010209@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 22344@debbugs.gnu.org > From: Clément Pit--Claudel > Date: Mon, 11 Jan 2016 13:02:47 -0500 > > > Thanks. Are all the affected programs written in JavaScript? Do they > > all set stdin encoding to UTF-8? If so, does the problem go away if > > you remove the line that sets the encoding? > > No, the following javascript implementation of cat also reproduces the issue: > > function blackhole() { > process.stdin.resume(); > process.stdin.setEncoding("ascii"); > process.stdin.on('data', function (chunk) { process.stdout.write(chunk); }); > } > blackhole(); Could it be that the script exits as soon as it processed the first 4K chunk, without waiting for the next one, or without waiting long enough? From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 22344@debbugs.gnu.org Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.145254129013689 (code B ref 22344); Mon, 11 Jan 2016 19:42:02 +0000 Received: (at 22344) by debbugs.gnu.org; 11 Jan 2016 19:41:30 +0000 Received: from localhost ([127.0.0.1]:46820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIiLK-0003Yi-AR for submit@debbugs.gnu.org; Mon, 11 Jan 2016 14:41:30 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:56055) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIiLI-0003YW-JE for 22344@debbugs.gnu.org; Mon, 11 Jan 2016 14:41:28 -0500 Received: from [18.189.87.242] ([18.189.87.242]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0MOVOL-1aDV9L0o9V-005qoR; Mon, 11 Jan 2016 20:41:22 +0100 References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> <5693D43E.4000804@gmail.com> <83lh7wkrgz.fsf@gnu.org> <5693DDBF.3010802@gmail.com> <5693E3E3.7020304@gmail.com> <83h9ikknsg.fsf@gnu.org> <5693EE47.9010209@gmail.com> <83y4bvkj18.fsf@gnu.org> From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Message-ID: <56940560.9090303@gmail.com> Date: Mon, 11 Jan 2016 14:41:20 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <83y4bvkj18.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="U7JGr9jd4bXXWVdT97uwLhQShnS6GIXkU" X-Provags-ID: V03:K0:ndI/FlwV0rp57NbXw11Uz1w/jVsFYc+xluWIQHozqZJlfIj7F0j d6wibutVjLaDYPQlNSDrcbUFHwc4Ur408FxwNuGuU4/B01ZYhzMC2tC9e1a6DbYWfiwToDt aN0aYb45LCnE1guCQBaJFR8VnlpZsXjge+KTnL4wL+B423Ts+Nxzo6vRoy4FfZ647T+k4lk Aok2upix0VCWyTjJeHD7w== X-UI-Out-Filterresults: notjunk:1;V01:K0:GuUSYFPK01A=:+Y0W+N6w1+v5p/YqYZe+xd GPkVCZLB9d03Oe7jIhKVWVBTAY8aGon3AvRXznSCQSCUYTSAbtcZeBl1Yvu7qyFnBL0oesXYD EoNyfL8l/QnqlfgkjUOGtagyEks0q6A9YJOiwJXQSvEv2lgcF2hu0QVKfL9fDE589O4yzPBJt FoUCQFc1fpQMOMbNhSA4A14PQjEpHHuc9r+Hc/3X4U4f7HT1jHE/gZHPlz8MUOU8EN112kbaM VHzqiKYzUh3xJCn8xpMavq2ObiT+hpq6U1mv0lwwm2JYijnE7u/O5H9JlztVClv1ZkiDygXyK lxy7okxCjLuFd+Mfxg6O5bxY/H+A7d0bTK+nSktxddt4aBzkE4BRkNPezzXcjD4/qOxDjiv/c HNxa8ocoIA+A9P1j72jUvMDVU0/ZWH9b8lBnMesmnmY/eErLxFjotp/4MOUE2jILKjXbExv0F +yB3B6EodgtjZ4tKhcYT7m+jhXAsDGbMsfYuinVX7P3riGNSy+iZHJCDYob5DFv1iPBFYk9pY QEmddSIrurdZo21Dktv0orfDtre2lbU8ch9p1vl42y5qebcRZpp6Uus+TCYCO+jRH0E/02acR de+D8NR0mplzezDrEQTZ6MGvwW+HA6oa7lA7Ym17XAUWD65AjqWV2NN6R4zRse/c69Y1DpnmL iFzWDxEb9WBptwQ3U6QQnCa1mxp324XM1OvXxrKfvIFqrDIACwuZlg5ZU6kEHMfZTteE= X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --U7JGr9jd4bXXWVdT97uwLhQShnS6GIXkU Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/11/2016 02:33 PM, Eli Zaretskii wrote: >> Cc: 22344@debbugs.gnu.org >> From: Cl=C3=A9ment Pit--Claudel >> Date: Mon, 11 Jan 2016 13:02:47 -0500 >> >>> Thanks. Are all the affected programs written in JavaScript? Do the= y >>> all set stdin encoding to UTF-8? If so, does the problem go away if >>> you remove the line that sets the encoding? >> >> No, the following javascript implementation of cat also reproduces the= issue: >> >> function blackhole() { >> process.stdin.resume(); >> process.stdin.setEncoding("ascii"); >> process.stdin.on('data', function (chunk) { process.stdout.write(c= hunk); }); >> } >> blackhole(); >=20 > Could it be that the script exits as soon as it processed the first 4K > chunk, without waiting for the next one, or without waiting long > enough? I'm not sure if I understand correctly. In the working case (sending smal= l batches) the underlying script does receive everything Emacs sends. In = fact, the blackhole example shown above never exits; it keeps reading on = stdin and echoing on stdout. With a more complex setup, Emacs hangs when we send the whole buffer, but= when sending it in small chunks the underlying process returns the expec= ted results. Cl=C3=A9ment. --U7JGr9jd4bXXWVdT97uwLhQShnS6GIXkU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWlAVgAAoJEPqg+cTm90wj0OIP/RiN2fwUdesAAPL+shQqmEew I/EFX+EwQOrABF32wVLUuKRdMwVNojBCcvt19QAss3H0laGago+tji6WftoO1VFL dWZVxkmSqrLRSUIhdDRsQoq/Iyeunusxx1YcUw0mDQQRpluB/Uu7AX4AYiK6T/nO FKoUyDaHNrBaXfKCi/wIMi+PJ3XuLObyOQ1hJMakUBLedJsm0dZuNHK8FHgNV8nv 0zOgGXGODOpLcFv7Mprtk03sN5gimPfifJNqHJZ02v+ngLf2KaSIMo/ZQWN1rqE1 gDpIpJ8YRpaS6+3Au0Ze7YHTI+JZLG4y9CaUlfGXolPB0d6nrT5VDH24vfM7s8eQ QUSsG940dPQkXABxsMYojp25xhbM3jgwP279bkMUYZHUghJSqm7SWzkpmqvZ8tsG nzFVsbapFI3OZtH7HvQrhSnREFoJGJRp89+07BZcsHDRExjSw94xGE2q4HThPimW T/3M1xrDv/UMoDD5XxIdbDJLtVY0x+Ed6mfnzWDgJJ6j3x22mMMhpak03unmM3RS 4hRmkxDwzfx/+2rfKeJNZ/myg5bxKkJ5zP48tL9v7BazlRRgwLr7UFwHLeGBXOOP 42oKonaEjZUXC1495QmRFTAcCLwmqo9oj3wl8FaAxaEdu0KsqLr0e3WwWcTsVl22 Nkqqb3IgAGRytyAJZylL =sDeP -----END PGP SIGNATURE----- --U7JGr9jd4bXXWVdT97uwLhQShnS6GIXkU-- From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jan 2016 16:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Cc: 22344@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.145261707518379 (code B ref 22344); Tue, 12 Jan 2016 16:45:01 +0000 Received: (at 22344) by debbugs.gnu.org; 12 Jan 2016 16:44:35 +0000 Received: from localhost ([127.0.0.1]:47469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJ23f-0004mN-2G for submit@debbugs.gnu.org; Tue, 12 Jan 2016 11:44:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38675) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJ23d-0004mA-R1 for 22344@debbugs.gnu.org; Tue, 12 Jan 2016 11:44:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJ23V-00010w-Jh for 22344@debbugs.gnu.org; Tue, 12 Jan 2016 11:44:28 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJ23V-00010k-Gp; Tue, 12 Jan 2016 11:44:25 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3892 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aJ23U-00071W-UC; Tue, 12 Jan 2016 11:44:25 -0500 Date: Tue, 12 Jan 2016 18:44:33 +0200 Message-Id: <838u3ukary.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <56940560.9090303@gmail.com> (message from =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel on Mon, 11 Jan 2016 14:41:20 -0500) References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> <5693D43E.4000804@gmail.com> <83lh7wkrgz.fsf@gnu.org> <5693DDBF.3010802@gmail.com> <5693E3E3.7020304@gmail.com> <83h9ikknsg.fsf@gnu.org> <5693EE47.9010209@gmail.com> <83y4bvkj18.fsf@gnu.org> <56940560.9090303@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 22344@debbugs.gnu.org > From: Clément Pit--Claudel > Date: Mon, 11 Jan 2016 14:41:20 -0500 > > > Could it be that the script exits as soon as it processed the first 4K > > chunk, without waiting for the next one, or without waiting long > > enough? > > I'm not sure if I understand correctly. In the working case (sending small batches) the underlying script does receive everything Emacs sends. In fact, the blackhole example shown above never exits; it keeps reading on stdin and echoing on stdout. > > With a more complex setup, Emacs hangs when we send the whole buffer, but when sending it in small chunks the underlying process returns the expected results. I tried to solve this in commit 58a622d on the emacs-25 branch. Please try the latest and see if your problem is solved by those changes. Thanks. From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 References: <569340A9.3010904@gmail.com> In-Reply-To: <569340A9.3010904@gmail.com> Resent-From: Benjamin Schwehn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jan 2016 20:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 22344@debbugs.gnu.org Reply-To: b.schwehn@gmx.net Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.145271691619927 (code B ref 22344); Wed, 13 Jan 2016 20:29:01 +0000 Received: (at 22344) by debbugs.gnu.org; 13 Jan 2016 20:28:36 +0000 Received: from localhost ([127.0.0.1]:48583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJS1z-0005BK-SP for submit@debbugs.gnu.org; Wed, 13 Jan 2016 15:28:36 -0500 Received: from mail-ob0-f173.google.com ([209.85.214.173]:36461) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJRtu-0004yn-Un for 22344@debbugs.gnu.org; Wed, 13 Jan 2016 15:20:15 -0500 Received: by mail-ob0-f173.google.com with SMTP id ba1so474824065obb.3 for <22344@debbugs.gnu.org>; Wed, 13 Jan 2016 12:20:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=dWoasCfjVqjjHEgS6b9KDIRoQJ/lkUM1ZEU+46QjY2U=; b=rYhuX+oul4R+yHUtuVPIfOGL7P96Xfk4MtKhzAOSxF686viewgbFhaJbzo3ftCDW9B n0E99PRnDRvVZIHGlKoEIZIc/scwP2NGvxR0/MPy/qLKQ7lqwGWOwXT38EkPPW12RTXI ZJVLq7PbbObr/lJgjckZ3dHCbgRW+VRfb+MUMwbqdubDL4OevW+23xM5pyiN1x9tisIg lADekRJInHeMSMYjt49cJ6mAbmBC+vZlYjpsyLQWRCXoYW/oHGsN6OKXAaut7c0PFcxm tjXwArkoQYP4B+8jD0lDOcQEKqP3Q5h4Xef4mbiHwpeOCl2NUfDIzLhsoeA5k3sJSZ4d u1Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=dWoasCfjVqjjHEgS6b9KDIRoQJ/lkUM1ZEU+46QjY2U=; b=QAPHPDHsLRB96qaUCTGb9xGiFzCLZv/A2xqvQit8UOt+zQr9VrC59Kqy49rAjA0KoM DEKChFv/OPAivFnWSpf5DLa9EVPICfrFqnL2m4lSe8FZyMusE4CRJFsPKYN6x3QfTu/o hqm9FuABzl/5UNIcKw2rFIGp95ryxA0v4tkM3CQQyTk5so3GhvrMrUcaaJj82xtGzTsl r3FN23cJhbHQUR8HGFpJuGf4z1ohtxCZi37nD8iXEpIA71W6vbFU63Q9VsrSb0jLNyoB UqexYymIcqVDGttk4meD4lfFSEbCZxxh138XCqJUY8Lv0PzWsDTXDA22AqBACXszC6dz xVHA== X-Gm-Message-State: ALoCoQkdgGWWEy3G2JeO3VYEP8zI7V+QrQq30tCC/Oj4lrqJT6xlbGhxEtgRKnTuNwS6U0PfojehkYjuRiV1yk0nGO3yHFszUA== MIME-Version: 1.0 X-Received: by 10.182.33.38 with SMTP id o6mr145510obi.40.1452716409167; Wed, 13 Jan 2016 12:20:09 -0800 (PST) Received: by 10.182.121.9 with HTTP; Wed, 13 Jan 2016 12:20:09 -0800 (PST) Date: Wed, 13 Jan 2016 21:20:09 +0100 Message-ID: From: Benjamin Schwehn Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Mailman-Approved-At: Wed, 13 Jan 2016 15:28:34 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hi, I reproduced the hang using the 64bit build at http://emacsbinw64.sourceforge.net/ I used Cl=C3=A9ment's first example using jshint to repro. I then built a 64bit version myself, using the instructions from http://sourceforge.net/p/emacsbinw64/wiki/Build%20guideline%20for%20MSYS2-M= inGW-w64%20system/ (on a Windows 7 x64 system). Using the latest emacs-25 sources, I can now no longer reproduce the hang. So it looks to me like the issue if fixed. But if there is interest, I could rebuild using the last version without 58a622d to double-check tomorrow that there is no other difference between my build and the build from http://emacsbinw64.sourceforge.net/ Thanks a lot for the quick fix! Ben From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jan 2016 20:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: b.schwehn@gmx.net Cc: 22344@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.145271781421261 (code B ref 22344); Wed, 13 Jan 2016 20:44:01 +0000 Received: (at 22344) by debbugs.gnu.org; 13 Jan 2016 20:43:34 +0000 Received: from localhost ([127.0.0.1]:48588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJSGU-0005Wr-6i for submit@debbugs.gnu.org; Wed, 13 Jan 2016 15:43:34 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51428) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJSGT-0005Wb-6R for 22344@debbugs.gnu.org; Wed, 13 Jan 2016 15:43:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJSGK-0007mr-St for 22344@debbugs.gnu.org; Wed, 13 Jan 2016 15:43:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJSGK-0007mn-PK; Wed, 13 Jan 2016 15:43:24 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2063 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aJSGK-0006AZ-3R; Wed, 13 Jan 2016 15:43:24 -0500 Date: Wed, 13 Jan 2016 22:43:36 +0200 Message-Id: <83bn8pi51j.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Benjamin Schwehn on Wed, 13 Jan 2016 21:20:09 +0100) References: <569340A9.3010904@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Wed, 13 Jan 2016 21:20:09 +0100 > From: Benjamin Schwehn > > I reproduced the hang using the 64bit build at > http://emacsbinw64.sourceforge.net/ > > I used Clément's first example using jshint to repro. > > I then built a 64bit version myself, using the instructions from > > http://sourceforge.net/p/emacsbinw64/wiki/Build%20guideline%20for%20MSYS2-MinGW-w64%20system/ The repository now includes a file nt/INSTALL.W64 which should cover the same turf, and be at least as accurate as the MSYS2 instructions, since INSTALL.W64 is maintained as part of Emacs. > Using the latest emacs-25 sources, I can now no longer reproduce the hang. Thanks for testing. It is important that the original use case that prompted this bug report will also be checked, as I understand it is more complicated. Can you ask the relevant people to try that? > So it looks to me like the issue if fixed. But if there is interest, I > could rebuild using the last version without 58a622d to double-check > tomorrow that there is no other difference between my build and the > build from http://emacsbinw64.sourceforge.net/ If you can afford that, yes, it would help to see that this commit fixed the issue. Thanks. From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2016 00:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 22344@debbugs.gnu.org Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.145273254017051 (code B ref 22344); Thu, 14 Jan 2016 00:49:02 +0000 Received: (at 22344) by debbugs.gnu.org; 14 Jan 2016 00:49:00 +0000 Received: from localhost ([127.0.0.1]:48651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJW5z-0004Qx-Q5 for submit@debbugs.gnu.org; Wed, 13 Jan 2016 19:48:59 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:51509) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJW5x-0004Qh-UY for 22344@debbugs.gnu.org; Wed, 13 Jan 2016 19:48:58 -0500 Received: from [18.189.87.242] ([18.189.87.242]) by mrelayeu.kundenserver.de (mreue101) with ESMTPSA (Nemesis) id 0M2Mj6-1a0cGT33zA-00s61P; Thu, 14 Jan 2016 01:48:49 +0100 References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> <5693D43E.4000804@gmail.com> <83lh7wkrgz.fsf@gnu.org> <5693DDBF.3010802@gmail.com> <5693E3E3.7020304@gmail.com> <83h9ikknsg.fsf@gnu.org> <5693EE47.9010209@gmail.com> <83y4bvkj18.fsf@gnu.org> <56940560.9090303@gmail.com> <838u3ukary.fsf@gnu.org> From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel X-Enigmail-Draft-Status: N1110 Message-ID: <5696F066.6060906@gmail.com> Date: Wed, 13 Jan 2016 19:48:38 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <838u3ukary.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GwxWj3FC2BbiJfw1WNiVo10SgFkik9OJS" X-Provags-ID: V03:K0:QOS/8hbZauZYk2/2oUmpNWOuSSJZGSjz8GG80i69sRVfgoq9hfb GIBmt+G16Zxwd6ptdnYfZZ1oEH15kI49PjWEUKY5GEZJ+SICVCvUlCLfEmTsufebFP810sl hKn96OZFwKppQ1YFtYBiYttreQBuM/mFFW8987K7J6Bpzp4bjyiS/YR1JCB4onX3WBN0HA3 iBkC4a73uk6mrNKQ8DdZw== X-UI-Out-Filterresults: notjunk:1;V01:K0:ZZIiyoouzOo=:lKxVWxd+jpZLpkD+3iq2Ya yLGcBs8Rz+tHwjWz2WnaVWHJ/S0VGTugUWLt/7u+yWBS/Gidy2ZSWqk9IoiUSJz+Xb/KNKLza +fQroWRbMbCqogiLrAIFMlN8ytcHOZK8c/sRk3c/g6BlDW0bGi4uH8fHHkhGKiefwWg9r3B7i sd7Uo1HQbvPVw212hJXQzy5JYSmzOaXTey/PKouG0MGScGE9akkxBv5arQzVdz8n/amb6Ng4S 2JlRI1Bt3jsTk/4WIWNEpCNvqIWPTrZ0zwvKn2twAOpJHtwV0aI9qXY+BxyiBb/xPVklG1ciM d7+Dcoh6Lvu+Lq3yRUMRcQDiJQCUfWlxiIKp6516kK3ngaB0uZc+fJo8A8Jwg2WcTMdyLQ0Je pSQ0tYA+tOVs/xLsGC1P6sHU+VaRRfR7EzW8RlWW2b02DVshwjAEXoLw8lHnYqN8sEAkM2L4E 52d6IMDQAs5rWEdk/aajsMpl0KYvTeCvmXhddAvi6kmoxH7ZDnhwtnugXRpe0YgNyMbk0VY2A J4hzz4SwQvYfvxrkehDAfkj26xUoLeotKYCLjpD2uHMIlRkA1gLnF3l5JSlHqh/1o60aGLMTl n2dpRqQ8EMnCdeLc1nAq7FHYk970ER3UOfVKPz19pP1hHU0MnH9OVKYQfYaT3LvEvwwmpWWXd jv/s1RY+GMD2P55DlRfCkJ0LBeMJ9ryyY1s1TyJqSm/icVahW1gR1ITAs7zpqMdOyRis= X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --GwxWj3FC2BbiJfw1WNiVo10SgFkik9OJS Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/12/2016 11:44 AM, Eli Zaretskii wrote: >> Cc: 22344@debbugs.gnu.org >> From: Cl=C3=A9ment Pit--Claudel >> Date: Mon, 11 Jan 2016 14:41:20 -0500 >> >>> Could it be that the script exits as soon as it processed the first 4= K >>> chunk, without waiting for the next one, or without waiting long >>> enough? >> >> I'm not sure if I understand correctly. In the working case (sending s= mall batches) the underlying script does receive everything Emacs sends. = In fact, the blackhole example shown above never exits; it keeps reading = on stdin and echoing on stdout. >> >> With a more complex setup, Emacs hangs when we send the whole buffer, = but when sending it in small chunks the underlying process returns the ex= pected results. >=20 > I tried to solve this in commit 58a622d on the emacs-25 branch. > Please try the latest and see if your problem is solved by those > changes. Eli, there's something magical about your debugging abilities. I downloaded and compiled the latest master on Windows 8; I could reprodu= ce the bug there. Then I checked out emacs-25 and recompiled, and the bug= seems to be gone! Amazing. This is only for my personal curiosity, but would you mind expanding a bi= t on what the issue was (and how you found out)? I read the commit messag= e and looked at the diff, but I don't think I understood everything from = there. Did you have to look at node.js' source code? Would it be helpful = for me to file a bug with node.js? Cl=C3=A9ment. --GwxWj3FC2BbiJfw1WNiVo10SgFkik9OJS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWlvBuAAoJEPqg+cTm90wjQr4P/29lpZ+3ckL/NpWE/3HO/Gp7 ek1QvDSLlJtwveIjjcFAwS1b3FM1ZsanZJTpMLi2h1WAGHXjCD3YGYS3Fdbp67tw DJ97n1Hntb7wBtkRnqUau9IqFIZrwM/Py4GkXX3fnEoo6oQDLJ4m0aJ+9evAWOCY Zl48fAKHi3mSc/eSugv7cEXZd753vxWi3yTFjVrSbA2tX4FNMH+LFdhZ/AAi8RHS hx6yV0NJyJKpJ/esp/UjTA1qYBdP8g9dwJ9dJ2ucqD6o8FgxbvhTI+BgbKHXP6If wfhLDoR7T3AXMNDOEs1YZn2CLvNhfa6kPlRJWLPwz8xxQty3Y3tvwCcodLPEJZfv PuT+6izP6ugSOvQdPgcHIIMLv+OZPhM9VIMh+4+zSfnOu125vBfGwsugIgvV/bxt RgeRYkZLHipc7pn5L18JeZHgh3cKBFYI/qj5er1Iqwnsg5WpQpcUoo3x8mue+n+J G7jtvTj2+00LQv0xsHVbtN/NaEDLdr42fB5a9gDqPEqOVNh6PXZ90SCj3qWYENsx rOyWyga1E8/lWrTD1vOB1xE4mVrpEL7wjO+8H7Phhucdaxs+OztvUAiaaMtf0koz 6tKslTX30BxuJnoI1cLkxs7k9SWjM0NNX325WTqjunVjyLQGTebISryNBmbNqNMY cj2IY2Eijvh0csdicZ8q =ziLf -----END PGP SIGNATURE----- --GwxWj3FC2BbiJfw1WNiVo10SgFkik9OJS-- From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: Benjamin Schwehn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2016 16:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 22344@debbugs.gnu.org Reply-To: b.schwehn@gmx.net Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.145278939532050 (code B ref 22344); Thu, 14 Jan 2016 16:37:02 +0000 Received: (at 22344) by debbugs.gnu.org; 14 Jan 2016 16:36:35 +0000 Received: from localhost ([127.0.0.1]:49344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJkt1-0008Ks-0U for submit@debbugs.gnu.org; Thu, 14 Jan 2016 11:36:35 -0500 Received: from mail-ob0-f180.google.com ([209.85.214.180]:34123) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJkt0-0008Kg-3U for 22344@debbugs.gnu.org; Thu, 14 Jan 2016 11:36:34 -0500 Received: by mail-ob0-f180.google.com with SMTP id vt7so87632697obb.1 for <22344@debbugs.gnu.org>; Thu, 14 Jan 2016 08:36:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=anjRu6l8Uel1txa7LrfUS9HYsps9sNRPrRqCn0y4l6k=; b=Yibh9oJS8T/UCc5qR/jiViUoIY5PHT/J2wWCsLGRnv9kgd74PD3nK7IGoeJPKLYrMl cbf22Hx6eF/IozUAToFWCzq2aAW9RaSPdkX7Gu56h5Z++Z1X/hDJ12YrHTIVr1WDRvZY Qr1uM/ItpxyZlGhSBVe1aj/4BYXjtmwxKkto5hiZOvNhXIdGae57bgy1pWdXQlSFReXd 7WKCHpgT7E+fXMh09sDcdYNX38JVxD3aN24ZGHAoSZ1Fr/1Bh5Mi+NWrD4eza0eD+Fqo b9ogij8oojHGFwmoBqzuWD+VfDidbFo54kYWHAjXet5CN0p4Qavjkr84VC78FmZy04Xd d80g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=anjRu6l8Uel1txa7LrfUS9HYsps9sNRPrRqCn0y4l6k=; b=ELqa/wegOVtA1sxWm1tNFwYnmN0Emxhf5XZtZkWvRlTqp76FTYH3wVNVodTUugjPT4 b/cjYcH1dZgYXHE/Gunt9RVCOO6N9PpHY0yphnkC5RvHGMjEOpnk2uM2hZabNcq9vJGB DZ6P/Br9s8xjpqkrA6huvm6dYV8DzL0PpG4Li25LgEGxSJH48kwl4EXfN5XPSFTaN4uW VqcMKdTD/GT3xE1EskY/e7cKr6f7psjfYAWzoVD+Nb3mJPmSFJ9yceiTxdI9Se3YRDsi hW6OuubEZjQTU91N4+PVcdhQPm26XUAHHPVDpFlMjv/2gEcMtVIbIRQvzma841+4hrQL mXDg== X-Gm-Message-State: ALoCoQl6zS5Jh6eLLk873Tp3nhu/3uf9ZKL+pSec3LTONr9uAfv1B8/5gvyHMeD6GPUfCMhweWRY8snrjOwV18bTOGSMBG7dPw== MIME-Version: 1.0 X-Received: by 10.182.33.38 with SMTP id o6mr4285054obi.40.1452789388523; Thu, 14 Jan 2016 08:36:28 -0800 (PST) Received: by 10.182.121.9 with HTTP; Thu, 14 Jan 2016 08:36:28 -0800 (PST) In-Reply-To: <83bn8pi51j.fsf@gnu.org> References: <569340A9.3010904@gmail.com> <83bn8pi51j.fsf@gnu.org> Date: Thu, 14 Jan 2016 17:36:28 +0100 Message-ID: From: Benjamin Schwehn Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Wed, Jan 13, 2016 at 9:43 PM, Eli Zaretskii wrote: >> Date: Wed, 13 Jan 2016 21:20:09 +0100 >> From: Benjamin Schwehn >> http://sourceforge.net/p/emacsbinw64/wiki/Build%20guideline%20for%20MSYS2-MinGW-w64%20system/ > > The repository now includes a file nt/INSTALL.W64 which should cover > the same turf, and be at least as accurate as the MSYS2 instructions, > since INSTALL.W64 is maintained as part of Emacs. Yes, i referred to those instructions and found them to be pretty good. I mentioned the link above only because it shows the exact params I used for ./configure. >> Using the latest emacs-25 sources, I can now no longer reproduce the hang. > > Thanks for testing. It is important that the original use case that > prompted this bug report will also be checked, as I understand it is > more complicated. Can you ask the relevant people to try that? I now also reproduced the original scenario (flycheck with checkers). It hangs when building with the last check-in in branch emacs-25 before your fix and no longer hangs with the current version. Also various other people where happy to found the issue fixed in the thread over at https://github.com/flycheck/flycheck/issues/794 Thanks again, Ben From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2016 18:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Cc: 22344@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.14527944727138 (code B ref 22344); Thu, 14 Jan 2016 18:02:02 +0000 Received: (at 22344) by debbugs.gnu.org; 14 Jan 2016 18:01:12 +0000 Received: from localhost ([127.0.0.1]:49364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJmCt-0001r4-UC for submit@debbugs.gnu.org; Thu, 14 Jan 2016 13:01:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48215) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJmCr-0001qq-IB for 22344@debbugs.gnu.org; Thu, 14 Jan 2016 13:01:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJmCj-0006CA-Os for 22344@debbugs.gnu.org; Thu, 14 Jan 2016 13:01:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJmCj-0006C6-M9; Thu, 14 Jan 2016 13:01:01 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3535 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aJmCi-0001kO-R1; Thu, 14 Jan 2016 13:01:01 -0500 Date: Thu, 14 Jan 2016 20:01:15 +0200 Message-Id: <83si20ghw4.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <5696F066.6060906@gmail.com> (message from =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel on Wed, 13 Jan 2016 19:48:38 -0500) References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> <5693D43E.4000804@gmail.com> <83lh7wkrgz.fsf@gnu.org> <5693DDBF.3010802@gmail.com> <5693E3E3.7020304@gmail.com> <83h9ikknsg.fsf@gnu.org> <5693EE47.9010209@gmail.com> <83y4bvkj18.fsf@gnu.org> <56940560.9090303@gmail.com> <838u3ukary.fsf@gnu.org> <5696F066.6060906@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 22344@debbugs.gnu.org > From: Clément Pit--Claudel > Date: Wed, 13 Jan 2016 19:48:38 -0500 > > Eli, there's something magical about your debugging abilities. > I downloaded and compiled the latest master on Windows 8; I could reproduce the bug there. Then I checked out emacs-25 and recompiled, and the bug seems to be gone! Amazing. I wish I had such magic, but I don't. It's just a lot of hard work, that's all. But thank you for your kind words. > This is only for my personal curiosity, but would you mind expanding a bit on what the issue was (and how you found out)? I read the commit message and looked at the diff, but I don't think I understood everything from there. Did you have to look at node.js' source code? Would it be helpful for me to file a bug with node.js? I'm not entirely sure what caused the issue. From the Emacs side, it looked like the other end of the pipe wasn't read at all: each time Emacs called _write, it got the return value of -1 with errno set to ENOSPC, which means the pipe's buffer is full. No other program with which I tried the same test case did this. With those other programs, after a few first attempts which returned -1, _write started to return positive values, meaning that it succeeded to write some part of the stuff. I tried to google for similar problems related to node.js, but didn't find anything that looked useful. So I just went with the only workaround you reported: never write to the pipe more than its buffer size. I.e., subdivide the write into chinks the size of the pipe's buffer. This required a system call, to find out what that size was, and it also required a small change in the logic of the loop that writes the stuff in chunks, because it wasn't ready for the situation that a chunk succeeds, but the very next one returns -1 and ENOSPC -- again something that only node.js causes somehow. No, I didn't look into node.js's sources. It's a large program with whose design I'm not familiar, so I expected it won't be easy to find the code that is responsible for this. I took a brief look now, and I see that my expectations were correct: I see some very elaborate "pipe server" there, which I'm not sure is relevant to the original problem. If we want to try to understand this deeper, we should be talking to some expert on how node.js works on Windows wrt I/O on its standard input and standard output. Filing a bug report with node.js might be useful, but again, only if someone there will want to talk to us so that we could understand the problem. If you want to file a node.js bug report, you can start by saying that it reads its stdin very slowly: once it reads a 4K chunk from the pipe, it takes about 40 to 60 msec before it is ready to read the next chunk. (I can tell because when Emacs receives ENOSPC from the pipe, it loops retrying, waiting 20 msec between retries, and I see 2 to 3 retries, sometimes even 4, before the next successful write.) I don't know why it takes so long -- this was on a Core i7 system which was otherwise very quiet. Maybe if we understand what takes so long, we will also understand what did Emacs do wrongly, and how to avoid that. For now, I guess we can be happy with the workaround I committed. Thanks. From unknown Sat Sep 06 13:45:11 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Subject: bug#22344: closed (Re: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10) Message-ID: References: <83pox4ghor.fsf@gnu.org> <569340A9.3010904@gmail.com> X-Gnu-PR-Message: they-closed 22344 X-Gnu-PR-Package: emacs Reply-To: 22344@debbugs.gnu.org Date: Thu, 14 Jan 2016 18:06:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1452794762-7549-1" This is a multi-part message in MIME format... ------------=_1452794762-7549-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hang= s Emacs on Windows 8 and 10 which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 22344@debbugs.gnu.org. --=20 22344: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22344 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1452794762-7549-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22344-done) by debbugs.gnu.org; 14 Jan 2016 18:05:36 +0000 Received: from localhost ([127.0.0.1]:49368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJmH9-0001x8-PB for submit@debbugs.gnu.org; Thu, 14 Jan 2016 13:05:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51839) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJmH8-0001wt-Qx for 22344-done@debbugs.gnu.org; Thu, 14 Jan 2016 13:05:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJmH1-000794-7O for 22344-done@debbugs.gnu.org; Thu, 14 Jan 2016 13:05:29 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJmH1-000790-3V; Thu, 14 Jan 2016 13:05:27 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3575 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aJmGz-0000HB-IP; Thu, 14 Jan 2016 13:05:26 -0500 Date: Thu, 14 Jan 2016 20:05:40 +0200 Message-Id: <83pox4ghor.fsf@gnu.org> From: Eli Zaretskii To: b.schwehn@gmx.net In-reply-to: (message from Benjamin Schwehn on Thu, 14 Jan 2016 17:36:28 +0100) Subject: Re: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 References: <569340A9.3010904@gmail.com> <83bn8pi51j.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22344-done Cc: 22344-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Thu, 14 Jan 2016 17:36:28 +0100 > From: Benjamin Schwehn > Cc: 22344@debbugs.gnu.org > > > Thanks for testing. It is important that the original use case that > > prompted this bug report will also be checked, as I understand it is > > more complicated. Can you ask the relevant people to try that? > > I now also reproduced the original scenario (flycheck with checkers). > It hangs when building with the last check-in in branch emacs-25 > before your fix and no longer hangs with the current version. Also > various other people where happy to found the issue fixed in the > thread over at https://github.com/flycheck/flycheck/issues/794 Thanks, that's good enough for me. So I'm marking this bug done. ------------=_1452794762-7549-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 11 Jan 2016 05:42:27 +0000 Received: from localhost ([127.0.0.1]:45927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIVFK-0003Q7-Kg for submit@debbugs.gnu.org; Mon, 11 Jan 2016 00:42:26 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47871) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIVFI-0003Ps-Ia for submit@debbugs.gnu.org; Mon, 11 Jan 2016 00:42:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIVFB-0001t9-Vs for submit@debbugs.gnu.org; Mon, 11 Jan 2016 00:42:19 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIVFB-0001t5-T2 for submit@debbugs.gnu.org; Mon, 11 Jan 2016 00:42:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIVFA-0002Et-29 for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 00:42:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIVF5-0001rd-8S for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 00:42:14 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:55357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIVF4-0001rZ-V9 for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 00:42:11 -0500 Received: from [18.189.87.242] ([18.189.87.242]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0LlWdD-1ZjizO2Xrz-00bGkd for ; Mon, 11 Jan 2016 06:42:09 +0100 From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Subject: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 X-Enigmail-Draft-Status: N1110 To: bug-gnu-emacs@gnu.org Message-ID: <569340A9.3010904@gmail.com> Date: Mon, 11 Jan 2016 00:42:01 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LhClVkI83IijskXhoW51VuJ5VsSTNrbpB" X-Provags-ID: V03:K0:FBZZaYbIoT4h9AVg/vomRbHuVDXJojNXPOeD3dqyt5j3TG8OE71 kQfEKW4qkubO1qYFnlO/XZGxF+KHCFkzCQvQd8tqKC0ZppQusSpuwQKrcV08Np826d/LuDm YC7LlHymIpTRB2N3ItElrEO79tiW9tsY6XSq/5qK4m1Ka4NSDUbywEbmMdWULExYPXPQg67 4tONvsZVYxAvta812ZkEg== X-UI-Out-Filterresults: notjunk:1;V01:K0:IJnyB9LitBI=:jr73BKjbgMKrNreh2JYRO8 GO0fPlYqFxy2/BqYeEDpQerd8naUmRWnl6iaMA+DK8xevGcTpWH9DgVaRK+Zdrwi08azegChI Zenex8Jjh4KeEWqNKbqoxqubyGeQaXq0NzQom/iEXIV1N9AHSmoEmhO9AF4qyBJXzte63Klvb 0u4sm9rhwlLO3FtnbeYlm2i3uRRVZPeCkU+/pycu271m6izdjy4dG5U3RwJViBY7SOR3egevP dzLUOMi4z4TK6WOuxnsFC5QMPfArAcKZcUbii2dRVPe2XpVqWPnULzHCA9mnsgbP+fq946uZX aYoLdK1O7LSw0zY4E9FzhmJZ1K5oDLdbCaxsFRxensJ9gwD1D2yATUy03zOu/e0qlIPp2w16W H0O2ilvXTAJlJ4cN+fmxwSB11jL9g5dICYjE9nlZe0yDg7MSLB6MJuNXnw6boYNbmRRteaq7n JgY5whXbs+5UM5hree1HeRl8CiK16dAGktztSFIOKx8zVx9E5+wU5NlZuT2eskA8tkWQmr6LW DQnyLipd9IUlwqRMmK8d988rwgwft32JYH4mdhgJ0pzCnViEsjJeEiW37wnhoOScFV1nd3kzf xagYaZoV4qNty5KGAtylFHRCEAj9lUFa196dh2pAiGC17wwG3BQvdb/Q6UZ9O9O9j38b/YfZA aZoZqLRTQsTyLV6lU2AgChF9GQiEY4l+qpIaL5USSkh0IKy/hMQPDgzjVNadhxP/Dry8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --LhClVkI83IijskXhoW51VuJ5VsSTNrbpB Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all, On Windows, sending more that 4096 bytes at once to a subprocess will cau= se Emacs to hang (freeze) indefinitely. Killing the subprocess by externa= l means restores functionality. This happens in Emacs 25, 24.5.1, and 24.= 4 on Windows 8 and 10; I did not try in earlier versions. Here is how to reproduce the issue: 1. Create a loop.cmd file in C:\. Put the following in it: :loop goto loop 2. Run the following snippet in emacs -Q: (process-send-string (start-process "bug" nil "c:/loop.cmd") (make-string 4097 ?a)) 3. Emacs hangs. Kill cmd.exe from the task manager to make it responsive = again. At this point Emacs will display the following: Debugger entered--Lisp error: (file-error "Writing to process" "Invali= d argument" #) process-send-string(# "(...)") eval-region(192 277 t #[257 "\300\242b\210\301\207" [(277) (process-= send-string (start-process "bug" nil "c:/loop.cmd") (make-string 4097 97)= )] 2 "\n\n(fn IGNORE)"]) ; Reading at buffer position 277 elisp--eval-defun() eval-defun(nil) funcall-interactively(eval-defun nil) call-interactively(eval-defun nil nil) command-execute(eval-defun) Note that the following snippet, on the other hand, runs without issues: (process-send-string (start-process "bug" nil "c:/loop.cmd") (make-string 4096 ?a)) I have read sections 7.1 and 7.2 of https://www.gnu.org/software/emacs/ma= nual/html_mono/efaq-w32.html , but I do not believe that the bug is cover= ed by these sections. Indeed, sending the same input in smaller batches w= orks fine. That is, sending 4097 bytes in batches of 50 bytes works fine:= Emacs does not hang, and the subprocess properly receives the input. Here is some context: we've had many users of Flycheck (an alternative to= Flymake) on Windows complaining that Flycheck caused Emacs to hang; this= happened since we transitioned from passing file names to linters to fee= ding them source code directly on their stdin. It turns out that this hap= pens when the files in question are more than 4096 characters long. The p= roblem was confirmed with jshint, eshint, and phpcs. I do not know if tha= t means that other linters work fine, or if we didn't get reports from ot= her users. Investigating the bug led me to the minified test case above. As I mentionned before, sending input in smaller batches works fine. In t= he case of Flycheck, this means changing this: (process-send-region (point-min) (point-max)) to this: (goto-char (point-mint)) (while (not (eobp)) (let ((from (point))) (forward-char (min 50 (- (point-max) (point)))) (process-send-region process from (point)))) fixes the issue entirely. I do not use Windows often, but I'll be happy to provide more information= , if I can help. I did not compile my own Emacs; I used the one provided = at https://sourceforge.net/projects/emacsbinw64/ . The original bug repor= t about Flycheck, which did not identify process-send-string or process-s= end-region as the culprit, is here: https://github.com/flycheck/flycheck/= issues/794 . I have included debug output below. Thanks, Cl=C3=A9ment. In GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-11-10 Repository revision: 9145e79dc2042fb477959ddda59c3e2ff5fa3914 Windowing system distributor 'Microsoft Corp.', version 6.3.9600 Configured using: 'configure --prefix=3D/z/emacs --host=3Dx86_64-w64-mingw32 --target=3Dx86_64-w64-mingw32 --build=3Dx86_64-w64-mingw32 --with-wide-i= nt --with-jpeg --with-xpm --with-png --with-tiff --with-rsvg --with-xml2 --with-gnutls --with-sound=3Dyes --with-file-notification=3Dyes --without-dbus --without-imagemagick 'CFLAGS=3D-O3 -fomit-frame-pointer -g0 -pipe' 'LDFLAGS=3D-static-libgcc -static-libstdc++ -static -s -Wl,-s'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu cl-loaddefs pcase cl-lib debug time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 84225 4487) (symbols 56 19038 0) (miscs 48 64 168) (strings 32 14204 4737) (string-bytes 1 410641) (vectors 16 10727) (vector-slots 8 405995 4577) (floats 8 130 34) (intervals 56 274 32) (buffers 976 12)) --LhClVkI83IijskXhoW51VuJ5VsSTNrbpB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWk0CwAAoJEPqg+cTm90wjPQAP/jYn1I16NT9OZbUqvIx+rc8L BymP2i7MR9Ckueyn1YQ7biMRwz3bx9mo38IsCPlzRWxrSJW2Q+zupvmqRotjuFRF JjS6K3awXNV9vaXLG8lwPDTs95xTYxhAVVIEhPpiDfpHdDUP4hh26Hxl2gLdvn3s SJgHw+8leoW9lck828g3Wr1Aa1IiKoRxXQSpl66SGcFk9R733vlLxiWccB7Pni1U Bzv9K6+o9FQSpgmu+MfzBULuTQsSFwOyr7ioM0OZvL1mSrKKRiQl6E1ibrO/m9B3 JWbOEkelhoHiGhQNJyR8Sj8BcQb+OM6YjytQvqrCj2CCUeuRGwek9Y+f9YNdaCvN Nr+lzEB004QiUJfsRzjTFAM/NFkOWyxORr73IXB6Ksw40M6sjDtEO36ZLmzTxg9w 9BKyuPho+Ufby24Yy0iBOEPLs+KFPIvoNN+HH7abG60IZzchhhBaHRKi0Km1Sojw wFSV8/M1pjLG7ed5mehrT0SirNo9pdsrzc95bbGFjXa3R20eLVZwAQUtUEnnz7xX pOFN5tEiqifRYjhdprf5UpTNf61Lzjoa4R++lybcbIStHUmsSALgrKP3DzD6i+pn qu1cI5R+MrHWqWkrNHrGaC0oTDBK6IMAFBWNxhJHS9oZKyePBCU29qEVN5uQy+1Y wC1iNO9n3i4t2EPk3moy =FZug -----END PGP SIGNATURE----- --LhClVkI83IijskXhoW51VuJ5VsSTNrbpB-- ------------=_1452794762-7549-1-- From unknown Sat Sep 06 13:45:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2016 18:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 22344@debbugs.gnu.org Received: via spool by 22344-submit@debbugs.gnu.org id=B22344.14527962419912 (code B ref 22344); Thu, 14 Jan 2016 18:31:01 +0000 Received: (at 22344) by debbugs.gnu.org; 14 Jan 2016 18:30:41 +0000 Received: from localhost ([127.0.0.1]:49387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJmfR-0002Zn-2E for submit@debbugs.gnu.org; Thu, 14 Jan 2016 13:30:41 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:54271) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJmfP-0002ZY-2X for 22344@debbugs.gnu.org; Thu, 14 Jan 2016 13:30:39 -0500 Received: from [18.189.41.21] ([18.189.41.21]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0M856T-1ZxJw62onx-00vdRB; Thu, 14 Jan 2016 19:30:31 +0100 References: <569340A9.3010904@gmail.com> <83si24ktzh.fsf@gnu.org> <5693D43E.4000804@gmail.com> <83lh7wkrgz.fsf@gnu.org> <5693DDBF.3010802@gmail.com> <5693E3E3.7020304@gmail.com> <83h9ikknsg.fsf@gnu.org> <5693EE47.9010209@gmail.com> <83y4bvkj18.fsf@gnu.org> <56940560.9090303@gmail.com> <838u3ukary.fsf@gnu.org> <5696F066.6060906@gmail.com> <83si20ghw4.fsf@gnu.org> From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Message-ID: <5697E946.8080501@gmail.com> Date: Thu, 14 Jan 2016 13:30:30 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <83si20ghw4.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DhD867Jrb3nA4DwmxNdj75b4jjtjHTUdE" X-Provags-ID: V03:K0:qMUgR4HoVEWWQNjr4dDDe2VpPnCoGZV69uLvIXx89gFG/dSNS50 NF7AQGMIQMnAkxIeiQWjbOHWTO80x7Ld9SEpF4zzypiTo2mbHfZMFZ/or3370K0oTqoP+ig Y1YpcBrthiju7VnSscA+79bEYXLiP99H6G7OMH6pbujz5AgMtbM5Bz+DD078W/bSdw1KsVi L4MyBffAEj+8v0TrY0hZg== X-UI-Out-Filterresults: notjunk:1;V01:K0:/6cyhE2VYi0=:PWVucsVydfEyOi8qNP4sWf +PsJ6VmhAoR1Nru9QZjjaoFXRvxgRCVCor73oH11LkUsj7rkxDuH2xGbaQ1lrwvMHZjfzmwJz 6MqzjQkGo7iKEqIMwAi+AuzR/mnvSEutUmekXlYGl24O9m/qdhc3Ya/+7OrMd3FZF19KC6Djp s520RPQkI5J9CuKueEKoJAfuT3QCwhUpo/8yuaxkWr9Q2xvDtuBf8EfjqdG1azlG5eeLOIwBD MyIpsGl1iYPH2kQyXVX9vR9mg1UNHvIXAZRMQcRvFK426wEx/ixm8h5FURK/0n+sdmtYfs01o otVTmvX1QFj8065Zu/NI9AHlR2C1osYQ+63QEhSStLXhRLIfNxlRk2lmpmFdYKeUYcUPzdrJm wn6qKKxXIevR9SF4qnZTdLZTkhaa4htHMhNhVOTmvfR9fL4aUyl0esD7zKyAVoCFevXLO/0u9 JGCuC3S+sDXtGJWjZmxNm8vxeLN7ymTOGFtTRJxbeVZRHN3nsgbpaqvWxC6nyv4UePTxb9i1N wyVdxO4EHjEmYC2Il/xtee4Rz5FvMtD1d8K5BMGJbXojSXSeAwrdi+re93v51YZjpS98LqTjc QHa9PH11kK4AUG8Vmvr+ThZCMGNvZexCJ2L491og+HanBW5+oDMVggm5N78FjCyDrlYWrTogx XhWdOodLvRyrb/F5xpFk94/qMjz2NZ52Uvk4nNz10eyFEpNFydsvQ+pHrqMzVKXsTmsk= X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --DhD867Jrb3nA4DwmxNdj75b4jjtjHTUdE Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/14/2016 01:01 PM, Eli Zaretskii wrote: >> Cc: 22344@debbugs.gnu.org >> From: Cl=C3=A9ment Pit--Claudel >> Date: Wed, 13 Jan 2016 19:48:38 -0500 >> >> Eli, there's something magical about your debugging abilities. >> I downloaded and compiled the latest master on Windows 8; I could repr= oduce the bug there. Then I checked out emacs-25 and recompiled, and the = bug seems to be gone! Amazing. >=20 > I wish I had such magic, but I don't. It's just a lot of hard work, > that's all. But thank you for your kind words. >=20 >> This is only for my personal curiosity, but would you mind expanding a= bit on what the issue was (and how you found out)? I read the commit mes= sage and looked at the diff, but I don't think I understood everything fr= om there. Did you have to look at node.js' source code? Would it be helpf= ul for me to file a bug with node.js? >=20 > I'm not entirely sure what caused the issue. From the Emacs side, it > looked like the other end of the pipe wasn't read at all: each time > Emacs called _write, it got the return value of -1 with errno set to > ENOSPC, which means the pipe's buffer is full. No other program with > which I tried the same test case did this. With those other programs, > after a few first attempts which returned -1, _write started to return > positive values, meaning that it succeeded to write some part of the > stuff. > (...) Thanks a lot for the explanations! I've raised an issue with the Node.js = people, inviting them to join this discussion if there was interest about= fixing this on their side. Cheers, Cl=C3=A9ment.=20 --DhD867Jrb3nA4DwmxNdj75b4jjtjHTUdE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWl+lGAAoJEPqg+cTm90wjvBwP/iaD4uyI9Nb3mOF9S8bPTsay mIXdGLRkvJ/DXCasqJbA4rnpbRqZd3E2y7q3Seyb9an7BVkFMwqxQ9lbKJa5kx3Z D/2E0fEleaeqra5sP+4fYctQGEhQ+95v+OHoPSyOoRfX3S3a22c7OxDqgdOdyM7E C/gvdQLuKpMCYd1NOO8NfBlAMN9Eq9s2ll6kaZKFFRMWUM8Flv6pTZ+PbTeG27zI TvUL6wS5wlhXtN0Mv1ixMOBi/wtoGqE1xO7ysrjtKy9qq74gkhivSxNJFViDpdGR S895kkXx4kg0LOW6tG7tFOBgevt+84dvk22fRipqCEsT4iBQlVEJ5UHp2RUX0CuG bqLPR/8YQzAnNyOBi0GVgFptFQBJIW44f4gRtfGDqtpj3Ck3gUlgIvzlDyfPOydo 2q2lergiNxrhtl5Y9apCFXEV0mgH6b9mERgMSQKsXlM6AZ16Bw9L6dp0GY8L3bJe O0+4NWa5yVD8QIFMvMR9LTmfb35qlM+ryAs5klKs6TTjePJSrtDlGWCapLsgqEpx f+GpF7E9CGMt2D+ouv8qtAFSY+zEPXnKqkEGTTgOB/e00QlrLO4o7EeHl3A3njY1 1c4U+us4bJGJuCdICKj+lHrXYAUo7k3LmsXZaa0iH5Osvj/AGbkSSBlYXojrkeiY oztP7vhPQ16aNwI/sgFU =4wSA -----END PGP SIGNATURE----- --DhD867Jrb3nA4DwmxNdj75b4jjtjHTUdE--