Description
On Windows 10 with node 6.8.0 x64, multiple tests in test/parallel/test-stream-pipeline.js
are failing with OOM errors.
> node test\parallel\test-stream-pipeline.js
TAP version 13
ok 1 - sync run
[..]
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
I suspect the failures are related to one another, but I do not fully understand what is happening, so let's start by diving into one of them:
readable-stream/test/parallel/test-stream-pipeline.js
Lines 183 to 212 in 9004c81
I think this test goes into an endless loop. The use of setImmediate
to destroy the HTTP response, means that read
on L186 will be continuously called, tick after tick. But if that's true, why doesn't it happen on other versions/platforms too?
@mcollina any idea?
Because pipeline
was introduced in node 10 and the error only occurs on node 6 (I did not yet test versions between 6 and 10), I reckoned readable-stream
is the proper repo for this issue - correct me if I'm wrong.