Title: Fatal Error in V8 Debugging Context on Node.js v23.7.0 · Issue #57606 · nodejs/node · GitHub
Open Graph Title: Fatal Error in V8 Debugging Context on Node.js v23.7.0 · Issue #57606 · nodejs/node
X Title: Fatal Error in V8 Debugging Context on Node.js v23.7.0 · Issue #57606 · nodejs/node
Description: Version 23.7.0 Platform Darwin Apples-MacBook-Pro.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 arm64 Subsystem No response What steps will reproduce the bug? Run a scri...
Open Graph Description: Version 23.7.0 Platform Darwin Apples-MacBook-Pro.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 arm64 Subsystem No response What ...
X Description: Version 23.7.0 Platform Darwin Apples-MacBook-Pro.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 arm64 Subsystem No response What ...
Opengraph URL: https://github.com/nodejs/node/issues/57606
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fatal Error in V8 Debugging Context on Node.js v23.7.0","articleBody":"### Version\n\n23.7.0\n\n### Platform\n\n```text\nDarwin Apples-MacBook-Pro.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 arm64\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n- Run a script that involves debugging, breakpoints, or function scope evaluation\n- Observe the crash with the fatal error\n\n### How often does it reproduce? Is there a required condition?\n\nThe issue reproduces consistently when running a script that involves debugging, particularly with breakpoints, function scope evaluation, or closures.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe debugger should pause execution at the debugger; statement and allow the user to inspect variables within the function's scope without causing a crash or becoming unresponsive.\n\n### What do you see instead?\n\nI encountered a fatal error while running Node.js v23.7.0, leading to a crash with the following message:\n\n# Fatal error in , line 0 \n# Check failed: needs_context \u0026\u0026 current_scope_ == closure_scope_ \u0026\u0026 current_scope_-\u003eis_function_scope() \u0026\u0026 !function_.is_null() implies function_-\u003econtext() != *context_. \n\n\n### Additional information\n\nComplete Error log trace if required\n\n#\n# Fatal error in , line 0\n# Check failed: needs_context \u0026\u0026 current_scope_ == closure_scope_ \u0026\u0026 current_scope_-\u003eis_function_scope() \u0026\u0026 !function_.is_null() implies function_-\u003econtext() != *context_.\n#\n#\n#\n#FailureMessage Object: 0x16bc90698\n----- Native stack trace -----\n\n 1: 0x1044899ac node::NodePlatform::GetStackTracePrinter()::$_0::__invoke() [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n 2: 0x104f00f88 V8_Fatal(char const*, ...) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n 3: 0x1046b264c v8::internal::ScopeIterator::start_position() [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n 4: 0x1046b2fec v8::internal::ScopeIterator::VisitLocalScope(std::__1::function\u003cbool (v8::internal::Handle\u003cv8::internal::String\u003e, v8::internal::Handle\u003cv8::internal::Object\u003e, v8::internal::ScopeIterator::ScopeType)\u003e const\u0026, v8::internal::ScopeIterator::Mode, v8::internal::ScopeIterator::ScopeType) const [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n 5: 0x1046b254c v8::internal::ScopeIterator::ScopeObject(v8::internal::ScopeIterator::Mode) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n 6: 0x104aa2fb0 v8_inspector::V8DebuggerAgentImpl::currentCallFrames(std::__1::unique_ptr\u003cstd::__1::vector\u003cstd::__1::unique_ptr\u003cv8_inspector::protocol::Debugger::CallFrame, std::__1::default_delete\u003cv8_inspector::protocol::Debugger::CallFrame\u003e\u003e, std::__1::allocator\u003cstd::__1::unique_ptr\u003cv8_inspector::protocol::Debugger::CallFrame, std::__1::default_delete\u003cv8_inspector::protocol::Debugger::CallFrame\u003e\u003e\u003e\u003e, std::__1::default_delete\u003cstd::__1::vector\u003cstd::__1::unique_ptr\u003cv8_inspector::protocol::Debugger::CallFrame, std::__1::default_delete\u003cv8_inspector::protocol::Debugger::CallFrame\u003e\u003e, std::__1::allocator\u003cstd::__1::unique_ptr\u003cv8_inspector::protocol::Debugger::CallFrame, std::__1::default_delete\u003cv8_inspector::protocol::Debugger::CallFrame\u003e\u003e\u003e\u003e\u003e\u003e*) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n 7: 0x104aa280c v8_inspector::V8DebuggerAgentImpl::didPause(int, v8::Local\u003cv8::Value\u003e, std::__1::vector\u003cint, std::__1::allocator\u003cint\u003e\u003e const\u0026, v8::debug::ExceptionType, bool, v8::base::EnumSet\u003cv8::debug::BreakReason, int\u003e) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n 8: 0x104ab56b4 v8_inspector::V8InspectorImpl::forEachSession(int, std::__1::function\u003cvoid (v8_inspector::V8InspectorSessionImpl*)\u003e const\u0026) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n 9: 0x104aaaa40 v8_inspector::V8Debugger::handleProgramBreak(v8::Local\u003cv8::Context\u003e, v8::Local\u003cv8::Value\u003e, std::__1::vector\u003cint, std::__1::allocator\u003cint\u003e\u003e const\u0026, v8::base::EnumSet\u003cv8::debug::BreakReason, int\u003e, v8::debug::ExceptionType, bool) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n10: 0x1046ba754 v8::internal::Debug::OnDebugBreak(v8::internal::Handle\u003cv8::internal::FixedArray\u003e, v8::internal::StepAction, v8::base::EnumSet\u003cv8::debug::BreakReason, int\u003e) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n11: 0x1046ba074 v8::internal::Debug::Break(v8::internal::JavaScriptFrame*, v8::internal::Handle\u003cv8::internal::JSFunction\u003e) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n12: 0x104a214c4 v8::internal::Runtime_DebugBreakOnBytecode(int, unsigned long*, v8::internal::Isolate*) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n13: 0x10420fc74 Builtins_CEntry_Return2_ArgvOnStack_NoBuiltinExit [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n14: 0x1042e0368 Builtins_DebugBreak3Handler [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n15: 0x104178838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n16: 0x1041b5e20 Builtins_AsyncFunctionAwaitResolveClosure [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n17: 0x104283298 Builtins_PromiseFulfillReactionJob [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n18: 0x1041a5214 Builtins_RunMicrotasks [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n19: 0x1041763f0 Builtins_JSRunMicrotasksEntry [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n20: 0x1046f2718 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const\u0026) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n21: 0x1046f2e84 v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const\u0026) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n22: 0x10471d438 v8::internal::MicrotaskQueue::PerformCheckpointInternal(v8::Isolate*) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n23: 0x10417a978 Builtins_CallApiCallbackGeneric [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n24: 0x12818bbdc \n25: 0x10417650c Builtins_JSEntryTrampoline [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n26: 0x1041761b0 Builtins_JSEntry [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n27: 0x1046f2740 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const\u0026) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n28: 0x1046f20a8 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle\u003cv8::internal::Object\u003e, v8::internal::Handle\u003cv8::internal::Object\u003e, int, v8::internal::Handle\u003cv8::internal::Object\u003e*) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n29: 0x1045d73bc v8::Function::Call(v8::Isolate*, v8::Local\u003cv8::Context\u003e, v8::Local\u003cv8::Value\u003e, int, v8::Local\u003cv8::Value\u003e*) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n30: 0x1043316d4 node::InternalCallbackScope::Close() [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n31: 0x104331b94 node::InternalMakeCallback(node::Environment*, v8::Local\u003cv8::Object\u003e, v8::Local\u003cv8::Object\u003e, v8::Local\u003cv8::Function\u003e, int, v8::Local\u003cv8::Value\u003e*, node::async_context, v8::Local\u003cv8::Value\u003e) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n32: 0x104349c9c node::AsyncWrap::MakeCallback(v8::Local\u003cv8::Function\u003e, int, v8::Local\u003cv8::Value\u003e*) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n33: 0x10451c37c node::StreamBase::CallJSOnreadMethod(long, v8::Local\u003cv8::ArrayBuffer\u003e, unsigned long, node::StreamBase::StreamBaseJSChecks) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n34: 0x10451c600 node::EmitToJSStreamListener::OnStreamRead(long, uv_buf_t const\u0026) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n35: 0x104522b40 node::LibuvStreamWrap::OnUvRead(long, uv_buf_t const*) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n36: 0x104522848 node::LibuvStreamWrap::ReadStart()::$_1::__invoke(uv_stream_s*, long, uv_buf_t const*) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n37: 0x107a9ae6c uv__stream_io [/opt/homebrew/Cellar/libuv/1.50.0/lib/libuv.1.dylib]\n38: 0x107aa20e0 uv__io_poll [/opt/homebrew/Cellar/libuv/1.50.0/lib/libuv.1.dylib]\n39: 0x107a91f08 uv_run [/opt/homebrew/Cellar/libuv/1.50.0/lib/libuv.1.dylib]\n40: 0x104332488 node::SpinEventLoopInternal(node::Environment*) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n41: 0x10445fef0 node::NodeMainInstance::Run(node::ExitCode*, node::Environment*) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n42: 0x10445fc44 node::NodeMainInstance::Run() [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n43: 0x1043d889c node::Start(int, char**) [/opt/homebrew/Cellar/node/23.6.1/bin/node]\n44: 0x183ba0274 start [/usr/lib/dyld]","author":{"url":"https://github.com/J4Web","@type":"Person","name":"J4Web"},"datePublished":"2025-03-24T14:04:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/57606/node/issues/57606"}
| 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:fb63a1d8-151c-0622-14fe-7f05f1d68d6b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9364:37D99:3D09B:50B2D:6A4C65BC |
| html-safe-nonce | aab57a8ef82a463d39f26bc20dffbeb636ebd0e8e27a9227e2c7515704cd65ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzY0OjM3RDk5OjNEMDlCOjUwQjJEOjZBNEM2NUJDIiwidmlzaXRvcl9pZCI6IjE5NTQxMzM0ODYzNjE5MjkxNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5f7a1f9af970123ad093726f7e8fe8e5e96218f951122d9ee3173a57610a1174 |
| hovercard-subject-tag | issue:2943379164 |
| 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/57606/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2098ff70bfecd8b4637f87528a0aa9e8f897d2e7caac24edb6d5c97d0586853f/nodejs/node/issues/57606 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2098ff70bfecd8b4637f87528a0aa9e8f897d2e7caac24edb6d5c97d0586853f/nodejs/node/issues/57606 |
| og:image:alt | Version 23.7.0 Platform Darwin Apples-MacBook-Pro.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 arm64 Subsystem No response What ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | J4Web |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| 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 | 14099438da5379150f15a2892474c7c7e6c0e55e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width