Open paul-marechal opened 4 years ago
I get this issue when I'm trying to kill a childProcess
that has already exited
I get this issue when I'm trying to kill a
childProcess
that has already exited
Can you provide a minimal reproduction?
Going to be exceptionally hard but ill try. Ive spent a month on a child process module I need for work and have only seen it 5-6 times.
At the time of posting this I could reliably repro otherwise I wouldnt have posted this, sadly ddnt get a repro them.
Ill give it another go tomrrow for a while, if I get it ill post one, doubt it though.
Also im on MacOS Sonoma, Node v22.3 - OP is Win
We are getting the following stack trace when killing a child_process:
From what I can make of it, it seems to be caused by the following code:
https://github.com/nodejs/node/blob/v10.x/lib/internal/child_process.js#L425-L439
Somehow,
err
seems to be undefined, making us land in the lastelse
branch, but thenerrnoException
doesn't know what to make out of it and throws the error that we see.The issue only happens in Electron, so it might not be entirely related to Node, but I was wondering if this
err
value is expected to be undefined in some circumstance?