05nelsonm / kmp-process

Process implementation for Kotlin Multiplatform
Apache License 2.0
30 stars 1 forks source link

`Node.js` throws exception when `Process.destroy` called on Windows #108

Closed 05nelsonm closed 3 months ago

05nelsonm commented 3 months ago

See https://github.com/05nelsonm/kmp-tor/actions/runs/9531067979/job/26272143682?pr=452#step:12:2057

05nelsonm commented 3 months ago

The error code is EPERM and is attributed to the child_process.kill function. Only happening on Windows for me in kmp-tor.

See: https://github.com/nodejs/node/issues/51766

05nelsonm commented 3 months ago

Node.js version was updated from 20.10.0 to 22.0.0 which landed in kotlin 1.9.24

https://youtrack.jetbrains.com/issue/KT-67785

https://github.com/JetBrains/kotlin/releases/tag/v1.9.24

https://github.com/JetBrains/kotlin/commit/29b1b656b2b4503cb3d5ff25ad3cd5ac5175c1e5

05nelsonm commented 3 months ago

Node.js bug introduced in 21.6.2 when libuv updated from 1.47.0 to 1.48.0 in https://github.com/santigimeno/node/commit/4207227b31affb8f49728c7ae56f20b56f5240a7#diff-b6629d4d9568adae6c40988e419be1c588fb033c2d93b4fecfb3082fb3712cc6

The "potential fix" hasn't landed yet.

05nelsonm commented 3 months ago

Error in libuv introduced in https://github.com/libuv/libuv/commit/129362f35648a61ab19ab665014d2013731a986b