Repository navigation
Use of variables + for loop + switch in a generator function causes inspector to crash #11746
Copy link
Copy link
Closed
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.inspectorIssues and PRs related to the V8 inspector protocol.Issues and PRs related to the V8 inspector protocol.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Description
Activity
I can reproduce on
master- addedinspectorIssues and PRs related to the V8 inspector protocol.Issues and PRs related to the V8 inspector protocol.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
on Mar 8, 2017 - addedconfirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.
on Mar 8, 2017 Backtrace with a debug build:
(gdb) bt #0 v8::base::OS::Abort () at ../deps/v8/src/base/platform/platform-posix.cc:230 #1 0x00000000026fb2b7 in V8_Fatal (file=0x293a348 "../deps/v8/src/debug/debug-scopes.cc", line=257, format=0x293983a "Check failed: %s.") at ../deps/v8/src/base/logging.cc:67 #2 0x0000000001cc562f in v8::internal::ScopeIterator::Type (this=0x7fffffffa4f0) at ../deps/v8/src/debug/debug-scopes.cc:257 #3 0x0000000001cc4d5f in v8::internal::ScopeIterator::MaterializeScopeDetails (this=0x7fffffffa4f0) at ../deps/v8/src/debug/debug-scopes.cc:179 #4 0x000000000210307a in v8::internal::__RT_impl_Runtime_GetAllScopesDetails (args=..., isolate=0x3863600) at ../deps/v8/src/runtime/runtime-debug.cc:886 #5 0x0000000002102ca7 in v8::internal::Runtime_GetAllScopesDetails (args_length=4, args_object=0x7fffffffaa48, isolate=0x3863600) at ../deps/v8/src/runtime/runtime-debug.cc:861 #6 0x0000273d428843a7 in ?? () #7 0x0000273d429dfa8e in ?? () #8 0x0000273d428842e1 in ?? () #9 0x00007fffffffaa00 in ?? () #10 0x0000000300000000 in ?? () #11 0x00007fffffffaa78 in ?? () #12 0x0000273d429df5f5 in ?? () #13 0x0000140895d02421 in ?? () #14 0x0000000000000000 in ?? ()- changed the title
[-]Use of variables + for loop + switch in a generator function cases inspector to crash[/-][+]Use of variables + for loop + switch in a generator function causes inspector to crash[/+]on Mar 8, 2017 Will take a look.
I can reproduce this in d8. File V8 bug here: https://bugs.chromium.org/p/v8/issues/detail?id=6085
Fix upcoming.
- Reacted by Matthew Phillips and Joyee Cheung
- added a commit that references this issue
on Mar 19, 2017 - added a commit that references this issue
on Mar 21, 2017
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.inspectorIssues and PRs related to the V8 inspector protocol.Issues and PRs related to the V8 inspector protocol.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
I was able to reduce it down to this code:
tcase.js
Run with
node --debug-brk --inspect tcase.js. Stop on thedebuggerand then click to step over. It will crash with1] 50320 illegal hardware instruction node --debug-brk --inspect tcase.js.I dumped the output into this gist.