You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area-vmUse area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)
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.
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"
The text was updated successfully, but these errors were encountered:
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
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
area-vmUse area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)
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
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"
The text was updated successfully, but these errors were encountered: