Skip to content

Inspector pause at beginning of recently parsed function will crash #32384

@mmarchini

Description

@mmarchini

This is a bug upstream which started once we landed V8 8.1. Opening this issue to keep track of the upstream bug, so we remember to backport once it's fixed.

The bug is unlikely to affect users unless they are using the Inspector protocol to automatically pause a script. The bug happens when the inspector pauses right before a function parsed and compiled with CompileFuncionInContext (and potentially through other means) runs. We have two flaky tests because of this bug.

V8 minimal repro: https://chromium-review.googlesource.com/c/v8/v8/+/2080072
Upstream bug: https://bugs.chromium.org/p/v8/issues/detail?id=10287
First V8 commit with the issue (found with git bisect): https://chromium-review.googlesource.com/c/v8/v8/+/1903440

Metadata

Metadata

Assignees

No one assigned

    Labels

    inspectorIssues and PRs related to the V8 inspector protocolv8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions