Description
- Version: v10.15.3
- Platform: Linux zagentXXXX 4.4.0-141-generic Graceful FS by default #167~14.04.1-Ubuntu SMP Mon Dec 10 13:20:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
- Subsystem: net
I've debated whether this belongs in node/help, but due to potential of being a node bug I've decided to post here (apologize in advance if it turns out otherwise).
We have a crash happening on our production servers a few times a day (especially during high load times):
TypeError: Cannot read property 'finishWrite' of null
at JSStreamWrap.finishWrite (internal/wrap_js_stream.js:195:12)
at Immediate.setImmediate (internal/wrap_js_stream.js:218:12)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
I was unable to see any possible code path that could cause this._handle
to be null before the call to doClose
as it's only triggered by calling this._handle.close()
.
Async paths printing would have come very useful here, however, this is node 10.x.
I've done grep on all our code as well as all node-modules for anything that could relate to 'games' with "_handle = "
or doClose
, nothing pop'ed up.
I've put DEBUG_NODE=net,stream_wrap on one of the servers to avoid overall network degradation (waiting for crash to re-occur).
Note: server is a large traffic networking proxy application involving http/s/2.
I would like to give more info (specifically setImmediate
async callstack), however, I'm unsure how to continue, would appreciate any advice.