Title: `dns.setServers.apply` triggers SIGABRT when passed an address with port 0 · Issue #65006 · nodejs/node · GitHub
Open Graph Title: `dns.setServers.apply` triggers SIGABRT when passed an address with port 0 · Issue #65006 · nodejs/node
X Title: `dns.setServers.apply` triggers SIGABRT when passed an address with port 0 · Issue #65006 · nodejs/node
Description: Version v26.5.1 Platform Linux bombe-mint 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? Run the following code with n...
Open Graph Description: Version v26.5.1 Platform Linux bombe-mint 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduc...
X Description: Version v26.5.1 Platform Linux bombe-mint 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduc...
Opengraph URL: https://github.com/nodejs/node/issues/65006
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`dns.setServers.apply` triggers SIGABRT when passed an address with port 0","articleBody":"### Version\n\nv26.5.1\n\n### Platform\n\n```text\nLinux bombe-mint 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nRun the following code with node `test.js`:\n```js\nconst dns = require('node:dns');\n\nconst callArg = [[ '1.1.1.1:0' ]];\n\ntry {\n dns.setServers.apply(dns, callArg);\n}\ncatch (e) {\n console.log(`Exception thrown: ${e} ${e.stack}`);\n}\n```\n\n### How often does it reproduce? Is there a required condition?\n\nIt reproduces reliably every time that the above code is run.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe code should work without throwing any error.\n\n### What do you see instead?\n\n```js\n # /usr/local/n/versions/node/26.5.1/bin/node[19657]: void node::cares_wrap::(anonymous namespace)::SetServers(const FunctionCallbackInfo\u003cValue> &) at ../src/cares_wrap.cc:2164\n # Assertion failed: portValue->Int32Value(env->context()).FromJust()\n\n----- Native stack trace -----\n\n 1: 0x81d228 node::Assert(node::AssertionInfo const&) [/usr/local/n/versions/node/26.5.1/bin/node]\n 2: 0x8b550b [/usr/local/n/versions/node/26.5.1/bin/node]\n 3: 0x7a67bad8fae9 \n\n----- JavaScript stack trace -----\n\n1: [dns:resolver:setServers] (node:internal/dns/utils:162:38)\n2: setServers (node:internal/dns/utils:154:30)\n3: defaultResolverSetServers (node:dns:309:12)\n4: /home/username/test.js:6:20\n5: node:internal/modules/cjs/loader:1934:14\n6: node:internal/modules/cjs/loader:2074:10\n7: node:internal/modules/cjs/loader:1656:32\n8: node:internal/modules/cjs/loader:1448:12\n9: wrapModuleLoad (node:internal/modules/cjs/loader:261:19)\n10: executeUserEntryPoint (node:internal/modules/run_main:154:5)\n\n\nAborted (core dumped)\n```\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/davidebombelli","@type":"Person","name":"davidebombelli"},"datePublished":"2026-08-04T09:58:04Z","url":"https://github.com/nodejs/node/issues/65006"}
| 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:124d1b9e-9f5b-60f6-2366-3953287cfd23 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B51C:2BD59E:4C368E:67C882:6AED1C60 |
| html-safe-nonce | 83b8d51f077855f982de55e6707350a86d7dcd0b54d99dda579bb9041a3114a3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTFDOjJCRDU5RTo0QzM2OEU6NjdDODgyOjZBRUQxQzYwIiwidmlzaXRvcl9pZCI6IjMyNjI1NzE2MDc4MjkwNjA3MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d6e7c21d7f1f92259320c038dbb5d9b39dc897dfd5bc956a50a7d263ebadf53c |
| hovercard-subject-tag | issue:5059119545 |
| 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/65006/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bce6290dc6c54758fada83089e021d3bfb50ed5f177a5d35311a41c93e1b8591/nodejs/node/issues/65006 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bce6290dc6c54758fada83089e021d3bfb50ed5f177a5d35311a41c93e1b8591/nodejs/node/issues/65006 |
| og:image:alt | Version v26.5.1 Platform Linux bombe-mint 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | davidebombelli |
| hostname | github.com |
| expected-hostname | github.com |
| None | 120085d0bcec1f427e3ab45302c8b95f873d26ad21984dc86d62ab2c10158f41 |
| 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 | e12fd03aa775dceadc5a793c3a0791e43ca256bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width