Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bsutton opened this issue Jun 3, 2021 · 1 comment
Open

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

bsutton opened this issue Jun 3, 2021 · 1 comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@bsutton
Copy link

bsutton commented Jun 3, 2021

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"

bsutton added a commit to onepub-dev/dcli that referenced this issue Jun 4, 2021
…orting the standalone dcli_install exe and there appears to be a bug in dart that stops us form do a global activate whilst running under sudo. dart-lang/sdk#46255
@a-siva a-siva added area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Jun 7, 2021
@a-siva
Copy link
Contributor

a-siva commented Jun 7, 2021

//cc @aam

bsutton added a commit to onepub-dev/dcli that referenced this issue Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants