Title: node {16,17,18} doesn't respect spawn timeout and hangs · Issue #43704 · nodejs/node · GitHub
Open Graph Title: node {16,17,18} doesn't respect spawn timeout and hangs · Issue #43704 · nodejs/node
X Title: node {16,17,18} doesn't respect spawn timeout and hangs · Issue #43704 · nodejs/node
Description: Version 16.* Platform linux Linux f092196b2008 5.10.104-linuxkit #1 SMP Thu Mar 17 17:08:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux What steps will reproduce the bug? I've created a demo using docker so you can easily swap node versions ...
Open Graph Description: Version 16.* Platform linux Linux f092196b2008 5.10.104-linuxkit #1 SMP Thu Mar 17 17:08:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux What steps will reproduce the bug? I've created a demo using dock...
X Description: Version 16.* Platform linux Linux f092196b2008 5.10.104-linuxkit #1 SMP Thu Mar 17 17:08:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux What steps will reproduce the bug? I've created a demo using ...
Opengraph URL: https://github.com/nodejs/node/issues/43704
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"node {16,17,18} doesn't respect spawn timeout and hangs","articleBody":"### Version\r\n16.*\r\n\r\n### Platform\r\nlinux\r\n`Linux f092196b2008 5.10.104-linuxkit #1 SMP Thu Mar 17 17:08:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux`\r\n\r\n\r\n### What steps will reproduce the bug?\r\n\r\nI've created a demo using docker so you can easily swap node versions and see the bug.\r\nThat being said, I'm sharing the tarball as bas64 because I wasn't sure if you'd like to download tarballs...that being said you may also not want to decode b64 🤷♂️\r\n\r\ndownload here if you'd like: [poc\u003cvia wetransfer>](https://wetransfer.com/downloads/4395c16ad0eaf6ff6492d67b56060af420220706154704/4edc045984510764c4a4f8980d82ffe720220706154716/0d769f?utm_campaign=WT_email_tracking&utm_content=general&utm_medium=download_button&utm_source=notify_recipient_email)\r\n\r\nor run the following:\r\n```sh\r\nbase64 -d \u003c\u003c\u003c H4sIACurxWIAA+1YbWvbMBDOZ/+KqzfqZCSyZcsxBLoLjpJp+fRKchuVA7HcQLfB912y9ZxSdkuAJi4Xey5PvE9cDAmJGiAX/3UGo2ZKMJcTiW8YGH8gJ90G40e6F+sY9W+ECB7OGNJ3Ek7+SxFYlJFjHX5x06wyr/nuzL/BHvdBjhVTOY+Xnn+32zZQ5baw1BMjCIc75gpjynudiZhOqa5acQ8Oqc56EMCnQLeSidAS7M8M9piPPcyavwlkP1Bp3LEElpVDMmHLiEP8B/7S/4T38eS/x7xSM3/TeDToP8NFOd7kvQiYVPD+N4ffP2wNwCbZ4Vh7PYPjgFJyhsf948Gxwf9vf0jOAGtE2YbTJbG9Bf6IUw4rVXg5QHZKpFnUx7PEiqqKQYfUf8RQhx9/+O6/tsIkL0kcHUx1um/G9zKv9dV+o+xV+v/JhDxVBRwLbLwMj28SqM57EBOf85YTptWNJFV31mW84gKYbUMQ3nzhKKEj5vWofoNS8cIIdm3GqFppdnUap9YTI4cJonVtpCdnY9l2+lc0HzIBbVO2zJmETPek24TmrPCakPBppTPih6WG/jOm7fuhtMBVCl6RWW45963/wU6NRX/B/AY/cdBIPnvup5b6/8mUOY/C6PzcEzlLcDTp4+xTv89n9zov0PU/e/X+r8ZXBsga/lwSs0emPIomG1lkDItGE+VDSMHOaU1piLKWVYsekrjNGT62+odoK2lo5AdKoA0ZDld3AfKmUYTDtYXmiQcRjmfgkgozaS437htWbC9rV8mgGzdrQaXg811gHN6dcnzWEU4OdWWcFZMeH4zsYRFNBV6XXuHu6Yxr++MP6Dk/3J/q4mx9v3vBff03wscXPN/E7hbYqljICs6SbtLVdLR4qgsyZrN1s77O66fOY9hynNVAFqtti7ZuurTAtuGEBJeyLqwpty/jnvvfykGTx/j8e9/3/fk/e8iVM2EbuOV879GjRqvF78BY21wXQAgAAA= > out.tar.gz\r\n```\r\nthen `tar -zxf out.tar.gz` and you'll see the following files:\r\n```sh\r\nDockerfile build-n-run.sh index.js node_modules pkg\r\n```\r\n\r\nyou can run the `build-n-run.sh` that I've created (which is a silly 2liner), or build and run it yourself\r\n\r\n### Steps to Reproduce\r\n\r\n1. Run something like:\r\n```js\r\nconst {spawnSync} = require('child_process')\r\n\r\nconsole.log('Spawning...')\r\nspawnSync('npm',['install','./pkg','--verbose'], {stdio:'inherit', timeout:1000*3})\r\nconsole.log('spawner bye')\r\n```\r\nand make the package preinstall script for `pkg` to hang (via long `setTimeout` that will make it busy)\r\n3. Expect `ETIMEOUT`, but get nothing\r\n","author":{"url":"https://github.com/aviadhahami","@type":"Person","name":"aviadhahami"},"datePublished":"2022-07-06T15:54:49Z","url":"https://github.com/nodejs/node/issues/43704"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fb6a2b9a-ee39-b2d8-bc87-f2ba3cfa7be4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C004:236B69:8A78:BC6C:6AED38E4 |
| html-safe-nonce | c3b5b91e51cbdd1cea2fc2498e9376ecf5697558ca348bb19fe86b8f572a3029 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDA0OjIzNkI2OTo4QTc4OkJDNkM6NkFFRDM4RTQiLCJ2aXNpdG9yX2lkIjoiNzM3MTIyOTY3MzU2OTQ2NjU5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7c99137672b1475cd38c4d0da9881970aa026a8a94774010cc9072d03d97e3f6 |
| hovercard-subject-tag | issue:1296044542 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/43704/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b6103e2e954f1d898b518cf4b53b3a45b3f1a4ef2431aa7b046b945cf5f9b180/nodejs/node/issues/43704 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b6103e2e954f1d898b518cf4b53b3a45b3f1a4ef2431aa7b046b945cf5f9b180/nodejs/node/issues/43704 |
| og:image:alt | Version 16.* Platform linux Linux f092196b2008 5.10.104-linuxkit #1 SMP Thu Mar 17 17:08:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux What steps will reproduce the bug? I've created a demo using dock... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aviadhahami |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26c92a9388ddfad3fa88d132b5d5f0b4747030233dcc4e5efb05f1cbae152184 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c629ad99c254d306375fc8354d04321c2c362236 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width