unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Clément Pit--Claudel" <clement.pit@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 22344@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
Date: Mon, 11 Jan 2016 12:18:27 -0500	[thread overview]
Message-ID: <5693E3E3.7020304@gmail.com> (raw)
In-Reply-To: <5693DDBF.3010802@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1649 bytes --]

On 01/11/2016 11:52 AM, Clément Pit--Claudel wrote:
> On 01/11/2016 11:31 AM, Eli Zaretskii wrote:
>>> Cc: 22344@debbugs.gnu.org
>>> From: Clément Pit--Claudel <clement.pit@gmail.com>
>>> 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?
> 
> 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 = 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.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2016-01-11 17:18 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-11  5:42 bug#22344: 25.0.50 (and 24.5.1, 24.4); Sending 4097 bytes to a subprocess hangs Emacs on Windows 8 and 10 Clément Pit--Claudel
2016-01-11 15:37 ` Eli Zaretskii
2016-01-11 16:11   ` Clément Pit--Claudel
2016-01-11 16:31     ` Eli Zaretskii
2016-01-11 16:52       ` Clément Pit--Claudel
2016-01-11 17:18         ` Clément Pit--Claudel [this message]
2016-01-11 17:51           ` Eli Zaretskii
2016-01-11 17:55             ` Clément Pit--Claudel
2016-01-11 18:02             ` Clément Pit--Claudel
2016-01-11 19:33               ` Eli Zaretskii
2016-01-11 19:41                 ` Clément Pit--Claudel
2016-01-12 16:44                   ` Eli Zaretskii
2016-01-14  0:48                     ` Clément Pit--Claudel
2016-01-14 18:01                       ` Eli Zaretskii
2016-01-14 18:30                         ` Clément Pit--Claudel
2016-01-11 16:40   ` Clément Pit--Claudel
2016-01-11 17:39     ` Eli Zaretskii
2016-01-11 17:53       ` Clément Pit--Claudel
2016-01-13 20:20 ` Benjamin Schwehn
2016-01-13 20:43   ` Eli Zaretskii
2016-01-14 16:36     ` Benjamin Schwehn
2016-01-14 18:05       ` Eli Zaretskii

Reply instructions:

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

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

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

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

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

  git send-email \
    --in-reply-to=5693E3E3.7020304@gmail.com \
    --to=clement.pit@gmail.com \
    --cc=22344@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

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

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

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

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