Closed
Description
- Version: v8.9.2
- Platform: Windows 10 64bits
The following simple test crashes the node process on Windows. It works fine on Linux.
const {spawn} = require('child_process');
if (process.argv.length <= 2) {
// parent
const child2 = spawn(process.argv0, [process.argv[1], '.'], {
stdio: ['pipe', 'ignore', 'ignore'],
});
const child1 = spawn(process.argv0, [process.argv[1], '.'], {
stdio: ['pipe', child2.stdin, 'ignore'],
});
setInterval(() => child1.stdin.write(`.`), 1);
} else {
// children
process.stdin.pipe(process.stdout);
}
The error is:
Exception thrown: write access violation.
req was 0x2275CA37430.
It occurs in deps/uv/src/win/core.c:439.
I got the stack traces from a self-compiled build, but it also crashes with the official binary.