-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of variables + for loop + switch in a generator function causes inspector to crash #11746
Labels
confirmed-bug
Issues with confirmed bugs.
inspector
Issues and PRs related to the V8 inspector protocol
v8 engine
Issues and PRs related to the V8 dependency.
Comments
I can reproduce on |
targos
added
inspector
Issues and PRs related to the V8 inspector protocol
v8 engine
Issues and PRs related to the V8 dependency.
labels
Mar 8, 2017
Backtrace with a debug build:
|
matthewp
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
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. |
3 tasks
fhinkel
added a commit
to fhinkel/node
that referenced
this issue
Mar 17, 2017
Original commit message: [debugger] fix switch block source positions. The switch statement itself is part of the switch block. However, the source position of the statement is outside of the block. This leads to confusion for the debugger, if the switch block pushes a block context: the current context is a block context, but the scope analysis based on the current source position tells the debugger that we should be outside the scope, so we should have the function context. [email protected] BUG=v8:6085 Review-Url: https://codereview.chromium.org/2744213003 Cr-Commit-Position: refs/heads/master@{nodejs#43744} Committed: https://chromium.googlesource.com/v8/v8/+/09de9969ccb9bc3bbd667788afad665b309d02f5 Fixes: nodejs#11746
fhinkel
added a commit
that referenced
this issue
Mar 19, 2017
Original commit message: [debugger] fix switch block source positions. The switch statement itself is part of the switch block. However, the source position of the statement is outside of the block. This leads to confusion for the debugger, if the switch block pushes a block context: the current context is a block context, but the scope analysis based on the current source position tells the debugger that we should be outside the scope, so we should have the function context. [email protected] BUG=v8:6085 Review-Url: https://codereview.chromium.org/2744213003 Cr-Commit-Position: refs/heads/master@{#43744} Committed: https://chromium.googlesource.com/v8/v8/+/09de9969ccb9bc3bbd667788afad665b309d02f5 Fixes: #11746 PR-URL: #11905 Fixes: #11746 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Ali Ijaz Sheikh <[email protected]>
jungx098
pushed a commit
to jungx098/node
that referenced
this issue
Mar 21, 2017
Original commit message: [debugger] fix switch block source positions. The switch statement itself is part of the switch block. However, the source position of the statement is outside of the block. This leads to confusion for the debugger, if the switch block pushes a block context: the current context is a block context, but the scope analysis based on the current source position tells the debugger that we should be outside the scope, so we should have the function context. [email protected] BUG=v8:6085 Review-Url: https://codereview.chromium.org/2744213003 Cr-Commit-Position: refs/heads/master@{nodejs#43744} Committed: https://chromium.googlesource.com/v8/v8/+/09de9969ccb9bc3bbd667788afad665b309d02f5 Fixes: nodejs#11746 PR-URL: nodejs#11905 Fixes: nodejs#11746 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Ali Ijaz Sheikh <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
confirmed-bug
Issues with confirmed bugs.
inspector
Issues and PRs related to the V8 inspector protocol
v8 engine
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 thedebugger
and 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.
The text was updated successfully, but these errors were encountered: