Skip to content

Stepping into function crashes debugger #15075

Description

@oliversalzburg
  • 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.

Activity

  1. benjamingr commented on Aug 29, 2017

    @benjamingr
    Member

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

  2. targos commented on Aug 29, 2017

    @targos
    Member

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

  3. eugeneo commented on Aug 29, 2017

    @eugeneo
    Contributor

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

  4. eugeneo commented on Aug 30, 2017

    @eugeneo
    Contributor

    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

  5. keangkai commented on Sep 2, 2017

    @keangkai

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

  6. hashseed commented on Sep 6, 2017

    @hashseed
    Member

    This is likely fixed by v8/v8@62b6dd1

  7. hashseed commented on Sep 6, 2017

    @hashseed
    Member

    Actually it was fixed by v8/v8@071b655 more than a year ago.

  8. targos commented on Sep 19, 2017

    @targos
    Member

    Fixed in 921876d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues and PRs for confirmed bugs.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions