Title: quic: crash when incoming unidirectional stream has no onstream handler · Issue #64030 · nodejs/node · GitHub
Open Graph Title: quic: crash when incoming unidirectional stream has no onstream handler · Issue #64030 · nodejs/node
X Title: quic: crash when incoming unidirectional stream has no onstream handler · Issue #64030 · nodejs/node
Description: When a QUIC server accepts a session without .onstream, and the client connects with a unidirectional stream with a body, Node crashes with SIGSEGV If I use a bidirectional stream instead, it works. If I create the unidirectional stream ...
Open Graph Description: When a QUIC server accepts a session without .onstream, and the client connects with a unidirectional stream with a body, Node crashes with SIGSEGV If I use a bidirectional stream instead, it works...
X Description: When a QUIC server accepts a session without .onstream, and the client connects with a unidirectional stream with a body, Node crashes with SIGSEGV If I use a bidirectional stream instead, it works...
Opengraph URL: https://github.com/nodejs/node/issues/64030
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"quic: crash when incoming unidirectional stream has no onstream handler","articleBody":"When a QUIC server accepts a session without `.onstream`, and the client connects with a unidirectional stream with a body, Node crashes with `SIGSEGV`\n\nIf I use a bidirectional stream instead, it works. If I create the unidirectional stream without a body, it also does not crash.\n\nExpected behaviour would be to safely destroy or at least not crash.\n\nRepro: \n\n```js\n\nimport {readFileSync} from 'node:fs';\nimport {createPrivateKey} from 'node:crypto';\nimport {listen, connect} from 'node:quic';\n\nconst key = createPrivateKey(readFileSync(new URL('./key.pem', import.meta.url)));\nconst cert = readFileSync(new URL('./cert.pem', import.meta.url));\n\nconst serverEndpoint = await listen(async (session) =\u003e {\n await session.opened;\n console.log('Server session opened');\n\n // Intentionally do not install .onstream\n}, {\n sni: {'*': {keys: [key], certs: [cert]}},\n alpn: ['repro'],\n});\n\nconst clientSession = await connect(serverEndpoint.address, {\n servername: 'localhost',\n alpn: 'repro',\n ca: cert,\n});\n\nawait clientSession.opened;\nconsole.log('Client session opened');\n\nawait clientSession.createUnidirectionalStream({\n body: 'something something darkside'\n});\n\nconsole.log('Unidirectional stream created');\n\n```\n\nOutputs\n```\n(node:99156) ExperimentalWarning: quic is an experimental feature and might change at any time\n(Use `node --trace-warnings ...` to show where the warning was created)\nClient session opened\nUnidirectional stream created\nServer session opened\n(node:99156) Warning: A new stream was received but no onstream callback was provided\n(node:99156) Warning: A new stream was received but no onstream callback was provided\n(node:99156) Warning: A new stream was received but no onstream callback was provided\nfish: Job 1, './out/Release/node --experiment…' terminated by signal SIGSEGV (Address boundary error)\n```","author":{"url":"https://github.com/efekrskl","@type":"Person","name":"efekrskl"},"datePublished":"2026-06-20T15:29:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/64030/node/issues/64030"}
| 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:6b002dea-33a9-6c1e-a887-b085de7bfe8a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBBE:FB596:A44C42:EC2CC6:6A4E4502 |
| html-safe-nonce | 00d4fcd34e3b09ad1cdf098155d969201ac110f545c8d3ecd423c3f16fce4b23 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkJFOkZCNTk2OkE0NEM0MjpFQzJDQzY6NkE0RTQ1MDIiLCJ2aXNpdG9yX2lkIjoiNzkyMDEzMjgzMzM1OTU3ODM3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 18df547049820469a013490a302ed003f9d254b7f8ceb0c9bdf6b830df100aac |
| hovercard-subject-tag | issue:4707281019 |
| 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/64030/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7d01adef0e7bb2b33406e04febee0b6c998a871a469a7a08aaee067b61205b61/nodejs/node/issues/64030 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7d01adef0e7bb2b33406e04febee0b6c998a871a469a7a08aaee067b61205b61/nodejs/node/issues/64030 |
| og:image:alt | When a QUIC server accepts a session without .onstream, and the client connects with a unidirectional stream with a body, Node crashes with SIGSEGV If I use a bidirectional stream instead, it works... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | efekrskl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | 9fabff9b8b127e686a3ec86f91422e818056ca2c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width