Title: NodeJS segfaults when trying to debug this code · Issue #60580 · nodejs/node · GitHub
Open Graph Title: NodeJS segfaults when trying to debug this code · Issue #60580 · nodejs/node
X Title: NodeJS segfaults when trying to debug this code · Issue #60580 · nodejs/node
Description: Version v24.10.0 Platform Linux nix-desktop-evo4b5 6.17.5 #1-NixOS SMP PREEMPT_DYNAMIC Thu Oct 23 14:24:41 UTC 2025 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? function crash() { const thing = []; const othe...
Open Graph Description: Version v24.10.0 Platform Linux nix-desktop-evo4b5 6.17.5 #1-NixOS SMP PREEMPT_DYNAMIC Thu Oct 23 14:24:41 UTC 2025 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? functio...
X Description: Version v24.10.0 Platform Linux nix-desktop-evo4b5 6.17.5 #1-NixOS SMP PREEMPT_DYNAMIC Thu Oct 23 14:24:41 UTC 2025 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? functio...
Opengraph URL: https://github.com/nodejs/node/issues/60580
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NodeJS segfaults when trying to debug this code","articleBody":"### Version\n\nv24.10.0\n\n### Platform\n\n```text\nLinux nix-desktop-evo4b5 6.17.5 #1-NixOS SMP PREEMPT_DYNAMIC Thu Oct 23 14:24:41 UTC 2025 x86_64 GNU/Linux\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n```js\nfunction crash() {\n const thing = [];\n const otherThing = [];\n // set your breakpoint on line 5, the line starting with for (...), and attempt to step into the loop\n for (const item in thing) {\n otherThing.map(() =\u003e item);\n }\n}\n\ncrash()\n```\n\n### How often does it reproduce? Is there a required condition?\n\ni can reproduce it 100% of the time\n\n### What is the expected behavior? Why is that the expected behavior?\n\nnodejs does not segfault while debugging\n\n### What do you see instead?\n\nnodejs segfaults while debugging\n\n### Additional information\n\nthis does not happen when i debug the script while its running in the browser (Chromium 141.0.7390.122)\n\n\u003cdetails\u003e\u003csummary\u003ebacktrace from coredump\u003c/summary\u003e\n\u003cp\u003e\n\n```\n#0 0x0000560f095a63f4 in v8::internal::ScopeIterator::UnwrapEvaluationContext() ()\n#1 0x0000560f095a4d24 in v8::internal::DebugScopeIterator::Advance() ()\n#2 0x0000560f09cdfa15 in v8_inspector::V8DebuggerAgentImpl::currentCallFrames(std::unique_ptr\u003cstd::vector\u003cstd::unique_ptr\u003cv8_inspector::protocol::Debugger::CallFrame, std::default_delete\u003cv8_inspector::protocol::Debugger::CallFrame\u003e \u003e, std::allocator\u003cstd::unique_ptr\u003cv8_inspector::protocol::Debugger::CallFrame, std::default_delete\u003cv8_inspector::protocol::Debugger::CallFrame\u003e \u003e \u003e \u003e, std::default_delete\u003cstd::vector\u003cstd::unique_ptr\u003cv8_inspector::protocol::Debugger::CallFrame, std::default_delete\u003cv8_inspector::protocol::Debugger::CallFrame\u003e \u003e, std::allocator\u003cstd::unique_ptr\u003cv8_inspector::protocol::Debugger::CallFrame, std::default_delete\u003cv8_inspector::protocol::Debugger::CallFrame\u003e \u003e \u003e \u003e \u003e \u003e*) ()\n#3 0x0000560f09ce5fa5 in v8_inspector::V8DebuggerAgentImpl::didPause(int, v8::Local\u003cv8::Value\u003e, std::vector\u003cint, std::allocator\u003cint\u003e \u003e const\u0026, v8::debug::ExceptionType, bool, v8::base::EnumSet\u003cv8::debug::BreakReason, int\u003e) ()\n#4 0x0000560f09ced8b8 in std::_Function_handler\u003cvoid (v8_inspector::V8InspectorSessionImpl*), v8_inspector::V8Debugger::handleProgramBreak(v8::Local\u003cv8::Context\u003e, v8::Local\u003cv8::Value\u003e, std::vector\u003cint, std::allocator\u003cint\u003e \u003e const\u0026, v8::base::EnumSet\u003cv8::debug::BreakReason, int\u003e, v8::debug::ExceptionType, bool)::{lambda(v8_inspector::V8InspectorSessionImpl*)#2}\u003e::_M_invoke(std::_Any_data const\u0026, v8_inspector::V8InspectorSessionImpl*\u0026\u0026) ()\n#5 0x0000560f09d022c3 in v8_inspector::V8InspectorImpl::forEachSession(int, std::function\u003cvoid (v8_inspector::V8InspectorSessionImpl*)\u003e const\u0026) ()\n#6 0x0000560f09cf096e in v8_inspector::V8Debugger::handleProgramBreak(v8::Local\u003cv8::Context\u003e, v8::Local\u003cv8::Value\u003e, std::vector\u003cint, std::allocator\u003cint\u003e \u003e const\u0026, v8::base::EnumSet\u003cv8::debug::BreakReason, int\u003e, v8::debug::ExceptionType, bool) ()\n#7 0x0000560f09cf0afa in v8_inspector::V8Debugger::BreakProgramRequested(v8::Local\u003cv8::Context\u003e, std::vector\u003cint, std::allocator\u003cint\u003e \u003e const\u0026, v8::base::EnumSet\u003cv8::debug::BreakReason, int\u003e) ()\n#8 0x0000560f095baab2 in v8::internal::Debug::OnDebugBreak(v8::internal::DirectHandle\u003cv8::internal::FixedArray\u003e, v8::internal::StepAction, v8::base::EnumSet\u003cv8::debug::BreakReason, int\u003e) ()\n#9 0x0000560f095baf2c in v8::internal::Debug::Break(v8::internal::JavaScriptFrame*, v8::internal::DirectHandle\u003cv8::internal::JSFunction\u003e) ()\n#10 0x0000560f09bf6203 in v8::internal::Runtime_DebugBreakOnBytecode(int, unsigned long*, v8::internal::Isolate*) ()\n#11 0x00007f6837e76876 in ?? ()\n#12 0x0000560f38837aa0 in ?? ()\n#13 0x00007fff61397cf0 in ?? ()\n```\n\n\u003c/p\u003e\n\u003c/details\u003e \n","author":{"url":"https://github.com/sadan4","@type":"Person","name":"sadan4"},"datePublished":"2025-11-05T02:06:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/60580/node/issues/60580"}
| 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:93646ae8-aaf7-a0e2-8685-5b0c988622d6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82F6:46801:EA8B16:1385452:69698F08 |
| html-safe-nonce | c56ba17a703015c50f8a45b8a200e82f7190f7ea7f646f12d361a2cd324d2d32 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkY2OjQ2ODAxOkVBOEIxNjoxMzg1NDUyOjY5Njk4RjA4IiwidmlzaXRvcl9pZCI6IjQ1Nzg0NTU5MzAyMzE1Nzg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 40f8099ba43917fdb7006d8ee76642cb9a2874c3cd1415c76350d26456ca8905 |
| hovercard-subject-tag | issue:3588792932 |
| 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/60580/issue_layout |
| twitter:image | https://opengraph.githubassets.com/788289c357f51fef615fea2b3f810ae3e5458e4f89685bd70172390fa921e38e/nodejs/node/issues/60580 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/788289c357f51fef615fea2b3f810ae3e5458e4f89685bd70172390fa921e38e/nodejs/node/issues/60580 |
| og:image:alt | Version v24.10.0 Platform Linux nix-desktop-evo4b5 6.17.5 #1-NixOS SMP PREEMPT_DYNAMIC Thu Oct 23 14:24:41 UTC 2025 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? functio... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sadan4 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width