Skip to content

race condition with the run CLI command #49703

@michaelRichards99

Description

@michaelRichards99

Both pub's precompile pipeline and the --resident pipeline for dart run keep kernel files around for faster compile times. These kernel files are given to the CFE along with the source code to perform a compilation and are then given to the VM to run. While the VM is reading this kernel into memory, another compilation of the same Dart source file from a different process could overwrite this kernel file.

I have not been able to reproduce this, but there is a TODO in the frontend_server code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.dart-cli-runIssues related to 'dart run'front-end-serverIssues with the frontend server

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions