Title: Segfault with recent versions of Node and native VS Code debugging · Issue #58245 · nodejs/node · GitHub
Open Graph Title: Segfault with recent versions of Node and native VS Code debugging · Issue #58245 · nodejs/node
X Title: Segfault with recent versions of Node and native VS Code debugging · Issue #58245 · nodejs/node
Description: Version v23.11.0, v24.0.0, v24.0.1 Platform Linux P3 6.8.0-59-generic #61~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:03:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? Unfortunately ...
Open Graph Description: Version v23.11.0, v24.0.0, v24.0.1 Platform Linux P3 6.8.0-59-generic #61~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:03:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What step...
X Description: Version v23.11.0, v24.0.0, v24.0.1 Platform Linux P3 6.8.0-59-generic #61~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:03:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What step...
Opengraph URL: https://github.com/nodejs/node/issues/58245
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segfault with recent versions of Node and native VS Code debugging","articleBody":"### Version\n\nv23.11.0, v24.0.0, v24.0.1\n\n### Platform\n\n```text\nLinux P3 6.8.0-59-generic #61~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:03:15 UTC 2 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\nUnfortunately I am unable to provide a minimal reproduction repository.\n\nI am running my code via VS-Codium's native debugging (launch.json) and on recent versions I receive `Segmentation fault (core dumped)`. When I execute the same command (the console output of the command VS-Codium runs, but without VS-Codium attaching its native debugger to node) on command line the application executes as expected.\n\nThe command VS-Codium executes is the following;\n```\n/usr/bin/env TS_NODE_PROJECT=/path/to/tsconfig.json 'ENV_ONE=VALUE_ONE' 'ENV_TWO=VALUE_TWO' ENV_THREE=VALUE_THREE ENV_FOUR=VALUE_FOUR 'NODE_OPTIONS= --require /usr/share/codium/resources/app/extensions/ms-vscode.js-debug/src/bootloader.js --inspect-publish-uid=http' 'VSCODE_INSPECTOR_OPTIONS=:::{\"inspectorIpc\":\"/tmp/node-cdp.83350-f9cd27da-1.sock\",\"deferredMode\":false,\"waitForDebugger\":\"\",\"execPath\":\"/usr/local/bin/node\",\"onlyEntrypoint\":false,\"autoAttachMode\":\"always\",\"fileCallback\":\"/tmp/node-debug-callback-f9d390cd3c6fd40d\"}' /usr/local/bin/node --require ts-node/register ./src/application/main.ts \n```\n\nI am also using the `n` npm package to change node versions, so it is possible this is somehow an issue. That said, when I use `n` to switch to any version prior to `23.11.0`, such as `23.10.0`, everything works as expected.\n\n### How often does it reproduce? Is there a required condition?\n\nHappens every time.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe application starts as normal, stopping on breakpoints within the code editor as with previous versions.\n\n### What do you see instead?\n\n```\nPID 83717 received SIGSEGV for address: 0x0\n.../node_modules/segfault-handler/build/Release/segfault-handler.node(+0x33b0)[0x7d1e7607a3b0]\n/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7d1e75a42520]\n/usr/local/bin/node(_ZN2v87Context5EnterEv+0x11)[0x1334fb1]\n/usr/local/bin/node(_ZN12v8_inspector14InjectedScript5Scope10initializeEv+0xf8)[0x1b0c838]\n/usr/local/bin/node(_ZN12v8_inspector18V8RuntimeAgentImpl8evaluateERKNS_8String16ESt8optionalIS1_ES4_IbES6_S4_IiES6_S6_S6_S6_S6_S4_IdES6_S6_S6_S5_St10unique_ptrINS_8protocol7Runtime20SerializationOptionsESt14default_deleteISC_EES9_INSB_7Backend16EvaluateCallbackESD_ISH_EE+0x211)[0x1b84421]\n/usr/local/bin/node(_ZN12v8_inspector8protocol7Runtime20DomainDispatcherImpl8evaluateERKN8v8_crdtp12DispatchableE+0x2a4)[0x1be8ec4]\n/usr/local/bin/node(_ZN8v8_crdtp14UberDispatcher14DispatchResult3RunEv+0x1b)[0x1bab71b]\n/usr/local/bin/node(_ZN12v8_inspector22V8InspectorSessionImpl23dispatchProtocolMessageENS_10StringViewE+0x1b8)[0x1b71318]\n/usr/local/bin/node[0x12542b4]\n/usr/local/bin/node[0x12782b1]\n/usr/local/bin/node[0x1275f3e]\n/usr/local/bin/node[0x12762a3]\n/usr/local/bin/node[0x1276c54]\n/usr/local/bin/node(_ZN4node11Environment21RunAndClearInterruptsEv+0x148)[0xfe1088]\n/usr/local/bin/node[0xfe10f2]\n/usr/local/bin/node(_ZN2v88internal7Isolate27InvokeApiInterruptCallbacksEv+0x6a)[0x14f5bca]\n/usr/local/bin/node(_ZN2v88internal10StackGuard16HandleInterruptsENS1_14InterruptLevelE+0x12f)[0x151507f]\n/usr/local/bin/node(_ZN2v88internal18Runtime_StackGuardEiPmPNS0_7IsolateE+0x8e)[0x1a7a01e]\n[0x7d1e17e76636]\nSegmentation fault (core dumped)\n```\n\n### Additional information\n\nOutput of `find node_modules -iname *.node`\n```\nnode_modules/@napi-rs/canvas-linux-x64-musl/skia.linux-x64-musl.node\nnode_modules/@napi-rs/canvas-linux-x64-gnu/skia.linux-x64-gnu.node\nnode_modules/segfault-handler/build/Release/segfault-handler.node\nnode_modules/segfault-handler/build/Release/obj.target/segfault-handler.node\n```\n\nOutput of `which node`\n```\n/usr/local/bin/node\n```\n\nOutput of `node --version`\n```\nv24.0.1\n```\n\nA possible red-herring, but could be related;\n```\n$ n i 24.0.1\n copying : node/24.0.1\n installed : v24.0.1 (with npm 11.3.0)\n\nNote: the node command changed location and the old location may be remembered in your current shell.\n old : /usr/bin/node\n new : /usr/local/bin/node\nIf \"node --version\" shows the old version then start a new shell, or reset the location hash with:\nhash -r (for bash, zsh, ash, dash, and ksh)\nrehash (for csh and tcsh)\n```","author":{"url":"https://github.com/darcyrush","@type":"Person","name":"darcyrush"},"datePublished":"2025-05-09T06:27:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/58245/node/issues/58245"}
| 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:3102dfef-50d3-0ef1-6976-42030cc3aed0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2DA:4908F:96E02:C7C50:6A4D18D9 |
| html-safe-nonce | f7643f21a705f2f5bcb2e2ddd5400d4bdd543a01fac1c7206ad7fe6cf81ac35b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkRBOjQ5MDhGOjk2RTAyOkM3QzUwOjZBNEQxOEQ5IiwidmlzaXRvcl9pZCI6IjkwNzYyMDEwMDI4MDYwODk5NDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 03b871845fd6e40ccb3f145b9ea2fcbbcc7a673d9929b3bb42d2bd1e4a875743 |
| hovercard-subject-tag | issue:3051081153 |
| 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/58245/issue_layout |
| twitter:image | https://opengraph.githubassets.com/50da04c1591c65fdc7315ae187f107b5026e1f4ac4a2eb39f1d401f994032098/nodejs/node/issues/58245 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/50da04c1591c65fdc7315ae187f107b5026e1f4ac4a2eb39f1d401f994032098/nodejs/node/issues/58245 |
| og:image:alt | Version v23.11.0, v24.0.0, v24.0.1 Platform Linux P3 6.8.0-59-generic #61~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:03:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What step... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | darcyrush |
| hostname | github.com |
| expected-hostname | github.com |
| None | bcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c |
| 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 | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width