Node: Stepping into function crashes debugger

Created on 29 Aug 2017  路  8Comments  路  Source: nodejs/node

  • Version: 6.11.2
  • Platform: Windows x64
  • Subsystem: Debugger

Given is the following code:

"use strict"

function main(input) {
  const a = arg => {
    const b = input.find(e => e === arg);
  }
}

main([]);

Assume a setup like this (example uses VS Code):

image

When I hit the breakpoint on line 9 and step into, the debugger crashes 100% of the time.

From what I observe, the issue is specific to the instruction pointer resting on the fat-arrow expression. If a different expression is placed on line 4, the debugger will exit as soon as I step over it.

confirmed-bug debugger

Most helpful comment

Actually it was fixed by https://github.com/v8/v8/commit/071b655fa90a3db1f41717f28cb50fe9f2c6db2c more than a year ago.

All 8 comments

Reproduced with v8.4.0 on macOS. Pinging @nodejs/v8-inspector

I can reproduce on Linux with v6.11.2 but not with v8.4.0.

I can't reproduce on Linux with 8.4 or top of tree, will try Mac later in the day.

Crash log:
#

Fatal error in ../deps/v8/src/debug/debug-scopes.cc, line 277

Check failed: nested_scope_chain_.length() == 1.

#

==== C stack trace ===============================

1: V8_Fatal
2: v8::internal::ScopeIterator::ScopeObject()
3: v8::internal::ScopeIterator::MaterializeScopeDetails()
4: 0x1a3e78e
5: v8::internal::Runtime_GetAllScopesDetails(int, v8::internal::Object*, v8::internal::Isolate)
6: 0x19cb8aa060c7
Illegal instruction (core dumped)

CC:@ak239

I think sysmbol or versions old because I'm same you

Actually it was fixed by https://github.com/v8/v8/commit/071b655fa90a3db1f41717f28cb50fe9f2c6db2c more than a year ago.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vsemozhetbyt picture vsemozhetbyt  路  3Comments

sandeepks1 picture sandeepks1  路  3Comments

Icemic picture Icemic  路  3Comments

filipesilvaa picture filipesilvaa  路  3Comments

stevenvachon picture stevenvachon  路  3Comments