Skip to content

Attempt:11 waiting for isolate vm-isolate to check in #46255

@bsutton

Description

@bsutton

This issue appears to relate to: #45047

I'm running dart (not flutter) under Ubuntu 21.04 with sudo.

pub global activate dcli 1.5.1
sudo env "PATH=$PATH" dcli_install

The following errors are generated:
Attempt:11 waiting for isolate vm-isolate to check in
Attempt:11 waiting for isolate dartdev to check in
Attempt:12 waiting for isolate vm-isolate to check in
Attempt:12 waiting for isolate dartdev to check in

The install attempts to run:

/home/bsutton/.dswitch/active/dart pub global activate dcli

which is what causes the error.

Note: whilst I'm using dswitch (which allows my to switch version of dart), dswitch simply creates a symlink to the active version of dart and plays no other part in the process.

If I remove the sudo requirement the install works correctly.

I"ve tried creating a small script that reproduces the problem but I can't get it to fail.

I was looking at the pub-cache/bin and noted that it is running some sort of snapshot.
Assuming this was the source of the problem I tried the different dart compile options but I don't seem to be able to create the same sort of snapshot.

For the record here is the script:

test_install.dart

#! /usr/bin/env dcli

import 'dart:io';

import 'package:args/args.dart';

import 'package:dcli/dcli.dart';

void main(List<String> args) {
  Shell.current.releasePrivileges();
  'pub global activate dcli'.run;
}

And then run the command as:
sudo env "PATH=$PATH" test_install.dart

The call to release privileges removes the sudo permission from the running process.
Given that the above test case doesn't exhibit the problem I don't think this is the cause.

Dart SDK version: 2.13.1 (stable) (Fri May 21 12:45:36 2021 +0200) on "linux_x64"

I've also tried it with the latest dev build with the same error:
Dart SDK version: 2.14.0-176.0.dev (dev) (Wed Jun 2 15:17:55 2021 -0700) on "linux_x64"

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions