Title: Unreachable code reached when using {stdio: "overlapped"} · Issue #48476 · nodejs/node · GitHub
Open Graph Title: Unreachable code reached when using {stdio: "overlapped"} · Issue #48476 · nodejs/node
X Title: Unreachable code reached when using {stdio: "overlapped"} · Issue #48476 · nodejs/node
Description: Version 18.16.0 Platform Linux fedora 6.3.5-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 30 15:44:17 UTC 2023 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? child_process.execSync("ls", {stdio: "overlapped"})...
Open Graph Description: Version 18.16.0 Platform Linux fedora 6.3.5-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 30 15:44:17 UTC 2023 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? child_proce...
X Description: Version 18.16.0 Platform Linux fedora 6.3.5-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 30 15:44:17 UTC 2023 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? child_proce...
Opengraph URL: https://github.com/nodejs/node/issues/48476
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unreachable code reached when using {stdio: \"overlapped\"}","articleBody":"### Version\n\n18.16.0\n\n### Platform\n\nLinux fedora 6.3.5-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 30 15:44:17 UTC 2023 x86_64 GNU/Linux\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n```\r\nchild_process.execSync(\"ls\", {stdio: \"overlapped\"})\r\n```\r\n\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nExecute the subprocess, and return some object.\r\nAccording to the documentation, `pipe` should be used on non-Windows systems.\n\n### What do you see instead?\n\nA segfault.\r\n```\r\nnode[107754]: ../../src/spawn_sync.cc:934:int node::SyncProcessRunner::ParseStdioOption(int, v8::Local\u003cv8::Object>): Assertion `\"Unreachable code reached\" \": \" \"invalid child stdio type\"' failed.\r\n 1: 0x7ff7073fde1c node::Abort() [/lib64/libnode.so.108]\r\n 2: 0x7ff7073fdeab [/lib64/libnode.so.108]\r\n 3: 0x7ff7074dbbe9 node::SyncProcessRunner::ParseStdioOption(int, v8::Local\u003cv8::Object>) [/lib64/libnode.so.108]\r\n 4: 0x7ff7074dbeda node::SyncProcessRunner::ParseStdioOptions(v8::Local\u003cv8::Value>) [/lib64/libnode.so.108]\r\n 5: 0x7ff7074dcc5d node::SyncProcessRunner::ParseOptions(v8::Local\u003cv8::Value>) [/lib64/libnode.so.108]\r\n 6: 0x7ff7074dce53 node::SyncProcessRunner::TryInitializeAndRunLoop(v8::Local\u003cv8::Value>) [/lib64/libnode.so.108]\r\n 7: 0x7ff7074dd008 node::SyncProcessRunner::Run(v8::Local\u003cv8::Value>) [/lib64/libnode.so.108]\r\n 8: 0x7ff7074dd127 node::SyncProcessRunner::Spawn(v8::FunctionCallbackInfo\u003cv8::Value> const&) [/lib64/libnode.so.108]\r\n 9: 0x7ff7086c60f6 v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) [/lib64/libnode.so.108]\r\n10: 0x7ff7086c66b1 [/lib64/libnode.so.108]\r\n11: 0x7ff7086c6fad v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/lib64/libnode.so.108]\r\n12: 0x7ff708559539 [/lib64/libnode.so.108]\r\nAborted (core dumped)\r\n```\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/madebr","@type":"Person","name":"madebr"},"datePublished":"2023-06-16T22:07:05Z","url":"https://github.com/nodejs/node/issues/48476"}
| 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:08288bc7-8b66-2131-4a3a-36e8aa9fadaf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C32:7DD00:680BA5:8CF784:6AED27CD |
| html-safe-nonce | 7aa47253bec9213a61d1405115c49376de6f6ab189612ebabc978b64f2cccd13 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzMyOjdERDAwOjY4MEJBNTo4Q0Y3ODQ6NkFFRDI3Q0QiLCJ2aXNpdG9yX2lkIjoiMzg2NzI0NzI0MDUxMDkzNDUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a946b2e8ad6de3f1d510f756f0e45a87a2e361dc4a27ef92faf0eaaafb44e2eb |
| hovercard-subject-tag | issue:1761408067 |
| 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/48476/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e3c78b90a71ce6340fe12ce80c1668c2e6bf5afe9e4d5579be3851764555d52f/nodejs/node/issues/48476 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e3c78b90a71ce6340fe12ce80c1668c2e6bf5afe9e4d5579be3851764555d52f/nodejs/node/issues/48476 |
| og:image:alt | Version 18.16.0 Platform Linux fedora 6.3.5-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 30 15:44:17 UTC 2023 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? child_proce... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | madebr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2 |
| 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 | 98b41fa4b5635ceb45a4c54320fced73817ff290 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width